{
    "file_diffs": [
        {
            "old_file_content": "\"\"\"Pythagorean forest widget for visualizing random forests.\"\"\"\nfrom math import log, sqrt\nfrom typing import Any, Callable, Optional\n\nfrom AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\\n    QItemSelection, QItemSelectionModel, QT_VERSION\nfrom AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent\nfrom AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \\\n    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle\n\nfrom Orange.base import RandomForestModel, TreeModel\nfrom Orange.data import Table\nfrom Orange.widgets import gui, settings\nfrom Orange.widgets.utils.itemmodels import PyListModel\nfrom Orange.widgets.utils.signals import Input, Output\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.visualize.pythagorastreeviewer import (\n    PythagorasTreeViewer,\n    ContinuousTreeNode,\n)\nfrom Orange.widgets.visualize.utils.tree.skltreeadapter import \\\n    SklTreeAdapter\nfrom Orange.widgets.widget import OWWidget\n\n\nclass PythagoreanForestModel(PyListModel):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.depth_limit = -1\n        self.target_class_idx = None\n        self.size_calc_idx = 0\n        self.size_adjustment = None\n        self.item_scale = 2\n\n    def data(self, index, role=Qt.DisplayRole):\n        # type: (QModelIndex, Qt.QDisplayRole) -> Any\n        if not index.isValid():\n            return None\n\n        idx = index.row()\n\n        if role == Qt.SizeHintRole:\n            return self.item_scale * QSize(100, 100)\n\n        if role == Qt.DisplayRole:\n            if 'tree' not in self._other_data[idx]:\n                scene = QGraphicsScene(parent=self)\n                tree = PythagorasTreeViewer(\n                    adapter=self._list[idx],\n                    weight_adjustment=OWPythagoreanForest.SIZE_CALCULATION[\n                        self.size_calc_idx][1],\n                    interactive=False,\n                    padding=100,\n                    depth_limit=self.depth_limit,\n                    target_class_index=self.target_class_idx,\n                )\n                scene.addItem(tree)\n                self._other_data[idx]['scene'] = scene\n                self._other_data[idx]['tree'] = tree\n\n            return self._other_data[idx]['scene']\n\n        return super().data(index, role)\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters.\"\"\"\n        return self._list\n\n    def update_tree_views(self, func):\n        # type: (Callable[[PythagorasTreeViewer], None]) -> None\n        \"\"\"Apply `func` to every rendered tree viewer instance.\"\"\"\n        for idx, tree_data in enumerate(self._other_data):\n            if 'tree' in tree_data:\n                func(tree_data['tree'])\n                index = self.index(idx)\n                if QT_VERSION < 0x50000:\n                    self.dataChanged.emit(index, index)\n                else:\n                    self.dataChanged.emit(index, index, [Qt.DisplayRole])\n\n    def update_depth(self, depth):\n        self.depth_limit = depth\n        self.update_tree_views(lambda tree: tree.set_depth_limit(depth))\n\n    def update_target_class(self, idx):\n        self.target_class_idx = idx\n        self.update_tree_views(lambda tree: tree.target_class_changed(idx))\n\n    def update_item_size(self, scale):\n        self.item_scale = scale / 100\n        indices = [idx for idx, _ in enumerate(self._other_data)]\n        self.emitDataChanged(indices)\n\n    def update_size_calc(self, idx):\n        self.size_calc_idx = idx\n        _, size_calc = OWPythagoreanForest.SIZE_CALCULATION[idx]\n        self.update_tree_views(lambda tree: tree.set_size_calc(size_calc))\n\n\nclass PythagorasTreeDelegate(QStyledItemDelegate):\n    def paint(self, painter, option, index):\n        # type: (QPainter, QStyleOptionViewItem, QModelIndex) -> None\n        scene = index.data(Qt.DisplayRole)  # type: Optional[QGraphicsScene]\n        if scene is None:\n            super().paint(painter, option, index)\n            return\n\n        painter.save()\n        rect = QRectF(QPointF(option.rect.topLeft()), QSizeF(option.rect.size()))\n        if option.state & QStyle.State_Selected:\n            painter.setPen(QPen(QColor(125, 162, 206, 192)))\n            painter.setBrush(QBrush(QColor(217, 232, 252, 192)))\n        else:\n            painter.setPen(QPen(QColor('#ebebeb')))\n        painter.drawRoundedRect(rect, 3, 3)\n        painter.restore()\n\n        painter.setRenderHint(QPainter.Antialiasing)\n\n        # The sceneRect doesn't automatically shrink to fit contents, so when\n        # drawing smaller tree, remove any excess space aroung the tree\n        scene.setSceneRect(scene.itemsBoundingRect())\n\n        # Make sure the tree is centered in the item cell\n        # First, figure out how much we get the bounding rect to the size of\n        # the available painting rect\n        scene_rect = scene.itemsBoundingRect()\n        w_scale = option.rect.width() / scene_rect.width()\n        h_scale = option.rect.height() / scene_rect.height()\n        # In order to keep the aspect ratio, we use the same scale\n        scale = min(w_scale, h_scale)\n        # Figure out the rescaled scene width/height\n        scene_w = scale * scene_rect.width()\n        scene_h = scale * scene_rect.height()\n        # Figure out how much we have to offset the rect so that the scene will\n        # be painted in the centre of the rect\n        offset_w = (option.rect.width() - scene_w) / 2\n        offset_h = (option.rect.height() - scene_h) / 2\n        offset = option.rect.topLeft() + QPointF(offset_w, offset_h)\n        # Finally, we have all the data for the new rect in which to render\n        target_rect = QRectF(offset, QSizeF(scene_w, scene_h))\n\n        scene.render(painter, target=target_rect, mode=Qt.KeepAspectRatio)\n\n\nclass ClickToClearSelectionListView(QListView):\n    \"\"\"Clicking outside any item clears the current selection.\"\"\"\n    def mousePressEvent(self, event):\n        # type: (QMouseEvent) -> None\n        super().mousePressEvent(event)\n\n        index = self.indexAt(event.pos())\n        if index.row() == -1:\n            self.clearSelection()\n\n\nclass OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        self.report_plot()\n\n\nclass SklRandomForestAdapter:\n    \"\"\"Take a `RandomForest` and wrap all the trees into the `SklTreeAdapter`\n    instances that Pythagorean trees use.\"\"\"\n    def __init__(self, model):\n        self._adapters = None\n        self._domain = model.domain\n        self._trees = model.trees\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters in the random forest.\"\"\"\n        if not self._adapters:\n            self._adapters = list(map(SklTreeAdapter, self._trees))\n        return self._adapters\n\n    @property\n    def domain(self):\n        \"\"\"Get the domain.\"\"\"\n        return self._domain\n\n\nif __name__ == '__main__':  # pragma: no cover\n    from Orange.modelling import RandomForestLearner\n    data = Table('iris')\n    rf = RandomForestLearner(n_estimators=10)(data)\n    rf.instances = data\n    WidgetPreview(OWPythagoreanForest).run(rf)\n",
            "new_file_content": "\"\"\"Pythagorean forest widget for visualizing random forests.\"\"\"\nfrom math import log, sqrt\nfrom typing import Any, Callable, Optional\n\nfrom AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\\n    QItemSelection, QItemSelectionModel, QT_VERSION, QByteArray, QBuffer, \\\n    QIODevice\nfrom AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent\nfrom AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \\\n    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle\n\nfrom orangewidget.io import PngFormat\nfrom Orange.base import RandomForestModel, TreeModel\nfrom Orange.data import Table\nfrom Orange.widgets import gui, settings\nfrom Orange.widgets.utils.itemmodels import PyListModel\nfrom Orange.widgets.utils.signals import Input, Output\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.visualize.pythagorastreeviewer import (\n    PythagorasTreeViewer,\n    ContinuousTreeNode,\n)\nfrom Orange.widgets.visualize.utils.tree.skltreeadapter import \\\n    SklTreeAdapter\nfrom Orange.widgets.widget import OWWidget\n\n\nREPORT_STYLE = \"\"\"\n<style>\n* {\n  box-sizing: border-box;\n}\n\n.forest_model_row {\n  display: flex;\n  flex-wrap: wrap;\n  padding: 0 4px;\n}\n\n.forest_model_col {\n  flex: 10%;\n  max-width: 10%;\n  padding: 0 4px;\n}\n\n.forest_model_col img {\n  margin-top: 8px;\n  vertical-align: middle;\n}\n\n@media screen and (max-width: 2200px) {\n  .forest_model_col {\n    flex: 25%;\n    max-width: 25%;\n  }\n}\n\n@media screen and (max-width: 1200px) {\n  .forest_model_col {\n    flex: 50%;\n    max-width: 50%;\n  }\n}\n\n@media screen and (max-width: 600px) {\n  .forest_model_col {\n    flex: 100%;\n    max-width: 100%;\n  }\n}\n</style>\n\"\"\"\n\n\nclass PythagoreanForestModel(PyListModel):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.depth_limit = -1\n        self.target_class_idx = None\n        self.size_calc_idx = 0\n        self.size_adjustment = None\n        self.item_scale = 2\n\n    def data(self, index, role=Qt.DisplayRole):\n        # type: (QModelIndex, Qt.QDisplayRole) -> Any\n        if not index.isValid():\n            return None\n\n        idx = index.row()\n\n        if role == Qt.SizeHintRole:\n            return self.item_scale * QSize(100, 100)\n\n        if role == Qt.DisplayRole:\n            if 'tree' not in self._other_data[idx]:\n                scene = QGraphicsScene(parent=self)\n                tree = PythagorasTreeViewer(\n                    adapter=self._list[idx],\n                    weight_adjustment=OWPythagoreanForest.SIZE_CALCULATION[\n                        self.size_calc_idx][1],\n                    interactive=False,\n                    padding=100,\n                    depth_limit=self.depth_limit,\n                    target_class_index=self.target_class_idx,\n                )\n                scene.addItem(tree)\n                self._other_data[idx]['scene'] = scene\n                self._other_data[idx]['tree'] = tree\n\n            return self._other_data[idx]['scene']\n\n        return super().data(index, role)\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters.\"\"\"\n        return self._list\n\n    def update_tree_views(self, func):\n        # type: (Callable[[PythagorasTreeViewer], None]) -> None\n        \"\"\"Apply `func` to every rendered tree viewer instance.\"\"\"\n        for idx, tree_data in enumerate(self._other_data):\n            if 'tree' in tree_data:\n                func(tree_data['tree'])\n                index = self.index(idx)\n                if QT_VERSION < 0x50000:\n                    self.dataChanged.emit(index, index)\n                else:\n                    self.dataChanged.emit(index, index, [Qt.DisplayRole])\n\n    def update_depth(self, depth):\n        self.depth_limit = depth\n        self.update_tree_views(lambda tree: tree.set_depth_limit(depth))\n\n    def update_target_class(self, idx):\n        self.target_class_idx = idx\n        self.update_tree_views(lambda tree: tree.target_class_changed(idx))\n\n    def update_item_size(self, scale):\n        self.item_scale = scale / 100\n        indices = [idx for idx, _ in enumerate(self._other_data)]\n        self.emitDataChanged(indices)\n\n    def update_size_calc(self, idx):\n        self.size_calc_idx = idx\n        _, size_calc = OWPythagoreanForest.SIZE_CALCULATION[idx]\n        self.update_tree_views(lambda tree: tree.set_size_calc(size_calc))\n\n\nclass PythagorasTreeDelegate(QStyledItemDelegate):\n    def paint(self, painter, option, index):\n        # type: (QPainter, QStyleOptionViewItem, QModelIndex) -> None\n        scene = index.data(Qt.DisplayRole)  # type: Optional[QGraphicsScene]\n        if scene is None:\n            super().paint(painter, option, index)\n            return\n\n        painter.save()\n        rect = QRectF(QPointF(option.rect.topLeft()), QSizeF(option.rect.size()))\n        if option.state & QStyle.State_Selected:\n            painter.setPen(QPen(QColor(125, 162, 206, 192)))\n            painter.setBrush(QBrush(QColor(217, 232, 252, 192)))\n        else:\n            painter.setPen(QPen(QColor('#ebebeb')))\n        painter.drawRoundedRect(rect, 3, 3)\n        painter.restore()\n\n        painter.setRenderHint(QPainter.Antialiasing)\n\n        # The sceneRect doesn't automatically shrink to fit contents, so when\n        # drawing smaller tree, remove any excess space aroung the tree\n        scene.setSceneRect(scene.itemsBoundingRect())\n\n        # Make sure the tree is centered in the item cell\n        # First, figure out how much we get the bounding rect to the size of\n        # the available painting rect\n        scene_rect = scene.itemsBoundingRect()\n        w_scale = option.rect.width() / scene_rect.width()\n        h_scale = option.rect.height() / scene_rect.height()\n        # In order to keep the aspect ratio, we use the same scale\n        scale = min(w_scale, h_scale)\n        # Figure out the rescaled scene width/height\n        scene_w = scale * scene_rect.width()\n        scene_h = scale * scene_rect.height()\n        # Figure out how much we have to offset the rect so that the scene will\n        # be painted in the centre of the rect\n        offset_w = (option.rect.width() - scene_w) / 2\n        offset_h = (option.rect.height() - scene_h) / 2\n        offset = option.rect.topLeft() + QPointF(offset_w, offset_h)\n        # Finally, we have all the data for the new rect in which to render\n        target_rect = QRectF(offset, QSizeF(scene_w, scene_h))\n\n        scene.render(painter, target=target_rect, mode=Qt.KeepAspectRatio)\n\n\nclass ClickToClearSelectionListView(QListView):\n    \"\"\"Clicking outside any item clears the current selection.\"\"\"\n    def mousePressEvent(self, event):\n        # type: (QMouseEvent) -> None\n        super().mousePressEvent(event)\n\n        index = self.indexAt(event.pos())\n        if index.row() == -1:\n            self.clearSelection()\n\n\nclass OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        model = self.forest_model\n        max_rows = 30\n\n        def item_html(row):\n            img_data = model.data(model.index(row))\n            byte_array = QByteArray()\n            filename = QBuffer(byte_array)\n            filename.open(QIODevice.WriteOnly)\n            PngFormat.write(filename, img_data)\n            img_encoded = byte_array.toBase64().data().decode(\"utf-8\")\n            return f'<img style=\"width:100%\" ' \\\n                   f'src=\"data:image/png;base64,{img_encoded}\"/>'\n\n        html = [\"<div class='forest_model_row'>\"]\n        for i in range(model.rowCount())[:max_rows]:\n            html.append(\"<div class='forest_model_col'>\")\n            html.extend(item_html(i))\n            html.append(\"</div>\")\n        html.append(\"</div>\")\n\n        html = REPORT_STYLE + \"\".join(html)\n        if model.rowCount() > max_rows:\n            html += \"<p>. . .</p>\"\n        self.report_raw(html)\n\n\nclass SklRandomForestAdapter:\n    \"\"\"Take a `RandomForest` and wrap all the trees into the `SklTreeAdapter`\n    instances that Pythagorean trees use.\"\"\"\n    def __init__(self, model):\n        self._adapters = None\n        self._domain = model.domain\n        self._trees = model.trees\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters in the random forest.\"\"\"\n        if not self._adapters:\n            self._adapters = list(map(SklTreeAdapter, self._trees))\n        return self._adapters\n\n    @property\n    def domain(self):\n        \"\"\"Get the domain.\"\"\"\n        return self._domain\n\n\nif __name__ == '__main__':  # pragma: no cover\n    from Orange.modelling import RandomForestLearner\n    data = Table('iris')\n    rf = RandomForestLearner(n_estimators=10)(data)\n    rf.instances = data\n    WidgetPreview(OWPythagoreanForest).run(rf)\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/visualize/owpythagoreanforest.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "f615f0f14",
                "new_commit_hash": "e0b36d135",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/visualize/owpythagoreanforest.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/visualize/owpythagoreanforest.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 3,
                            "length": 11
                        },
                        "new_range": {
                            "start": 3,
                            "length": 13
                        },
                        "section": "from math import log, sqrt"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "from typing import Any, Callable, Optional",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\",
                                "type": "context"
                            },
                            {
                                "content": "    QItemSelection, QItemSelectionModel, QT_VERSION",
                                "type": "deleted"
                            },
                            {
                                "content": "    QItemSelection, QItemSelectionModel, QT_VERSION, QByteArray, QBuffer, \\",
                                "type": "added"
                            },
                            {
                                "content": "    QIODevice",
                                "type": "added"
                            },
                            {
                                "content": "from AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent",
                                "type": "context"
                            },
                            {
                                "content": "from AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \\",
                                "type": "context"
                            },
                            {
                                "content": "    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "from orangewidget.io import PngFormat",
                                "type": "added"
                            },
                            {
                                "content": "from Orange.base import RandomForestModel, TreeModel",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.data import Table",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets import gui, settings",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "statement",
                            "name": "",
                            "content": "from orangewidget.io import PngFormat",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 12,
                            "end_lineno": 12,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "statement",
                            "name": "",
                            "content": "from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\\n    QItemSelection, QItemSelectionModel, QT_VERSION, QByteArray, QBuffer, \\\n    QIODevice",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 5,
                            "end_lineno": 7,
                            "parent": null
                        }
                    ],
                    "deleted_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "statement",
                            "name": "",
                            "content": "from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\\n    QItemSelection, QItemSelectionModel, QT_VERSION",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 5,
                            "end_lineno": 6,
                            "parent": null
                        }
                    ]
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 23,
                            "length": 6
                        },
                        "new_range": {
                            "start": 25,
                            "length": 53
                        },
                        "section": "from Orange.widgets.visualize.utils.tree.skltreeadapter import \\"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "from Orange.widgets.widget import OWWidget",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "REPORT_STYLE = \"\"\"",
                                "type": "added"
                            },
                            {
                                "content": "<style>",
                                "type": "added"
                            },
                            {
                                "content": "* {",
                                "type": "added"
                            },
                            {
                                "content": "  box-sizing: border-box;",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": ".forest_model_row {",
                                "type": "added"
                            },
                            {
                                "content": "  display: flex;",
                                "type": "added"
                            },
                            {
                                "content": "  flex-wrap: wrap;",
                                "type": "added"
                            },
                            {
                                "content": "  padding: 0 4px;",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": ".forest_model_col {",
                                "type": "added"
                            },
                            {
                                "content": "  flex: 10%;",
                                "type": "added"
                            },
                            {
                                "content": "  max-width: 10%;",
                                "type": "added"
                            },
                            {
                                "content": "  padding: 0 4px;",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": ".forest_model_col img {",
                                "type": "added"
                            },
                            {
                                "content": "  margin-top: 8px;",
                                "type": "added"
                            },
                            {
                                "content": "  vertical-align: middle;",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "@media screen and (max-width: 2200px) {",
                                "type": "added"
                            },
                            {
                                "content": "  .forest_model_col {",
                                "type": "added"
                            },
                            {
                                "content": "    flex: 25%;",
                                "type": "added"
                            },
                            {
                                "content": "    max-width: 25%;",
                                "type": "added"
                            },
                            {
                                "content": "  }",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "@media screen and (max-width: 1200px) {",
                                "type": "added"
                            },
                            {
                                "content": "  .forest_model_col {",
                                "type": "added"
                            },
                            {
                                "content": "    flex: 50%;",
                                "type": "added"
                            },
                            {
                                "content": "    max-width: 50%;",
                                "type": "added"
                            },
                            {
                                "content": "  }",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "@media screen and (max-width: 600px) {",
                                "type": "added"
                            },
                            {
                                "content": "  .forest_model_col {",
                                "type": "added"
                            },
                            {
                                "content": "    flex: 100%;",
                                "type": "added"
                            },
                            {
                                "content": "    max-width: 100%;",
                                "type": "added"
                            },
                            {
                                "content": "  }",
                                "type": "added"
                            },
                            {
                                "content": "}",
                                "type": "added"
                            },
                            {
                                "content": "</style>",
                                "type": "added"
                            },
                            {
                                "content": "\"\"\"",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "class PythagoreanForestModel(PyListModel):",
                                "type": "context"
                            },
                            {
                                "content": "    def __init__(self, *args, **kwargs):",
                                "type": "context"
                            },
                            {
                                "content": "        super().__init__(*args, **kwargs)",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "statement",
                            "name": "",
                            "content": "REPORT_STYLE = \"\"\"\n<style>\n* {\n  box-sizing: border-box;\n}\n\n.forest_model_row {\n  display: flex;\n  flex-wrap: wrap;\n  padding: 0 4px;\n}\n\n.forest_model_col {\n  flex: 10%;\n  max-width: 10%;\n  padding: 0 4px;\n}\n\n.forest_model_col img {\n  margin-top: 8px;\n  vertical-align: middle;\n}\n\n@media screen and (max-width: 2200px) {\n  .forest_model_col {\n    flex: 25%;\n    max-width: 25%;\n  }\n}\n\n@media screen and (max-width: 1200px) {\n  .forest_model_col {\n    flex: 50%;\n    max-width: 50%;\n  }\n}\n\n@media screen and (max-width: 600px) {\n  .forest_model_col {\n    flex: 100%;\n    max-width: 100%;\n  }\n}\n</style>\n\"\"\"",
                            "ast_type_str": "Assign",
                            "start_lineno": 28,
                            "end_lineno": 72,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 377,
                            "length": 7
                        },
                        "new_range": {
                            "start": 426,
                            "length": 30
                        },
                        "section": "class OWPythagoreanForest(OWWidget):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def send_report(self):",
                                "type": "context"
                            },
                            {
                                "content": "        \"\"\"Send report.\"\"\"",
                                "type": "context"
                            },
                            {
                                "content": "        self.report_plot()",
                                "type": "deleted"
                            },
                            {
                                "content": "        model = self.forest_model",
                                "type": "added"
                            },
                            {
                                "content": "        max_rows = 30",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        def item_html(row):",
                                "type": "added"
                            },
                            {
                                "content": "            img_data = model.data(model.index(row))",
                                "type": "added"
                            },
                            {
                                "content": "            byte_array = QByteArray()",
                                "type": "added"
                            },
                            {
                                "content": "            filename = QBuffer(byte_array)",
                                "type": "added"
                            },
                            {
                                "content": "            filename.open(QIODevice.WriteOnly)",
                                "type": "added"
                            },
                            {
                                "content": "            PngFormat.write(filename, img_data)",
                                "type": "added"
                            },
                            {
                                "content": "            img_encoded = byte_array.toBase64().data().decode(\"utf-8\")",
                                "type": "added"
                            },
                            {
                                "content": "            return f'<img style=\"width:100%\" ' \\",
                                "type": "added"
                            },
                            {
                                "content": "                   f'src=\"data:image/png;base64,{img_encoded}\"/>'",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        html = [\"<div class='forest_model_row'>\"]",
                                "type": "added"
                            },
                            {
                                "content": "        for i in range(model.rowCount())[:max_rows]:",
                                "type": "added"
                            },
                            {
                                "content": "            html.append(\"<div class='forest_model_col'>\")",
                                "type": "added"
                            },
                            {
                                "content": "            html.extend(item_html(i))",
                                "type": "added"
                            },
                            {
                                "content": "            html.append(\"</div>\")",
                                "type": "added"
                            },
                            {
                                "content": "        html.append(\"</div>\")",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        html = REPORT_STYLE + \"\".join(html)",
                                "type": "added"
                            },
                            {
                                "content": "        if model.rowCount() > max_rows:",
                                "type": "added"
                            },
                            {
                                "content": "            html += \"<p>. . .</p>\"",
                                "type": "added"
                            },
                            {
                                "content": "        self.report_raw(html)",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "class SklRandomForestAdapter:",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "method",
                            "name": "OWPythagoreanForest.send_report",
                            "content": "class OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        self.report_plot()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 378,
                            "end_lineno": 380,
                            "parent": {
                                "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                                "type": "class",
                                "name": "OWPythagoreanForest",
                                "content": "class OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        self.report_plot()",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 158,
                                "end_lineno": 380,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/widgets/visualize/owpythagoreanforest.py",
                            "type": "class",
                            "name": "OWPythagoreanForest",
                            "content": "class OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        self.report_plot()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 158,
                            "end_lineno": 380,
                            "parent": null
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "# pylint: disable=missing-docstring,protected-access\n\nfrom unittest.mock import Mock\n\nfrom AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel\n\nfrom Orange.classification.random_forest import RandomForestLearner\nfrom Orange.data import Table\nfrom Orange.regression.random_forest import RandomForestRegressionLearner\nfrom Orange.widgets.tests.base import WidgetTest\nfrom Orange.widgets.tests.utils import simulate\nfrom Orange.widgets.visualize.owpythagoreanforest import OWPythagoreanForest\nfrom Orange.widgets.visualize.pythagorastreeviewer import PythagorasTreeViewer\n\n\nclass TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n",
            "new_file_content": "# pylint: disable=missing-docstring,protected-access\nimport unittest\nfrom unittest.mock import Mock\n\nfrom AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel\n\nfrom Orange.classification.random_forest import RandomForestLearner\nfrom Orange.data import Table\nfrom Orange.regression.random_forest import RandomForestRegressionLearner\nfrom Orange.widgets.tests.base import WidgetTest\nfrom Orange.widgets.tests.utils import simulate\nfrom Orange.widgets.visualize.owpythagoreanforest import OWPythagoreanForest\nfrom Orange.widgets.visualize.pythagorastreeviewer import PythagorasTreeViewer\n\n\nclass TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n\n    def test_report(self):\n        self.widget.send_report()\n\n        self.widget.report_raw = Mock()\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.send_report()\n        self.widget.report_raw.assert_called_once()\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "f2c88b362",
                "new_commit_hash": "29fa8dc19",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/visualize/tests/test_owpythagoreanforest.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/visualize/tests/test_owpythagoreanforest.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 1,
                            "length": 5
                        },
                        "new_range": {
                            "start": 1,
                            "length": 5
                        },
                        "section": ""
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "# pylint: disable=missing-docstring,protected-access",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "deleted"
                            },
                            {
                                "content": "import unittest",
                                "type": "added"
                            },
                            {
                                "content": "from unittest.mock import Mock",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "from AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py",
                            "type": "import",
                            "name": "unittest",
                            "content": "import unittest",
                            "ast_type_str": "Import",
                            "start_lineno": 2,
                            "end_lineno": 2,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 238,
                            "length": 3
                        },
                        "new_range": {
                            "start": 238,
                            "length": 15
                        },
                        "section": "class TestOWPythagoreanForest(WidgetTest):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.random_forest, iris_tree)",
                                "type": "context"
                            },
                            {
                                "content": "        self.assertEqual(2, self.widget.target_class_index)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_report(self):",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.send_report()",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.report_raw = Mock()",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.random_forest, self.titanic)",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.send_report()",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.report_raw.assert_called_once()",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "if __name__ == \"__main__\":",
                                "type": "added"
                            },
                            {
                                "content": "    unittest.main()",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py",
                            "type": "class",
                            "name": "TestOWPythagoreanForest",
                            "content": "class TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n\n    def test_report(self):\n        self.widget.send_report()\n\n        self.widget.report_raw = Mock()\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.send_report()\n        self.widget.report_raw.assert_called_once()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 16,
                            "end_lineno": 248,
                            "parent": null
                        }
                    ],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py",
                            "type": "statement",
                            "name": "",
                            "content": "if __name__ == \"__main__\":\n    unittest.main()",
                            "ast_type_str": "If",
                            "start_lineno": 251,
                            "end_lineno": 252,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py",
                            "type": "method",
                            "name": "TestOWPythagoreanForest.test_report",
                            "content": "class TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n\n    def test_report(self):\n        self.widget.send_report()\n\n        self.widget.report_raw = Mock()\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.send_report()\n        self.widget.report_raw.assert_called_once()",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 242,
                            "end_lineno": 248,
                            "parent": {
                                "file_name": "Orange/widgets/visualize/tests/test_owpythagoreanforest.py",
                                "type": "class",
                                "name": "TestOWPythagoreanForest",
                                "content": "class TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n\n    def test_report(self):\n        self.widget.send_report()\n\n        self.widget.report_raw = Mock()\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.send_report()\n        self.widget.report_raw.assert_called_once()",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 16,
                                "end_lineno": 248,
                                "parent": null
                            }
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "cb236e30140c33799167aedc1576fadb8b105f2b^",
    "new_commit_hash": "cb236e30140c33799167aedc1576fadb8b105f2b",
    "commit_message": "Pythagorean Forest: Fix report",
    "commit_date": "2023-01-04T10:45:19+01:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "cb236e30140c33799167aedc1576fadb8b105f2b",
    "test_file_codes": [
        "# pylint: disable=missing-docstring,protected-access\nimport unittest\nfrom unittest.mock import Mock\n\nfrom AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel\n\nfrom Orange.classification.random_forest import RandomForestLearner\nfrom Orange.data import Table\nfrom Orange.regression.random_forest import RandomForestRegressionLearner\nfrom Orange.widgets.tests.base import WidgetTest\nfrom Orange.widgets.tests.utils import simulate\nfrom Orange.widgets.visualize.owpythagoreanforest import OWPythagoreanForest\nfrom Orange.widgets.visualize.pythagorastreeviewer import PythagorasTreeViewer\n\n\nclass TestOWPythagoreanForest(WidgetTest):\n    @classmethod\n    def setUpClass(cls):\n        super().setUpClass()\n\n        # Set up for widget tests\n        titanic_data = Table('titanic')[::50]\n        cls.titanic = RandomForestLearner(n_estimators=3)(titanic_data)\n        cls.titanic.instances = titanic_data\n\n        housing_data = Table('housing')[:10]\n        cls.housing = RandomForestRegressionLearner(\n            n_estimators=3)(housing_data)\n        cls.housing.instances = housing_data\n\n    def setUp(self):\n        self.widget = self.create_widget(OWPythagoreanForest)  # type: OWPythagoreanForest\n\n    def test_migrate_version_1_settings(self):\n        # Version 1 zoom ranged from 20-150, version 2 zoom ranges from 100-400\n        # Test minimium value falls into the range\n        widget_min_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 20, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_min_zoom.zoom <= 400)\n        self.assertTrue(widget_min_zoom.zoom >= 100)\n\n        # Test maximum value falls into the range\n        widget_max_zoom = self.create_widget(\n            OWPythagoreanForest,\n            stored_settings={'zoom': 150, 'version': 2},\n        )  # type: OWPythagoreanForest\n        self.assertTrue(widget_max_zoom.zoom <= 400)\n        self.assertTrue(widget_max_zoom.zoom >= 100)\n\n    def get_tree_widgets(self):\n        model = self.widget.forest_model\n        trees = []\n        for idx in range(len(model)):\n            scene = model.data(model.index(idx), Qt.DisplayRole)\n            tree, = [item for item in scene.items()\n                     if isinstance(item, PythagorasTreeViewer)]\n            trees.append(tree)\n        return trees\n\n    def test_sending_rf_draws_trees(self):\n        w = self.widget\n        # No trees by default\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'No trees should be drawn when no forest on input')\n\n        # Draw trees for classification rf\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n        # Clear trees when None\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertEqual(len(self.get_tree_widgets()), 0,\n                         'Trees are cleared when forest is disconnected')\n\n        # Draw trees for regression rf\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        self.assertEqual(len(self.get_tree_widgets()), 3,\n                         'Incorrect number of trees when forest on input')\n\n    def test_info_label(self):\n        w = self.widget\n        regex = r'Trees:(.+)'\n        # If no forest on input, display a message saying that\n        self.assertNotRegex(w.ui_info.text(), regex,\n                            'Initial info should not contain info on trees')\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        self.assertRegex(self.widget.ui_info.text(), regex, 'Valid RF does not update info')\n\n        self.send_signal(w.Inputs.random_forest, None)\n        self.assertNotRegex(w.ui_info.text(), regex, 'Removing RF does not clear info box')\n\n    def test_depth_slider(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        trees = self.get_tree_widgets()\n        for tree in trees:\n            tree.set_depth_limit = Mock()\n\n        w.ui_depth_slider.setValue(0)\n        for tree in trees:\n            tree.set_depth_limit.assert_called_once_with(0)\n\n    def _get_first_tree(self):\n        \"\"\"Pick a random tree from all the trees on the grid.\n\n        Returns\n        -------\n        PythagorasTreeViewer\n\n        \"\"\"\n        widgets = self.get_tree_widgets()\n        assert len(widgets), 'Empty list of tree widgets'\n        return widgets[0]\n\n    def _get_visible_squares(self, tree):\n        return [x for _, x in tree._square_objects.items() if x.isVisible()]\n\n    def _check_all_same(self, items):\n        iter_items = iter(items)\n        try:\n            first = next(iter_items)\n        except StopIteration:\n            return True\n        return all(first == curr for curr in iter_items)\n\n    def test_changing_target_class_changes_coloring(self):\n        \"\"\"Changing the `Target class` combo box should update colors.\"\"\"\n        w = self.widget\n\n        def _test(data_type):\n            colors, tree = [], self._get_first_tree()\n\n            def _callback():\n                colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n            simulate.combobox_run_through_all(w.ui_target_class_combo, callback=_callback)\n\n            # Check that individual squares all have different colors\n            squares_same = [self._check_all_same(x) for x in zip(*colors)]\n            # Check that at least some of the squares have different colors\n            self.assertTrue(any(x is False for x in squares_same),\n                            'Colors did not change for %s data' % data_type)\n\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        _test('classification')\n        self.send_signal(w.Inputs.random_forest, self.housing)\n        _test('regression')\n\n    def test_changing_size_adjustment_changes_sizes(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        squares = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            squares.append([sq.rect() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares are in different position\n        squares_same = [self._check_all_same(x) for x in zip(*squares)]\n        # Check that at least some of the squares have different positions\n        self.assertTrue(any(x is False for x in squares_same))\n\n    def test_zoom(self):\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n\n        min_zoom = w.ui_zoom_slider.minimum()\n        max_zoom = w.ui_zoom_slider.maximum()\n\n        # Increase the size of grid item\n        w.ui_zoom_slider.setValue(max_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        max_w, max_h = item_size.width(), item_size.height()\n\n        # Decrease the size of grid item\n        w.ui_zoom_slider.setValue(min_zoom)\n        item_size = w.forest_model.data(w.forest_model.index(0), Qt.SizeHintRole)\n        min_w, min_h = item_size.width(), item_size.height()\n\n        self.assertTrue(min_w < max_w and min_h < max_h)\n\n    def test_keep_colors_on_sizing_change(self):\n        \"\"\"The color should be the same after a full recompute of the tree.\"\"\"\n        w = self.widget\n        self.send_signal(w.Inputs.random_forest, self.titanic)\n        colors = []\n        tree = self._get_first_tree()\n\n        def _callback():\n            colors.append([sq.brush().color() for sq in self._get_visible_squares(tree)])\n\n        simulate.combobox_run_through_all(w.ui_size_calc_combo, callback=_callback)\n\n        # Check that individual squares all have the same color\n        colors_same = [self._check_all_same(x) for x in zip(*colors)]\n        self.assertTrue(all(colors_same))\n\n    def select_tree(self, idx: int) -> None:\n        list_view = self.widget.list_view\n        index = list_view.model().index(idx)\n        selection = QItemSelection(index, index)\n        list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def test_storing_selection(self):\n        # Select one of the trees\n        idx = 1\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.select_tree(idx)\n        # Clear input\n        self.send_signal(self.widget.Inputs.random_forest, None)\n        # Restore previous data; context settings should be restored\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n\n        output = self.get_output(self.widget.Outputs.tree)\n        self.assertIsNotNone(output)\n        self.assertIs(output.skl_model, self.titanic.trees[idx].skl_model)\n\n    def test_context(self):\n        iris = Table(\"iris\")\n        iris_tree = RandomForestLearner()(iris)\n        iris_tree.instances = iris\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.target_class_index = 1\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(0, self.widget.target_class_index)\n\n        self.widget.target_class_index = 2\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.assertEqual(1, self.widget.target_class_index)\n\n        self.send_signal(self.widget.Inputs.random_forest, iris_tree)\n        self.assertEqual(2, self.widget.target_class_index)\n\n    def test_report(self):\n        self.widget.send_report()\n\n        self.widget.report_raw = Mock()\n        self.send_signal(self.widget.Inputs.random_forest, self.titanic)\n        self.widget.send_report()\n        self.widget.report_raw.assert_called_once()\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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+cb236e3 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b\nProcessing dependencies for Orange3==3.35.0.dev0+cb236e3\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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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-8m71b5a6/serverfiles-0.3.1/setup.cfg\nRunning serverfiles-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8m71b5a6/serverfiles-0.3.1/egg-dist-tmp-mg4qedrb\ncreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+cb236e3 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b\nProcessing dependencies for Orange3==3.35.0.dev0+cb236e3\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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling f2py3.8 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling jupyter-kernelspec script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling jupyter-run script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling jupyter-migrate script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling jupyter-troubleshoot script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\nInstalling ipython3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages\nFinished processing dependencies for Orange3==3.35.0.dev0+cb236e3\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 73ms\nPrepared 18 packages in 27ms\nInstalled 18 packages in 86ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + importlib-metadata==6.7.0\n + iniconfig==2.0.0\n + numpy==1.17.5\n + packaging==24.0\n + pluggy==1.2.0\n + pyqt5==5.15.10\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.13.0\n + pyqtwebengine==5.15.6\n + pyqtwebengine-qt5==5.15.16\n + pytest==7.4.4\n + setuptools==59.8.0\n + tomli==2.0.1\n + typing-extensions==4.7.1\n + wheel==0.42.0\n + zipp==3.15.0\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n      depend on Python>=3.8,<3.12, we can conclude that all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n       cannot be used.\n      And because only the following versions of scipy are available:\n          scipy<=1.9.0\n          scipy==1.9.1\n          scipy==1.9.2\n          scipy==1.9.3\n          scipy==1.10.0\n          scipy==1.10.1\n          scipy==1.11.0\n          scipy==1.11.1\n          scipy==1.11.2\n          scipy==1.11.3\n          scipy==1.11.4\n          scipy==1.12.0\n          scipy==1.13.0\n          scipy==1.13.1\n          scipy==1.14.0\n          scipy==1.14.1\n          scipy==1.15.0\n      we can conclude that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.9.2,<=1.9.3 depends on Python>=3.8,\n      we can conclude that scipy>=1.9.2,<=1.9.3 cannot be used.\n      And because we know from (1) that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used, we can conclude that scipy>=1.9.0,<1.11.0 cannot be used.\n      And because scipy==1.11.0 was yanked (reason: License Violation), we can conclude that scipy>=1.9.0,<1.11.1 cannot be\n      used. (2)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.1,<=1.11.3 depends on\n      Python>=3.9,<3.13, we can conclude that scipy>=1.11.1,<=1.11.3 cannot be used.\n      And because we know from (2) that scipy>=1.9.0,<1.11.1 cannot be used, we can conclude that scipy>=1.9.0,<1.11.4 cannot\n      be used. (3)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.4,<=1.13.1 depends on\n      Python>=3.9, we can conclude that scipy>=1.11.4,<=1.13.1 cannot be used.\n      And because we know from (3) that scipy>=1.9.0,<1.11.4 cannot be used, we can conclude that scipy>=1.9.0,<1.14.0 cannot\n      be used. (4)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.14.0 depends on Python>=3.10, we can\n      conclude that scipy>=1.14.0 cannot be used.\n      And because we know from (4) that scipy>=1.9.0,<1.14.0 cannot be used, we can conclude that scipy>=1.9.0 cannot be used.\n      And because you require scipy>=1.9, we can conclude that your requirements are unsatisfiable.\n\n      hint: Pre-releases are available for `scipy` in the requested range (e.g., 1.15.0rc2), but pre-releases weren't enabled\n      (try: `--prerelease=allow`)\nResolved 59 packages in 590ms\nInstalled 52 packages in 533ms\n + anyqt==0.2.0\n + attrs==24.2.0\n + backcall==0.2.0\n + cattrs==23.1.2\n + certifi==2024.12.14\n + charset-normalizer==3.4.1\n + commonmark==0.9.1\n + cycler==0.11.0\n + debugpy==1.7.0\n + decorator==5.1.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + entrypoints==0.4\n + fonttools==4.38.0\n + idna==3.10\n + ipykernel==6.16.2\n + ipython==7.34.0\n + ipython-genutils==0.2.0\n + jedi==0.19.2\n + jupyter-client==7.4.9\n + jupyter-core==4.12.0\n + kiwisolver==1.4.5\n + matplotlib==3.5.3\n + matplotlib-inline==0.1.6\n + nest-asyncio==1.6.0\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + parso==0.8.4\n + pexpect==4.9.0\n + pickleshare==0.7.5\n + pillow==9.5.0\n + pip==24.0\n + platformdirs==4.0.0\n + prompt-toolkit==3.0.48\n + psutil==6.1.1\n + ptyprocess==0.7.0\n + pygments==2.17.2\n + pyparsing==3.1.4\n + pyqtgraph==0.12.3\n + python-dateutil==2.9.0.post0\n + pyzmq==26.2.0\n + qasync==0.25.0\n + qtconsole==5.4.4\n + qtpy==2.4.2\n + requests==2.31.0\n + requests-cache==1.1.1\n + six==1.17.0\n + tornado==6.2\n + traitlets==5.9.0\n + url-normalize==1.4.3\n + urllib3==2.0.7\n + wcwidth==0.2.13\nResolved 2 packages in 3ms\nInstalled 2 packages in 38ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nResolved 19 packages in 119ms\nInstalled 8 packages in 1.31s\n + catboost==1.2.7\n + graphviz==0.20.1\n + pandas==1.3.5\n + plotly==5.18.0\n + pytz==2024.2\n + scipy==1.7.3\n + tenacity==8.2.3\n + xgboost==1.6.2\nResolved 5 packages in 22ms\nInstalled 3 packages in 76ms\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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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-kuj8ea89/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 81ms\nPrepared 15 packages in 1ms\nInstalled 15 packages in 120ms\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 138ms\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 59ms\nInstalled 41 packages in 150ms\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 660ms\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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b/.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_cb236e30140c33799167aedc1576fadb8b105f2b\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 17 items\n\nr2e_tests/test_1.py sss..............                                    [100%]\n\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_changing_size_adjustment_changes_sizes\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_changing_target_class_changes_coloring\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_context\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_depth_slider\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_image_export\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_info_label\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_keep_colors_on_sizing_change\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_migrate_version_1_settings\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_report\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_sending_rf_draws_trees\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_storing_selection\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_zoom\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\n======================== 14 passed, 3 skipped in 4.98s =========================\nWidgets left: 0    Max widgets: 1312 \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_cb236e30140c33799167aedc1576fadb8b105f2b\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 17 items\n\nr2e_tests/test_1.py sss..........F...                                    [100%]\n\n=================================== FAILURES ===================================\n_____________________ TestOWPythagoreanForest.test_report ______________________\n\nself = <r2e_tests.test_1.TestOWPythagoreanForest testMethod=test_report>\n\n    def test_report(self):\n>       self.widget.send_report()\n\nr2e_tests/test_1.py:243: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nOrange/widgets/visualize/owpythagoreanforest.py:380: in send_report\n    self.report_plot()\n.venv/lib/python3.8/site-packages/orangewidget/report/report.py:161: in report_plot\n    plot = getdeepattr(self, self.graph_name)\n.venv/lib/python3.8/site-packages/orangewidget/utils/__init__.py:34: in getdeepattr\n    return deepgetattr(obj, attr, *arg, **kwarg)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nobj = <Orange.widgets.visualize.owpythagoreanforest.OWPythagoreanForest object at 0x75b828875310>\nattr = 'scene', default = <object object at 0x75b83d8e1320>\n\n    def deepgetattr(obj, attr, default=_NOTSET):\n        \"\"\"Works exactly like getattr(), except that attr can be a nested attribute\n        (e.g. \"attr1.attr2.attr3\").\n        \"\"\"\n        try:\n>           return attrgetter(attr)(obj)\nE           AttributeError: 'OWPythagoreanForest' object has no attribute 'scene'\n\n.venv/lib/python3.8/site-packages/orangewidget/utils/__init__.py:24: AttributeError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_changing_size_adjustment_changes_sizes\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_changing_target_class_changes_coloring\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_context\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_depth_slider\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_image_export\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_info_label\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_keep_colors_on_sizing_change\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_migrate_version_1_settings\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_sending_rf_draws_trees\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_storing_selection\nPASSED r2e_tests/test_1.py::TestOWPythagoreanForest::test_zoom\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\nFAILED r2e_tests/test_1.py::TestOWPythagoreanForest::test_report - AttributeE...\n=================== 1 failed, 13 passed, 3 skipped in 3.36s ====================\nWidgets left: 0    Max widgets: 1312 \n\n",
    "old_commit_res_stderr": ""
}
Orange/widgets/visualize/owpythagoreanforest.py Orange/widgets/visualize/tests/test_owpythagoreanforest.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
**Analysis:**

- **Key Parts:**
  - **Commit Message:** "Pythagorean Forest: Fix report."
  - **Test Results:** The `test_report` was failing with an `AttributeError` stating that `'OWPythagoreanForest' object has no attribute 'scene'`.
  - **Commit Patch:** The `send_report` method was modified to build an HTML report without relying on the `scene` attribute.

- **Main Problem:** The `send_report` method in the `OWPythagoreanForest` widget fails because it tries to access a non-existent `scene` attribute, causing an `AttributeError`.

- **Expected Behavior:** The `send_report` method should successfully generate and send a report without relying on the `scene` attribute.

- **Actual Behavior:** Calling `send_report` results in an `AttributeError` because the `scene` attribute does not exist in the `OWPythagoreanForest` object.

- **Issue Description:** A junior developer encounters an error when attempting to generate a report using the `PythagoreanForest` widget. The error occurs because the `send_report` method is trying to access an attribute that hasn't been initialized.

---

[ISSUE]
**Title:** `send_report` method in PythagoreanForest widget raises AttributeError due to missing `scene` attribute

**Description:**
When invoking the `send_report` method of the `PythagoreanForest` widget, an `AttributeError` is raised because the widget does not have a `scene` attribute initialized. This prevents the generation and sending of the report as intended.

**Example Code:**
```python
widget = OWPythagoreanForest()
widget.send_report()
```

**Expected Behavior:**
Calling `send_report` should generate and send a report without any errors, successfully capturing the necessary data and visuals from the widget.

**Actual Behavior:**
Executing `send_report` results in the following error:
```
AttributeError: 'OWPythagoreanForest' object has no attribute 'scene'
```
This error indicates that the method is attempting to access an attribute that hasn't been defined or initialized within the widget.

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

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

--- BEGIN FILE ---
```
### Orange/widgets/visualize/owpythagoreanforest.py
"""Pythagorean forest widget for visualizing random forests."""
from math import log, sqrt
from typing import Any, Callable, Optional

from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \
    QItemSelection, QItemSelectionModel, QT_VERSION
from AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent
from AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \
    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle

from Orange.base import RandomForestModel, TreeModel
from Orange.data import Table
from Orange.widgets import gui, settings
from Orange.widgets.utils.itemmodels import PyListModel
from Orange.widgets.utils.signals import Input, Output
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.visualize.pythagorastreeviewer import (
    PythagorasTreeViewer,
    ContinuousTreeNode,
)
from Orange.widgets.visualize.utils.tree.skltreeadapter import \
    SklTreeAdapter
from Orange.widgets.widget import OWWidget


class PythagoreanForestModel(PyListModel):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.depth_limit = -1
        self.target_class_idx = None
        self.size_calc_idx = 0
        self.size_adjustment = None
        self.item_scale = 2

    def data(self, index, role=Qt.DisplayRole):
        # type: (QModelIndex, Qt.QDisplayRole) -> Any
        if not index.isValid():
            return None

        idx = index.row()

        if role == Qt.SizeHintRole:
            return self.item_scale * QSize(100, 100)

        if role == Qt.DisplayRole:
            if 'tree' not in self._other_data[idx]:
                scene = QGraphicsScene(parent=self)
                tree = PythagorasTreeViewer(
                    adapter=self._list[idx],
                    weight_adjustment=OWPythagoreanForest.SIZE_CALCULATION[
                        self.size_calc_idx][1],
                    interactive=False,
                    padding=100,
                    depth_limit=self.depth_limit,
                    target_class_index=self.target_class_idx,
                )
                scene.addItem(tree)
                self._other_data[idx]['scene'] = scene
                self._other_data[idx]['tree'] = tree

            return self._other_data[idx]['scene']

        return super().data(index, role)

    @property
    def trees(self):
        """Get the tree adapters."""
        return self._list

    def update_tree_views(self, func):
        # type: (Callable[[PythagorasTreeViewer], None]) -> None
        """Apply `func` to every rendered tree viewer instance."""
        for idx, tree_data in enumerate(self._other_data):
            if 'tree' in tree_data:
                func(tree_data['tree'])
                index = self.index(idx)
                if QT_VERSION < 0x50000:
                    self.dataChanged.emit(index, index)
                else:
                    self.dataChanged.emit(index, index, [Qt.DisplayRole])

    def update_depth(self, depth):
        self.depth_limit = depth
        self.update_tree_views(lambda tree: tree.set_depth_limit(depth))

    def update_target_class(self, idx):
        self.target_class_idx = idx
        self.update_tree_views(lambda tree: tree.target_class_changed(idx))

    def update_item_size(self, scale):
        self.item_scale = scale / 100
        indices = [idx for idx, _ in enumerate(self._other_data)]
        self.emitDataChanged(indices)

    def update_size_calc(self, idx):
        self.size_calc_idx = idx
        _, size_calc = OWPythagoreanForest.SIZE_CALCULATION[idx]
        self.update_tree_views(lambda tree: tree.set_size_calc(size_calc))


class PythagorasTreeDelegate(QStyledItemDelegate):
    def paint(self, painter, option, index):
        # type: (QPainter, QStyleOptionViewItem, QModelIndex) -> None
        scene = index.data(Qt.DisplayRole)  # type: Optional[QGraphicsScene]
        if scene is None:
            super().paint(painter, option, index)
            return

        painter.save()
        rect = QRectF(QPointF(option.rect.topLeft()), QSizeF(option.rect.size()))
        if option.state & QStyle.State_Selected:
            painter.setPen(QPen(QColor(125, 162, 206, 192)))
            painter.setBrush(QBrush(QColor(217, 232, 252, 192)))
        else:
            painter.setPen(QPen(QColor('#ebebeb')))
        painter.drawRoundedRect(rect, 3, 3)
        painter.restore()

        painter.setRenderHint(QPainter.Antialiasing)

        # The sceneRect doesn't automatically shrink to fit contents, so when
        # drawing smaller tree, remove any excess space aroung the tree
        scene.setSceneRect(scene.itemsBoundingRect())

        # Make sure the tree is centered in the item cell
        # First, figure out how much we get the bounding rect to the size of
        # the available painting rect
        scene_rect = scene.itemsBoundingRect()
        w_scale = option.rect.width() / scene_rect.width()
        h_scale = option.rect.height() / scene_rect.height()
        # In order to keep the aspect ratio, we use the same scale
        scale = min(w_scale, h_scale)
        # Figure out the rescaled scene width/height
        scene_w = scale * scene_rect.width()
        scene_h = scale * scene_rect.height()
        # Figure out how much we have to offset the rect so that the scene will
        # be painted in the centre of the rect
        offset_w = (option.rect.width() - scene_w) / 2
        offset_h = (option.rect.height() - scene_h) / 2
        offset = option.rect.topLeft() + QPointF(offset_w, offset_h)
        # Finally, we have all the data for the new rect in which to render
        target_rect = QRectF(offset, QSizeF(scene_w, scene_h))

        scene.render(painter, target=target_rect, mode=Qt.KeepAspectRatio)


class ClickToClearSelectionListView(QListView):
    """Clicking outside any item clears the current selection."""
    def mousePressEvent(self, event):
        # type: (QMouseEvent) -> None
        super().mousePressEvent(event)

        index = self.indexAt(event.pos())
        if index.row() == -1:
            self.clearSelection()


class OWPythagoreanForest(OWWidget):
    name = 'Pythagorean Forest'
    description = 'Pythagorean forest for visualising random forests.'
    icon = 'icons/PythagoreanForest.svg'
    settings_version = 2
    keywords = ["fractal"]

    priority = 1001

    class Inputs:
        random_forest = Input("Random Forest", RandomForestModel, replaces=["Random forest"])

    class Outputs:
        tree = Output("Tree", TreeModel)

    # Enable the save as feature
    graph_name = 'scene'

    # Settings
    settingsHandler = settings.ClassValuesContextHandler()

    depth_limit = settings.Setting(10)
    target_class_index = settings.ContextSetting(0)
    size_calc_idx = settings.Setting(0)
    zoom = settings.Setting(200)

    selected_index = settings.ContextSetting(None)

    SIZE_CALCULATION = [
        ('Normal', lambda x: x),
        ('Square root', lambda x: sqrt(x)),
        ('Logarithmic', lambda x: log(x + 1)),
    ]

    @classmethod
    def migrate_settings(cls, settings, version):
        if version < 2:
            settings.pop('selected_tree_index', None)
            v1_min, v1_max = 20, 150
            v2_min, v2_max = 100, 400
            ratio = (v2_max - v2_min) / (v1_max - v1_min)
            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)

    def __init__(self):
        super().__init__()
        self.rf_model = None
        self.forest = None
        self.instances = None

        self.color_palette = None

        # CONTROL AREA
        # Tree info area
        box_info = gui.widgetBox(self.controlArea, 'Forest')
        self.ui_info = gui.widgetLabel(box_info)

        # Display controls area
        box_display = gui.widgetBox(self.controlArea, 'Display')
        # maxValue is set to a wide three-digit number to probably ensure the
        # proper label width. The maximum is later set to match the tree depth
        self.ui_depth_slider = gui.hSlider(
            box_display, self, 'depth_limit', label='Depth', ticks=False,
            maxValue=900
        )  # type: QSlider
        self.ui_target_class_combo = gui.comboBox(
            box_display, self, 'target_class_index', label='Target class',
            orientation=Qt.Horizontal, items=[], contentsLength=8,
            searchable=True
        )
        self.ui_size_calc_combo = gui.comboBox(
            box_display, self, 'size_calc_idx', label='Size',
            orientation=Qt.Horizontal,
            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,
        )
        self.ui_zoom_slider = gui.hSlider(
            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,
            maxValue=400, createLabel=False, intOnly=False,
        )  # type: QSlider

        # Stretch to fit the rest of the unsused area
        gui.rubber(self.controlArea)

        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)

        # MAIN AREA
        self.forest_model = PythagoreanForestModel(parent=self)
        self.forest_model.update_item_size(self.zoom)
        self.ui_depth_slider.valueChanged.connect(
            self.forest_model.update_depth)
        self.ui_target_class_combo.currentIndexChanged.connect(
            self.forest_model.update_target_class)
        self.ui_zoom_slider.valueChanged.connect(
            self.forest_model.update_item_size)
        self.ui_size_calc_combo.currentIndexChanged.connect(
            self.forest_model.update_size_calc)

        self.list_delegate = PythagorasTreeDelegate(parent=self)
        self.list_view = ClickToClearSelectionListView(parent=self)
        self.list_view.setWrapping(True)
        self.list_view.setFlow(QListView.LeftToRight)
        self.list_view.setResizeMode(QListView.Adjust)
        self.list_view.setModel(self.forest_model)
        self.list_view.setItemDelegate(self.list_delegate)
        self.list_view.setSpacing(2)
        self.list_view.setSelectionMode(QListView.SingleSelection)
        self.list_view.selectionModel().selectionChanged.connect(self.commit)
        self.list_view.setUniformItemSizes(True)
        self.mainArea.layout().addWidget(self.list_view)

        self.resize(800, 500)

        # Clear to set sensible default values
        self.clear()

    @Inputs.random_forest
    def set_rf(self, model=None):
        """When a different forest is given."""
        self.closeContext()
        self.clear()
        self.rf_model = model

        if model is not None:
            self.instances = model.instances
            self._update_target_class_combo()

            self.forest = self._get_forest_adapter(self.rf_model)
            self.forest_model[:] = self.forest.trees

            self._update_info_box()
            self._update_depth_slider()

            self.openContext(
                model.domain.class_var if model.domain is not None else None
            )
        # Restore item selection
        if self.selected_index is not None:
            index = self.list_view.model().index(self.selected_index)
            selection = QItemSelection(index, index)
            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)

    def clear(self):
        """Clear all relevant data from the widget."""
        self.rf_model = None
        self.forest = None
        self.forest_model.clear()
        self.selected_index = None

        self._clear_info_box()
        self._clear_target_class_combo()
        self._clear_depth_slider()

    def _update_info_box(self):
        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))

    def _update_depth_slider(self):
        self.depth_limit = self._get_max_depth()

        self.ui_depth_slider.parent().setEnabled(True)
        self.ui_depth_slider.setMaximum(self.depth_limit)
        self.ui_depth_slider.setValue(self.depth_limit)

    def _update_target_class_combo(self):
        self._clear_target_class_combo()
        label = [x for x in self.ui_target_class_combo.parent().children()
                 if isinstance(x, QLabel)][0]

        if self.instances.domain.has_discrete_class:
            label_text = 'Target class'
            values = [c.title() for c in self.instances.domain.class_vars[0].values]
            values.insert(0, 'None')
        else:
            label_text = 'Node color'
            values = list(ContinuousTreeNode.COLOR_METHODS.keys())
        label.setText(label_text)
        self.ui_target_class_combo.addItems(values)
        # set it to 0, context will change if required
        self.target_class_index = 0

    def _clear_info_box(self):
        self.ui_info.setText('No forest on input.')

    def _clear_target_class_combo(self):
        self.ui_target_class_combo.clear()
        self.target_class_index = -1

    def _clear_depth_slider(self):
        self.ui_depth_slider.parent().setEnabled(False)
        self.ui_depth_slider.setMaximum(0)

    def _get_max_depth(self):
        return max(tree.max_depth for tree in self.forest.trees)

    def _get_forest_adapter(self, model):
        return SklRandomForestAdapter(model)

    def onDeleteWidget(self):
        """When deleting the widget."""
        super().onDeleteWidget()
        self.clear()

    def commit(self, selection: QItemSelection) -> None:
        """Commit the selected tree to output."""
        selected_indices = selection.indexes()

        if not len(selected_indices):
            self.selected_index = None
            self.Outputs.tree.send(None)
            return

        # We only allow selecting a single tree so there will always be one index
        self.selected_index = selected_indices[0].row()

        tree = self.rf_model.trees[self.selected_index]
        tree.instances = self.instances
        tree.meta_target_class_index = self.target_class_index
        tree.meta_size_calc_idx = self.size_calc_idx
        tree.meta_depth_limit = self.depth_limit

        self.Outputs.tree.send(tree)

    def send_report(self):
        """Send report."""
        self.report_plot()


class SklRandomForestAdapter:
    """Take a `RandomForest` and wrap all the trees into the `SklTreeAdapter`
    instances that Pythagorean trees use."""
    def __init__(self, model):
        self._adapters = None
        self._domain = model.domain
        self._trees = model.trees

    @property
    def trees(self):
        """Get the tree adapters in the random forest."""
        if not self._adapters:
            self._adapters = list(map(SklTreeAdapter, self._trees))
        return self._adapters

    @property
    def domain(self):
        """Get the domain."""
        return self._domain


if __name__ == '__main__':  # pragma: no cover
    from Orange.modelling import RandomForestLearner
    data = Table('iris')
    rf = RandomForestLearner(n_estimators=10)(data)
    rf.instances = data
    WidgetPreview(OWPythagoreanForest).run(rf)

```
--- 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.
**Analysis:**

- **Key Parts:**
  - **Commit Message:** "Pythagorean Forest: Fix report."
  - **Test Results:** The `test_report` was failing with an `AttributeError` stating that `'OWPythagoreanForest' object has no attribute 'scene'`.
  - **Commit Patch:** The `send_report` method was modified to build an HTML report without relying on the `scene` attribute.

- **Main Problem:** The `send_report` method in the `OWPythagoreanForest` widget fails because it tries to access a non-existent `scene` attribute, causing an `AttributeError`.

- **Expected Behavior:** The `send_report` method should successfully generate and send a report without relying on the `scene` attribute.

- **Actual Behavior:** Calling `send_report` results in an `AttributeError` because the `scene` attribute does not exist in the `OWPythagoreanForest` object.

- **Issue Description:** A junior developer encounters an error when attempting to generate a report using the `PythagoreanForest` widget. The error occurs because the `send_report` method is trying to access an attribute that hasn't been initialized.

---

[ISSUE]
**Title:** `send_report` method in PythagoreanForest widget raises AttributeError due to missing `scene` attribute

**Description:**
When invoking the `send_report` method of the `PythagoreanForest` widget, an `AttributeError` is raised because the widget does not have a `scene` attribute initialized. This prevents the generation and sending of the report as intended.

**Example Code:**
```python
widget = OWPythagoreanForest()
widget.send_report()
```

**Expected Behavior:**
Calling `send_report` should generate and send a report without any errors, successfully capturing the necessary data and visuals from the widget.

**Actual Behavior:**
Executing `send_report` results in the following error:
```
AttributeError: 'OWPythagoreanForest' object has no attribute 'scene'
```
This error indicates that the method is attempting to access an attribute that hasn't been defined or initialized within the widget.

[/ISSUE]
{
    "TestOWPythagoreanForest.test_changing_size_adjustment_changes_sizes": "PASSED",
    "TestOWPythagoreanForest.test_changing_target_class_changes_coloring": "PASSED",
    "TestOWPythagoreanForest.test_context": "PASSED",
    "TestOWPythagoreanForest.test_depth_slider": "PASSED",
    "TestOWPythagoreanForest.test_image_export": "PASSED",
    "TestOWPythagoreanForest.test_info_label": "PASSED",
    "TestOWPythagoreanForest.test_keep_colors_on_sizing_change": "PASSED",
    "TestOWPythagoreanForest.test_migrate_version_1_settings": "PASSED",
    "TestOWPythagoreanForest.test_minimum_size": "PASSED",
    "TestOWPythagoreanForest.test_msg_base_class": "PASSED",
    "TestOWPythagoreanForest.test_report": "PASSED",
    "TestOWPythagoreanForest.test_sending_rf_draws_trees": "PASSED",
    "TestOWPythagoreanForest.test_storing_selection": "PASSED",
    "TestOWPythagoreanForest.test_zoom": "PASSED"
}
diff --git a/Orange/widgets/visualize/owpythagoreanforest.py b/Orange/widgets/visualize/owpythagoreanforest.py
index f615f0f14..e0b36d135 100644
--- a/Orange/widgets/visualize/owpythagoreanforest.py
+++ b/Orange/widgets/visualize/owpythagoreanforest.py
@@ -3,11 +3,13 @@ from math import log, sqrt
 from typing import Any, Callable, Optional
 
 from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \
-    QItemSelection, QItemSelectionModel, QT_VERSION
+    QItemSelection, QItemSelectionModel, QT_VERSION, QByteArray, QBuffer, \
+    QIODevice
 from AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent
 from AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \
     QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle
 
+from orangewidget.io import PngFormat
 from Orange.base import RandomForestModel, TreeModel
 from Orange.data import Table
 from Orange.widgets import gui, settings
@@ -23,6 +25,53 @@ from Orange.widgets.visualize.utils.tree.skltreeadapter import \
 from Orange.widgets.widget import OWWidget
 
 
+REPORT_STYLE = """
+<style>
+* {
+  box-sizing: border-box;
+}
+
+.forest_model_row {
+  display: flex;
+  flex-wrap: wrap;
+  padding: 0 4px;
+}
+
+.forest_model_col {
+  flex: 10%;
+  max-width: 10%;
+  padding: 0 4px;
+}
+
+.forest_model_col img {
+  margin-top: 8px;
+  vertical-align: middle;
+}
+
+@media screen and (max-width: 2200px) {
+  .forest_model_col {
+    flex: 25%;
+    max-width: 25%;
+  }
+}
+
+@media screen and (max-width: 1200px) {
+  .forest_model_col {
+    flex: 50%;
+    max-width: 50%;
+  }
+}
+
+@media screen and (max-width: 600px) {
+  .forest_model_col {
+    flex: 100%;
+    max-width: 100%;
+  }
+}
+</style>
+"""
+
+
 class PythagoreanForestModel(PyListModel):
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
@@ -377,7 +426,30 @@ class OWPythagoreanForest(OWWidget):
 
     def send_report(self):
         """Send report."""
-        self.report_plot()
+        model = self.forest_model
+        max_rows = 30
+
+        def item_html(row):
+            img_data = model.data(model.index(row))
+            byte_array = QByteArray()
+            filename = QBuffer(byte_array)
+            filename.open(QIODevice.WriteOnly)
+            PngFormat.write(filename, img_data)
+            img_encoded = byte_array.toBase64().data().decode("utf-8")
+            return f'<img style="width:100%" ' \
+                   f'src="data:image/png;base64,{img_encoded}"/>'
+
+        html = ["<div class='forest_model_row'>"]
+        for i in range(model.rowCount())[:max_rows]:
+            html.append("<div class='forest_model_col'>")
+            html.extend(item_html(i))
+            html.append("</div>")
+        html.append("</div>")
+
+        html = REPORT_STYLE + "".join(html)
+        if model.rowCount() > max_rows:
+            html += "<p>. . .</p>"
+        self.report_raw(html)
 
 
 class SklRandomForestAdapter:

{"Orange/widgets/visualize/owpythagoreanforest.py": "\"\"\"Pythagorean forest widget for visualizing random forests.\"\"\"\nfrom math import log, sqrt\nfrom typing import Any, Callable, Optional\n\nfrom AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \\\n    QItemSelection, QItemSelectionModel, QT_VERSION\nfrom AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent\nfrom AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \\\n    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle\n\nfrom Orange.base import RandomForestModel, TreeModel\nfrom Orange.data import Table\nfrom Orange.widgets import gui, settings\nfrom Orange.widgets.utils.itemmodels import PyListModel\nfrom Orange.widgets.utils.signals import Input, Output\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.visualize.pythagorastreeviewer import (\n    PythagorasTreeViewer,\n    ContinuousTreeNode,\n)\nfrom Orange.widgets.visualize.utils.tree.skltreeadapter import \\\n    SklTreeAdapter\nfrom Orange.widgets.widget import OWWidget\n\n\nclass PythagoreanForestModel(PyListModel):\n    def __init__(self, *args, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.depth_limit = -1\n        self.target_class_idx = None\n        self.size_calc_idx = 0\n        self.size_adjustment = None\n        self.item_scale = 2\n\n    def data(self, index, role=Qt.DisplayRole):\n        # type: (QModelIndex, Qt.QDisplayRole) -> Any\n        if not index.isValid():\n            return None\n\n        idx = index.row()\n\n        if role == Qt.SizeHintRole:\n            return self.item_scale * QSize(100, 100)\n\n        if role == Qt.DisplayRole:\n            if 'tree' not in self._other_data[idx]:\n                scene = QGraphicsScene(parent=self)\n                tree = PythagorasTreeViewer(\n                    adapter=self._list[idx],\n                    weight_adjustment=OWPythagoreanForest.SIZE_CALCULATION[\n                        self.size_calc_idx][1],\n                    interactive=False,\n                    padding=100,\n                    depth_limit=self.depth_limit,\n                    target_class_index=self.target_class_idx,\n                )\n                scene.addItem(tree)\n                self._other_data[idx]['scene'] = scene\n                self._other_data[idx]['tree'] = tree\n\n            return self._other_data[idx]['scene']\n\n        return super().data(index, role)\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters.\"\"\"\n        return self._list\n\n    def update_tree_views(self, func):\n        # type: (Callable[[PythagorasTreeViewer], None]) -> None\n        \"\"\"Apply `func` to every rendered tree viewer instance.\"\"\"\n        for idx, tree_data in enumerate(self._other_data):\n            if 'tree' in tree_data:\n                func(tree_data['tree'])\n                index = self.index(idx)\n                if QT_VERSION < 0x50000:\n                    self.dataChanged.emit(index, index)\n                else:\n                    self.dataChanged.emit(index, index, [Qt.DisplayRole])\n\n    def update_depth(self, depth):\n        self.depth_limit = depth\n        self.update_tree_views(lambda tree: tree.set_depth_limit(depth))\n\n    def update_target_class(self, idx):\n        self.target_class_idx = idx\n        self.update_tree_views(lambda tree: tree.target_class_changed(idx))\n\n    def update_item_size(self, scale):\n        self.item_scale = scale / 100\n        indices = [idx for idx, _ in enumerate(self._other_data)]\n        self.emitDataChanged(indices)\n\n    def update_size_calc(self, idx):\n        self.size_calc_idx = idx\n        _, size_calc = OWPythagoreanForest.SIZE_CALCULATION[idx]\n        self.update_tree_views(lambda tree: tree.set_size_calc(size_calc))\n\n\nclass PythagorasTreeDelegate(QStyledItemDelegate):\n    def paint(self, painter, option, index):\n        # type: (QPainter, QStyleOptionViewItem, QModelIndex) -> None\n        scene = index.data(Qt.DisplayRole)  # type: Optional[QGraphicsScene]\n        if scene is None:\n            super().paint(painter, option, index)\n            return\n\n        painter.save()\n        rect = QRectF(QPointF(option.rect.topLeft()), QSizeF(option.rect.size()))\n        if option.state & QStyle.State_Selected:\n            painter.setPen(QPen(QColor(125, 162, 206, 192)))\n            painter.setBrush(QBrush(QColor(217, 232, 252, 192)))\n        else:\n            painter.setPen(QPen(QColor('#ebebeb')))\n        painter.drawRoundedRect(rect, 3, 3)\n        painter.restore()\n\n        painter.setRenderHint(QPainter.Antialiasing)\n\n        # The sceneRect doesn't automatically shrink to fit contents, so when\n        # drawing smaller tree, remove any excess space aroung the tree\n        scene.setSceneRect(scene.itemsBoundingRect())\n\n        # Make sure the tree is centered in the item cell\n        # First, figure out how much we get the bounding rect to the size of\n        # the available painting rect\n        scene_rect = scene.itemsBoundingRect()\n        w_scale = option.rect.width() / scene_rect.width()\n        h_scale = option.rect.height() / scene_rect.height()\n        # In order to keep the aspect ratio, we use the same scale\n        scale = min(w_scale, h_scale)\n        # Figure out the rescaled scene width/height\n        scene_w = scale * scene_rect.width()\n        scene_h = scale * scene_rect.height()\n        # Figure out how much we have to offset the rect so that the scene will\n        # be painted in the centre of the rect\n        offset_w = (option.rect.width() - scene_w) / 2\n        offset_h = (option.rect.height() - scene_h) / 2\n        offset = option.rect.topLeft() + QPointF(offset_w, offset_h)\n        # Finally, we have all the data for the new rect in which to render\n        target_rect = QRectF(offset, QSizeF(scene_w, scene_h))\n\n        scene.render(painter, target=target_rect, mode=Qt.KeepAspectRatio)\n\n\nclass ClickToClearSelectionListView(QListView):\n    \"\"\"Clicking outside any item clears the current selection.\"\"\"\n    def mousePressEvent(self, event):\n        # type: (QMouseEvent) -> None\n        super().mousePressEvent(event)\n\n        index = self.indexAt(event.pos())\n        if index.row() == -1:\n            self.clearSelection()\n\n\nclass OWPythagoreanForest(OWWidget):\n    name = 'Pythagorean Forest'\n    description = 'Pythagorean forest for visualising random forests.'\n    icon = 'icons/PythagoreanForest.svg'\n    settings_version = 2\n    keywords = [\"fractal\"]\n\n    priority = 1001\n\n    class Inputs:\n        random_forest = Input(\"Random Forest\", RandomForestModel, replaces=[\"Random forest\"])\n\n    class Outputs:\n        tree = Output(\"Tree\", TreeModel)\n\n    # Enable the save as feature\n    graph_name = 'scene'\n\n    # Settings\n    settingsHandler = settings.ClassValuesContextHandler()\n\n    depth_limit = settings.Setting(10)\n    target_class_index = settings.ContextSetting(0)\n    size_calc_idx = settings.Setting(0)\n    zoom = settings.Setting(200)\n\n    selected_index = settings.ContextSetting(None)\n\n    SIZE_CALCULATION = [\n        ('Normal', lambda x: x),\n        ('Square root', lambda x: sqrt(x)),\n        ('Logarithmic', lambda x: log(x + 1)),\n    ]\n\n    @classmethod\n    def migrate_settings(cls, settings, version):\n        if version < 2:\n            settings.pop('selected_tree_index', None)\n            v1_min, v1_max = 20, 150\n            v2_min, v2_max = 100, 400\n            ratio = (v2_max - v2_min) / (v1_max - v1_min)\n            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)\n\n    def __init__(self):\n        super().__init__()\n        self.rf_model = None\n        self.forest = None\n        self.instances = None\n\n        self.color_palette = None\n\n        # CONTROL AREA\n        # Tree info area\n        box_info = gui.widgetBox(self.controlArea, 'Forest')\n        self.ui_info = gui.widgetLabel(box_info)\n\n        # Display controls area\n        box_display = gui.widgetBox(self.controlArea, 'Display')\n        # maxValue is set to a wide three-digit number to probably ensure the\n        # proper label width. The maximum is later set to match the tree depth\n        self.ui_depth_slider = gui.hSlider(\n            box_display, self, 'depth_limit', label='Depth', ticks=False,\n            maxValue=900\n        )  # type: QSlider\n        self.ui_target_class_combo = gui.comboBox(\n            box_display, self, 'target_class_index', label='Target class',\n            orientation=Qt.Horizontal, items=[], contentsLength=8,\n            searchable=True\n        )\n        self.ui_size_calc_combo = gui.comboBox(\n            box_display, self, 'size_calc_idx', label='Size',\n            orientation=Qt.Horizontal,\n            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,\n        )\n        self.ui_zoom_slider = gui.hSlider(\n            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,\n            maxValue=400, createLabel=False, intOnly=False,\n        )  # type: QSlider\n\n        # Stretch to fit the rest of the unsused area\n        gui.rubber(self.controlArea)\n\n        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)\n\n        # MAIN AREA\n        self.forest_model = PythagoreanForestModel(parent=self)\n        self.forest_model.update_item_size(self.zoom)\n        self.ui_depth_slider.valueChanged.connect(\n            self.forest_model.update_depth)\n        self.ui_target_class_combo.currentIndexChanged.connect(\n            self.forest_model.update_target_class)\n        self.ui_zoom_slider.valueChanged.connect(\n            self.forest_model.update_item_size)\n        self.ui_size_calc_combo.currentIndexChanged.connect(\n            self.forest_model.update_size_calc)\n\n        self.list_delegate = PythagorasTreeDelegate(parent=self)\n        self.list_view = ClickToClearSelectionListView(parent=self)\n        self.list_view.setWrapping(True)\n        self.list_view.setFlow(QListView.LeftToRight)\n        self.list_view.setResizeMode(QListView.Adjust)\n        self.list_view.setModel(self.forest_model)\n        self.list_view.setItemDelegate(self.list_delegate)\n        self.list_view.setSpacing(2)\n        self.list_view.setSelectionMode(QListView.SingleSelection)\n        self.list_view.selectionModel().selectionChanged.connect(self.commit)\n        self.list_view.setUniformItemSizes(True)\n        self.mainArea.layout().addWidget(self.list_view)\n\n        self.resize(800, 500)\n\n        # Clear to set sensible default values\n        self.clear()\n\n    @Inputs.random_forest\n    def set_rf(self, model=None):\n        \"\"\"When a different forest is given.\"\"\"\n        self.closeContext()\n        self.clear()\n        self.rf_model = model\n\n        if model is not None:\n            self.instances = model.instances\n            self._update_target_class_combo()\n\n            self.forest = self._get_forest_adapter(self.rf_model)\n            self.forest_model[:] = self.forest.trees\n\n            self._update_info_box()\n            self._update_depth_slider()\n\n            self.openContext(\n                model.domain.class_var if model.domain is not None else None\n            )\n        # Restore item selection\n        if self.selected_index is not None:\n            index = self.list_view.model().index(self.selected_index)\n            selection = QItemSelection(index, index)\n            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)\n\n    def clear(self):\n        \"\"\"Clear all relevant data from the widget.\"\"\"\n        self.rf_model = None\n        self.forest = None\n        self.forest_model.clear()\n        self.selected_index = None\n\n        self._clear_info_box()\n        self._clear_target_class_combo()\n        self._clear_depth_slider()\n\n    def _update_info_box(self):\n        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))\n\n    def _update_depth_slider(self):\n        self.depth_limit = self._get_max_depth()\n\n        self.ui_depth_slider.parent().setEnabled(True)\n        self.ui_depth_slider.setMaximum(self.depth_limit)\n        self.ui_depth_slider.setValue(self.depth_limit)\n\n    def _update_target_class_combo(self):\n        self._clear_target_class_combo()\n        label = [x for x in self.ui_target_class_combo.parent().children()\n                 if isinstance(x, QLabel)][0]\n\n        if self.instances.domain.has_discrete_class:\n            label_text = 'Target class'\n            values = [c.title() for c in self.instances.domain.class_vars[0].values]\n            values.insert(0, 'None')\n        else:\n            label_text = 'Node color'\n            values = list(ContinuousTreeNode.COLOR_METHODS.keys())\n        label.setText(label_text)\n        self.ui_target_class_combo.addItems(values)\n        # set it to 0, context will change if required\n        self.target_class_index = 0\n\n    def _clear_info_box(self):\n        self.ui_info.setText('No forest on input.')\n\n    def _clear_target_class_combo(self):\n        self.ui_target_class_combo.clear()\n        self.target_class_index = -1\n\n    def _clear_depth_slider(self):\n        self.ui_depth_slider.parent().setEnabled(False)\n        self.ui_depth_slider.setMaximum(0)\n\n    def _get_max_depth(self):\n        return max(tree.max_depth for tree in self.forest.trees)\n\n    def _get_forest_adapter(self, model):\n        return SklRandomForestAdapter(model)\n\n    def onDeleteWidget(self):\n        \"\"\"When deleting the widget.\"\"\"\n        super().onDeleteWidget()\n        self.clear()\n\n    def commit(self, selection: QItemSelection) -> None:\n        \"\"\"Commit the selected tree to output.\"\"\"\n        selected_indices = selection.indexes()\n\n        if not len(selected_indices):\n            self.selected_index = None\n            self.Outputs.tree.send(None)\n            return\n\n        # We only allow selecting a single tree so there will always be one index\n        self.selected_index = selected_indices[0].row()\n\n        tree = self.rf_model.trees[self.selected_index]\n        tree.instances = self.instances\n        tree.meta_target_class_index = self.target_class_index\n        tree.meta_size_calc_idx = self.size_calc_idx\n        tree.meta_depth_limit = self.depth_limit\n\n        self.Outputs.tree.send(tree)\n\n    def send_report(self):\n        \"\"\"Send report.\"\"\"\n        self.report_plot()\n\n\nclass SklRandomForestAdapter:\n    \"\"\"Take a `RandomForest` and wrap all the trees into the `SklTreeAdapter`\n    instances that Pythagorean trees use.\"\"\"\n    def __init__(self, model):\n        self._adapters = None\n        self._domain = model.domain\n        self._trees = model.trees\n\n    @property\n    def trees(self):\n        \"\"\"Get the tree adapters in the random forest.\"\"\"\n        if not self._adapters:\n            self._adapters = list(map(SklTreeAdapter, self._trees))\n        return self._adapters\n\n    @property\n    def domain(self):\n        \"\"\"Get the domain.\"\"\"\n        return self._domain\n\n\nif __name__ == '__main__':  # pragma: no cover\n    from Orange.modelling import RandomForestLearner\n    data = Table('iris')\n    rf = RandomForestLearner(n_estimators=10)(data)\n    rf.instances = data\n    WidgetPreview(OWPythagoreanForest).run(rf)\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 ---
**Analysis:**

- **Key Parts:**
  - **Commit Message:** "Pythagorean Forest: Fix report."
  - **Test Results:** The `test_report` was failing with an `AttributeError` stating that `'OWPythagoreanForest' object has no attribute 'scene'`.
  - **Commit Patch:** The `send_report` method was modified to build an HTML report without relying on the `scene` attribute.

- **Main Problem:** The `send_report` method in the `OWPythagoreanForest` widget fails because it tries to access a non-existent `scene` attribute, causing an `AttributeError`.

- **Expected Behavior:** The `send_report` method should successfully generate and send a report without relying on the `scene` attribute.

- **Actual Behavior:** Calling `send_report` results in an `AttributeError` because the `scene` attribute does not exist in the `OWPythagoreanForest` object.

- **Issue Description:** A junior developer encounters an error when attempting to generate a report using the `PythagoreanForest` widget. The error occurs because the `send_report` method is trying to access an attribute that hasn't been initialized.

---

[ISSUE]
**Title:** `send_report` method in PythagoreanForest widget raises AttributeError due to missing `scene` attribute

**Description:**
When invoking the `send_report` method of the `PythagoreanForest` widget, an `AttributeError` is raised because the widget does not have a `scene` attribute initialized. This prevents the generation and sending of the report as intended.

**Example Code:**
```python
widget = OWPythagoreanForest()
widget.send_report()
```

**Expected Behavior:**
Calling `send_report` should generate and send a report without any errors, successfully capturing the necessary data and visuals from the widget.

**Actual Behavior:**
Executing `send_report` results in the following error:
```
AttributeError: 'OWPythagoreanForest' object has no attribute 'scene'
```
This error indicates that the method is attempting to access an attribute that hasn't been defined or initialized within the widget.

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

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

--- BEGIN FILE ---
```
### Orange/widgets/visualize/owpythagoreanforest.py
"""Pythagorean forest widget for visualizing random forests."""
from math import log, sqrt
from typing import Any, Callable, Optional

from AnyQt.QtCore import Qt, QRectF, QSize, QPointF, QSizeF, QModelIndex, \
    QItemSelection, QItemSelectionModel, QT_VERSION
from AnyQt.QtGui import QPainter, QPen, QColor, QBrush, QMouseEvent
from AnyQt.QtWidgets import QSizePolicy, QGraphicsScene, QLabel, QSlider, \
    QListView, QStyledItemDelegate, QStyleOptionViewItem, QStyle

from Orange.base import RandomForestModel, TreeModel
from Orange.data import Table
from Orange.widgets import gui, settings
from Orange.widgets.utils.itemmodels import PyListModel
from Orange.widgets.utils.signals import Input, Output
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.visualize.pythagorastreeviewer import (
    PythagorasTreeViewer,
    ContinuousTreeNode,
)
from Orange.widgets.visualize.utils.tree.skltreeadapter import \
    SklTreeAdapter
from Orange.widgets.widget import OWWidget


class PythagoreanForestModel(PyListModel):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.depth_limit = -1
        self.target_class_idx = None
        self.size_calc_idx = 0
        self.size_adjustment = None
        self.item_scale = 2

    def data(self, index, role=Qt.DisplayRole):
        # type: (QModelIndex, Qt.QDisplayRole) -> Any
        if not index.isValid():
            return None

        idx = index.row()

        if role == Qt.SizeHintRole:
            return self.item_scale * QSize(100, 100)

        if role == Qt.DisplayRole:
            if 'tree' not in self._other_data[idx]:
                scene = QGraphicsScene(parent=self)
                tree = PythagorasTreeViewer(
                    adapter=self._list[idx],
                    weight_adjustment=OWPythagoreanForest.SIZE_CALCULATION[
                        self.size_calc_idx][1],
                    interactive=False,
                    padding=100,
                    depth_limit=self.depth_limit,
                    target_class_index=self.target_class_idx,
                )
                scene.addItem(tree)
                self._other_data[idx]['scene'] = scene
                self._other_data[idx]['tree'] = tree

            return self._other_data[idx]['scene']

        return super().data(index, role)

    @property
    def trees(self):
        """Get the tree adapters."""
        return self._list

    def update_tree_views(self, func):
        # type: (Callable[[PythagorasTreeViewer], None]) -> None
        """Apply `func` to every rendered tree viewer instance."""
        for idx, tree_data in enumerate(self._other_data):
            if 'tree' in tree_data:
                func(tree_data['tree'])
                index = self.index(idx)
                if QT_VERSION < 0x50000:
                    self.dataChanged.emit(index, index)
                else:
                    self.dataChanged.emit(index, index, [Qt.DisplayRole])

    def update_depth(self, depth):
        self.depth_limit = depth
        self.update_tree_views(lambda tree: tree.set_depth_limit(depth))

    def update_target_class(self, idx):
        self.target_class_idx = idx
        self.update_tree_views(lambda tree: tree.target_class_changed(idx))

    def update_item_size(self, scale):
        self.item_scale = scale / 100
        indices = [idx for idx, _ in enumerate(self._other_data)]
        self.emitDataChanged(indices)

    def update_size_calc(self, idx):
        self.size_calc_idx = idx
        _, size_calc = OWPythagoreanForest.SIZE_CALCULATION[idx]
        self.update_tree_views(lambda tree: tree.set_size_calc(size_calc))


class PythagorasTreeDelegate(QStyledItemDelegate):
    def paint(self, painter, option, index):
        # type: (QPainter, QStyleOptionViewItem, QModelIndex) -> None
        scene = index.data(Qt.DisplayRole)  # type: Optional[QGraphicsScene]
        if scene is None:
            super().paint(painter, option, index)
            return

        painter.save()
        rect = QRectF(QPointF(option.rect.topLeft()), QSizeF(option.rect.size()))
        if option.state & QStyle.State_Selected:
            painter.setPen(QPen(QColor(125, 162, 206, 192)))
            painter.setBrush(QBrush(QColor(217, 232, 252, 192)))
        else:
            painter.setPen(QPen(QColor('#ebebeb')))
        painter.drawRoundedRect(rect, 3, 3)
        painter.restore()

        painter.setRenderHint(QPainter.Antialiasing)

        # The sceneRect doesn't automatically shrink to fit contents, so when
        # drawing smaller tree, remove any excess space aroung the tree
        scene.setSceneRect(scene.itemsBoundingRect())

        # Make sure the tree is centered in the item cell
        # First, figure out how much we get the bounding rect to the size of
        # the available painting rect
        scene_rect = scene.itemsBoundingRect()
        w_scale = option.rect.width() / scene_rect.width()
        h_scale = option.rect.height() / scene_rect.height()
        # In order to keep the aspect ratio, we use the same scale
        scale = min(w_scale, h_scale)
        # Figure out the rescaled scene width/height
        scene_w = scale * scene_rect.width()
        scene_h = scale * scene_rect.height()
        # Figure out how much we have to offset the rect so that the scene will
        # be painted in the centre of the rect
        offset_w = (option.rect.width() - scene_w) / 2
        offset_h = (option.rect.height() - scene_h) / 2
        offset = option.rect.topLeft() + QPointF(offset_w, offset_h)
        # Finally, we have all the data for the new rect in which to render
        target_rect = QRectF(offset, QSizeF(scene_w, scene_h))

        scene.render(painter, target=target_rect, mode=Qt.KeepAspectRatio)


class ClickToClearSelectionListView(QListView):
    """Clicking outside any item clears the current selection."""
    def mousePressEvent(self, event):
        # type: (QMouseEvent) -> None
        super().mousePressEvent(event)

        index = self.indexAt(event.pos())
        if index.row() == -1:
            self.clearSelection()


class OWPythagoreanForest(OWWidget):
    name = 'Pythagorean Forest'
    description = 'Pythagorean forest for visualising random forests.'
    icon = 'icons/PythagoreanForest.svg'
    settings_version = 2
    keywords = ["fractal"]

    priority = 1001

    class Inputs:
        random_forest = Input("Random Forest", RandomForestModel, replaces=["Random forest"])

    class Outputs:
        tree = Output("Tree", TreeModel)

    # Enable the save as feature
    graph_name = 'scene'

    # Settings
    settingsHandler = settings.ClassValuesContextHandler()

    depth_limit = settings.Setting(10)
    target_class_index = settings.ContextSetting(0)
    size_calc_idx = settings.Setting(0)
    zoom = settings.Setting(200)

    selected_index = settings.ContextSetting(None)

    SIZE_CALCULATION = [
        ('Normal', lambda x: x),
        ('Square root', lambda x: sqrt(x)),
        ('Logarithmic', lambda x: log(x + 1)),
    ]

    @classmethod
    def migrate_settings(cls, settings, version):
        if version < 2:
            settings.pop('selected_tree_index', None)
            v1_min, v1_max = 20, 150
            v2_min, v2_max = 100, 400
            ratio = (v2_max - v2_min) / (v1_max - v1_min)
            settings['zoom'] = int(ratio * (settings['zoom'] - v1_min) + v2_min)

    def __init__(self):
        super().__init__()
        self.rf_model = None
        self.forest = None
        self.instances = None

        self.color_palette = None

        # CONTROL AREA
        # Tree info area
        box_info = gui.widgetBox(self.controlArea, 'Forest')
        self.ui_info = gui.widgetLabel(box_info)

        # Display controls area
        box_display = gui.widgetBox(self.controlArea, 'Display')
        # maxValue is set to a wide three-digit number to probably ensure the
        # proper label width. The maximum is later set to match the tree depth
        self.ui_depth_slider = gui.hSlider(
            box_display, self, 'depth_limit', label='Depth', ticks=False,
            maxValue=900
        )  # type: QSlider
        self.ui_target_class_combo = gui.comboBox(
            box_display, self, 'target_class_index', label='Target class',
            orientation=Qt.Horizontal, items=[], contentsLength=8,
            searchable=True
        )
        self.ui_size_calc_combo = gui.comboBox(
            box_display, self, 'size_calc_idx', label='Size',
            orientation=Qt.Horizontal,
            items=list(zip(*self.SIZE_CALCULATION))[0], contentsLength=8,
        )
        self.ui_zoom_slider = gui.hSlider(
            box_display, self, 'zoom', label='Zoom', ticks=False, minValue=100,
            maxValue=400, createLabel=False, intOnly=False,
        )  # type: QSlider

        # Stretch to fit the rest of the unsused area
        gui.rubber(self.controlArea)

        self.controlArea.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)

        # MAIN AREA
        self.forest_model = PythagoreanForestModel(parent=self)
        self.forest_model.update_item_size(self.zoom)
        self.ui_depth_slider.valueChanged.connect(
            self.forest_model.update_depth)
        self.ui_target_class_combo.currentIndexChanged.connect(
            self.forest_model.update_target_class)
        self.ui_zoom_slider.valueChanged.connect(
            self.forest_model.update_item_size)
        self.ui_size_calc_combo.currentIndexChanged.connect(
            self.forest_model.update_size_calc)

        self.list_delegate = PythagorasTreeDelegate(parent=self)
        self.list_view = ClickToClearSelectionListView(parent=self)
        self.list_view.setWrapping(True)
        self.list_view.setFlow(QListView.LeftToRight)
        self.list_view.setResizeMode(QListView.Adjust)
        self.list_view.setModel(self.forest_model)
        self.list_view.setItemDelegate(self.list_delegate)
        self.list_view.setSpacing(2)
        self.list_view.setSelectionMode(QListView.SingleSelection)
        self.list_view.selectionModel().selectionChanged.connect(self.commit)
        self.list_view.setUniformItemSizes(True)
        self.mainArea.layout().addWidget(self.list_view)

        self.resize(800, 500)

        # Clear to set sensible default values
        self.clear()

    @Inputs.random_forest
    def set_rf(self, model=None):
        """When a different forest is given."""
        self.closeContext()
        self.clear()
        self.rf_model = model

        if model is not None:
            self.instances = model.instances
            self._update_target_class_combo()

            self.forest = self._get_forest_adapter(self.rf_model)
            self.forest_model[:] = self.forest.trees

            self._update_info_box()
            self._update_depth_slider()

            self.openContext(
                model.domain.class_var if model.domain is not None else None
            )
        # Restore item selection
        if self.selected_index is not None:
            index = self.list_view.model().index(self.selected_index)
            selection = QItemSelection(index, index)
            self.list_view.selectionModel().select(selection, QItemSelectionModel.ClearAndSelect)

    def clear(self):
        """Clear all relevant data from the widget."""
        self.rf_model = None
        self.forest = None
        self.forest_model.clear()
        self.selected_index = None

        self._clear_info_box()
        self._clear_target_class_combo()
        self._clear_depth_slider()

    def _update_info_box(self):
        self.ui_info.setText('Trees: {}'.format(len(self.forest.trees)))

    def _update_depth_slider(self):
        self.depth_limit = self._get_max_depth()

        self.ui_depth_slider.parent().setEnabled(True)
        self.ui_depth_slider.setMaximum(self.depth_limit)
        self.ui_depth_slider.setValue(self.depth_limit)

    def _update_target_class_combo(self):
        self._clear_target_class_combo()
        label = [x for x in self.ui_target_class_combo.parent().children()
                 if isinstance(x, QLabel)][0]

        if self.instances.domain.has_discrete_class:
            label_text = 'Target class'
            values = [c.title() for c in self.instances.domain.class_vars[0].values]
            values.insert(0, 'None')
        else:
            label_text = 'Node color'
            values = list(ContinuousTreeNode.COLOR_METHODS.keys())
        label.setText(label_text)
        self.ui_target_class_combo.addItems(values)
        # set it to 0, context will change if required
        self.target_class_index = 0

    def _clear_info_box(self):
        self.ui_info.setText('No forest on input.')

    def _clear_target_class_combo(self):
        self.ui_target_class_combo.clear()
        self.target_class_index = -1

    def _clear_depth_slider(self):
        self.ui_depth_slider.parent().setEnabled(False)
        self.ui_depth_slider.setMaximum(0)

    def _get_max_depth(self):
        return max(tree.max_depth for tree in self.forest.trees)

    def _get_forest_adapter(self, model):
        return SklRandomForestAdapter(model)

    def onDeleteWidget(self):
        """When deleting the widget."""
        super().onDeleteWidget()
        self.clear()

    def commit(self, selection: QItemSelection) -> None:
        """Commit the selected tree to output."""
        selected_indices = selection.indexes()

        if not len(selected_indices):
            self.selected_index = None
            self.Outputs.tree.send(None)
            return

        # We only allow selecting a single tree so there will always be one index
        self.selected_index = selected_indices[0].row()

        tree = self.rf_model.trees[self.selected_index]
        tree.instances = self.instances
        tree.meta_target_class_index = self.target_class_index
        tree.meta_size_calc_idx = self.size_calc_idx
        tree.meta_depth_limit = self.depth_limit

        self.Outputs.tree.send(tree)

    def send_report(self):
        """Send report."""
        self.report_plot()


class SklRandomForestAdapter:
    """Take a `RandomForest` and wrap all the trees into the `SklTreeAdapter`
    instances that Pythagorean trees use."""
    def __init__(self, model):
        self._adapters = None
        self._domain = model.domain
        self._trees = model.trees

    @property
    def trees(self):
        """Get the tree adapters in the random forest."""
        if not self._adapters:
            self._adapters = list(map(SklTreeAdapter, self._trees))
        return self._adapters

    @property
    def domain(self):
        """Get the domain."""
        return self._domain


if __name__ == '__main__':  # pragma: no cover
    from Orange.modelling import RandomForestLearner
    data = Table('iris')
    rf = RandomForestLearner(n_estimators=10)(data)
    rf.instances = data
    WidgetPreview(OWPythagoreanForest).run(rf)

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