{
    "file_diffs": [
        {
            "old_file_content": "from collections import OrderedDict\nimport threading\nimport textwrap\n\nfrom Orange.widgets import widget, gui\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.widget import Input\nfrom Orange.data.table import Table\nfrom Orange.data import StringVariable, DiscreteVariable, ContinuousVariable\nfrom Orange.widgets import report\ntry:\n    from Orange.data.sql.table import SqlTable\nexcept ImportError:\n    SqlTable = None\n\n\nclass OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n        else:\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWDataInfo).run(Table(\"iris\"))\n",
            "new_file_content": "from collections import OrderedDict\nimport threading\nimport textwrap\n\nfrom Orange.widgets import widget, gui\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.utils.state_summary import format_summary_details\nfrom Orange.widgets.widget import Input\nfrom Orange.data.table import Table\nfrom Orange.data import StringVariable, DiscreteVariable, ContinuousVariable\nfrom Orange.widgets import report\ntry:\n    from Orange.data.sql.table import SqlTable\nexcept ImportError:\n    SqlTable = None\n\n\nclass OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWDataInfo).run(Table(\"iris\"))\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/data/owdatainfo.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "b4cfa69a9",
                "new_commit_hash": "1599cfc53",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/data/owdatainfo.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/data/owdatainfo.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 4,
                            "length": 6
                        },
                        "new_range": {
                            "start": 4,
                            "length": 7
                        },
                        "section": "import textwrap"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets import widget, gui",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets.utils.widgetpreview import WidgetPreview",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets.utils.state_summary import format_summary_details",
                                "type": "added"
                            },
                            {
                                "content": "from Orange.widgets.widget import Input",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.data.table import Table",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.data import StringVariable, DiscreteVariable, ContinuousVariable",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/data/owdatainfo.py",
                            "type": "statement",
                            "name": "",
                            "content": "from Orange.widgets.utils.state_summary import format_summary_details",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 7,
                            "end_lineno": 7,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 42,
                            "length": 6
                        },
                        "new_range": {
                            "start": 43,
                            "length": 8
                        },
                        "section": "class OWDataInfo(widget.OWWidget):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "                          addSpace=False and box != \"Meta Attributes\")",
                                "type": "context"
                            },
                            {
                                "content": "            gui.label(bo, self, \"%%(%s)s\" % name)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "        self.info.set_input_summary(self.info.NoInput)",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        # ensure the widget has some decent minimum width.",
                                "type": "context"
                            },
                            {
                                "content": "        self.targets = \"Categorical outcome with 123 values\"",
                                "type": "context"
                            },
                            {
                                "content": "        self.layout().activate()",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/data/owdatainfo.py",
                            "type": "class",
                            "name": "OWDataInfo",
                            "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 18,
                            "end_lineno": 208,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/data/owdatainfo.py",
                            "type": "method",
                            "name": "OWDataInfo.__init__",
                            "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 34,
                            "end_lineno": 56,
                            "parent": {
                                "file_name": "Orange/widgets/data/owdatainfo.py",
                                "type": "class",
                                "name": "OWDataInfo",
                                "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 18,
                                "end_lineno": 208,
                                "parent": null
                            }
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 56,
                            "length": 7
                        },
                        "new_range": {
                            "start": 59,
                            "length": 9
                        },
                        "section": "class OWDataInfo(widget.OWWidget):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "    def data(self, data):",
                                "type": "context"
                            },
                            {
                                "content": "        if data is None:",
                                "type": "context"
                            },
                            {
                                "content": "            self._clear_fields()",
                                "type": "context"
                            },
                            {
                                "content": "            self.info.set_input_summary(self.info.NoInput)",
                                "type": "added"
                            },
                            {
                                "content": "        else:",
                                "type": "context"
                            },
                            {
                                "content": "            self.info.set_input_summary(len(data), format_summary_details(data))",
                                "type": "added"
                            },
                            {
                                "content": "            self._set_fields(data)",
                                "type": "context"
                            },
                            {
                                "content": "            self._set_report(data)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/data/owdatainfo.py",
                            "type": "class",
                            "name": "OWDataInfo",
                            "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 18,
                            "end_lineno": 208,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/data/owdatainfo.py",
                            "type": "method",
                            "name": "OWDataInfo.data",
                            "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 59,
                            "end_lineno": 66,
                            "parent": {
                                "file_name": "Orange/widgets/data/owdatainfo.py",
                                "type": "class",
                                "name": "OWDataInfo",
                                "content": "class OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        self.info.set_input_summary(self.info.NoInput)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n            self.info.set_input_summary(self.info.NoInput)\n        else:\n            self.info.set_input_summary(len(data), format_summary_details(data))\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 18,
                                "end_lineno": 208,
                                "parent": null
                            }
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring\nfrom Orange.data import Table\nfrom Orange.widgets.data.owdatainfo import OWDataInfo\nfrom Orange.widgets.tests.base import WidgetTest\n\n\nclass TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n",
            "new_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring,unsubscriptable-object\nfrom unittest.mock import Mock\n\nfrom Orange.data import Table\nfrom Orange.widgets.data.owdatainfo import OWDataInfo\nfrom Orange.widgets.tests.base import WidgetTest\nfrom Orange.widgets.utils.state_summary import format_summary_details\n\n\nclass TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n        input_sum.assert_called_with(len(data), format_summary_details(data))\n        input_sum.reset_mock()\n        self.send_signal(self.widget.Inputs.data, None)\n        input_sum.assert_called_once()\n        self.assertEqual(input_sum.call_args[0][0].brief, \"\")\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/data/tests/test_owdatainfo.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "a480cc598",
                "new_commit_hash": "b69b923c6",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/data/tests/test_owdatainfo.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/data/tests/test_owdatainfo.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 1,
                            "length": 8
                        },
                        "new_range": {
                            "start": 1,
                            "length": 11
                        },
                        "section": ""
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "# Test methods with long descriptive names can omit docstrings",
                                "type": "context"
                            },
                            {
                                "content": "# pylint: disable=missing-docstring",
                                "type": "deleted"
                            },
                            {
                                "content": "# pylint: disable=missing-docstring,unsubscriptable-object",
                                "type": "added"
                            },
                            {
                                "content": "from unittest.mock import Mock",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "from Orange.data import Table",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets.data.owdatainfo import OWDataInfo",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets.tests.base import WidgetTest",
                                "type": "context"
                            },
                            {
                                "content": "from Orange.widgets.utils.state_summary import format_summary_details",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "class TestOWDataInfo(WidgetTest):",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/data/tests/test_owdatainfo.py",
                            "type": "statement",
                            "name": "",
                            "content": "from Orange.widgets.utils.state_summary import format_summary_details",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 8,
                            "end_lineno": 8,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/widgets/data/tests/test_owdatainfo.py",
                            "type": "statement",
                            "name": "",
                            "content": "from unittest.mock import Mock",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 3,
                            "end_lineno": 3,
                            "parent": null
                        }
                    ],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 25,
                            "length": 3
                        },
                        "new_range": {
                            "start": 28,
                            "length": 14
                        },
                        "section": "class TestOWDataInfo(WidgetTest):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        data = Table(\"iris\")",
                                "type": "context"
                            },
                            {
                                "content": "        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}",
                                "type": "context"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.data, data)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_summary(self):",
                                "type": "added"
                            },
                            {
                                "content": "        \"\"\"Check if the status bar is updated when data is received\"\"\"",
                                "type": "added"
                            },
                            {
                                "content": "        data = Table(\"iris\")",
                                "type": "added"
                            },
                            {
                                "content": "        input_sum = self.widget.info.set_input_summary = Mock()",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.data, data)",
                                "type": "added"
                            },
                            {
                                "content": "        input_sum.assert_called_with(len(data), format_summary_details(data))",
                                "type": "added"
                            },
                            {
                                "content": "        input_sum.reset_mock()",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.data, None)",
                                "type": "added"
                            },
                            {
                                "content": "        input_sum.assert_called_once()",
                                "type": "added"
                            },
                            {
                                "content": "        self.assertEqual(input_sum.call_args[0][0].brief, \"\")",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/data/tests/test_owdatainfo.py",
                            "type": "class",
                            "name": "TestOWDataInfo",
                            "content": "class TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n        input_sum.assert_called_with(len(data), format_summary_details(data))\n        input_sum.reset_mock()\n        self.send_signal(self.widget.Inputs.data, None)\n        input_sum.assert_called_once()\n        self.assertEqual(input_sum.call_args[0][0].brief, \"\")",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 11,
                            "end_lineno": 41,
                            "parent": null
                        }
                    ],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/data/tests/test_owdatainfo.py",
                            "type": "method",
                            "name": "TestOWDataInfo.test_summary",
                            "content": "class TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n        input_sum.assert_called_with(len(data), format_summary_details(data))\n        input_sum.reset_mock()\n        self.send_signal(self.widget.Inputs.data, None)\n        input_sum.assert_called_once()\n        self.assertEqual(input_sum.call_args[0][0].brief, \"\")",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 32,
                            "end_lineno": 41,
                            "parent": {
                                "file_name": "Orange/widgets/data/tests/test_owdatainfo.py",
                                "type": "class",
                                "name": "TestOWDataInfo",
                                "content": "class TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n        input_sum.assert_called_with(len(data), format_summary_details(data))\n        input_sum.reset_mock()\n        self.send_signal(self.widget.Inputs.data, None)\n        input_sum.assert_called_once()\n        self.assertEqual(input_sum.call_args[0][0].brief, \"\")",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 11,
                                "end_lineno": 41,
                                "parent": null
                            }
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff^",
    "new_commit_hash": "7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff",
    "commit_message": "Merge pull request #4513 from aturanjanin/owdatainfo\n\n[ENH] OWDataInfo: Data info displayed in the status bar",
    "commit_date": "2020-03-13T10:46:08+01:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff",
    "test_file_codes": [
        "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring,unsubscriptable-object\nfrom unittest.mock import Mock\n\nfrom Orange.data import Table\nfrom Orange.widgets.data.owdatainfo import OWDataInfo\nfrom Orange.widgets.tests.base import WidgetTest\nfrom Orange.widgets.utils.state_summary import format_summary_details\n\n\nclass TestOWDataInfo(WidgetTest):\n    def setUp(self):\n        self.widget = self.create_widget(OWDataInfo)\n\n    def test_data(self):\n        \"\"\"No crash on iris\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_empty_data(self):\n        \"\"\"No crash on empty data\"\"\"\n        data = Table(\"iris\")\n        self.send_signal(self.widget.Inputs.data,\n                         Table.from_domain(data.domain))\n\n    def test_data_attributes(self):\n        \"\"\"No crash on data attributes of different types\"\"\"\n        data = Table(\"iris\")\n        data.attributes = {\"att 1\": 1, \"att 2\": True, \"att 3\": 3}\n        self.send_signal(self.widget.Inputs.data, data)\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n        input_sum.assert_called_with(len(data), format_summary_details(data))\n        input_sum.reset_mock()\n        self.send_signal(self.widget.Inputs.data, None)\n        input_sum.assert_called_once()\n        self.assertEqual(input_sum.call_args[0][0].brief, \"\")\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\nrunning build_src\nbuild_src\nbuilding extension \"Orange.classification._simple_tree\" sources\nbuilding extension \"Orange.classification._tree_scorers\" sources\nbuilding extension \"Orange.data._valuecount\" sources\nbuilding extension \"Orange.data._contingency\" sources\nbuilding extension \"Orange.data._io\" sources\nbuilding extension \"Orange.data._variable\" sources\nbuilding extension \"Orange.distance._distance\" sources\nbuilding extension \"Orange.preprocess._discretize\" sources\nbuilding extension \"Orange.preprocess._relieff\" sources\nbuilding extension \"Orange.projection._som\" sources\nbuilding extension \"Orange.widgets.utils._grid_density\" sources\nbuild_src: building npy-pkg config files\ncustomize UnixCCompiler\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating /tmp/tmp3_fuvban/tmp\ncreating /tmp/tmp3_fuvban/tmp/tmp3_fuvban\ncompile options: '-MMD -MF /tmp/tmp3_fuvban/file.c.d -c'\ncc: /tmp/tmp3_fuvban/file.c\ncustomize UnixCCompiler using build_ext\ncustomize UnixCCompiler\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating /tmp/tmpi6k8ccix/tmp\ncreating /tmp/tmpi6k8ccix/tmp/tmpi6k8ccix\ncompile options: '-MMD -MF /tmp/tmpi6k8ccix/file.c.d -c'\ncc: /tmp/tmpi6k8ccix/file.c\ncustomize UnixCCompiler using build_ext\nbuilding 'Orange.classification._simple_tree' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange\ncreating build/temp.linux-x86_64-3.7/Orange/classification\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/classification/_simple_tree.c\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 Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.classification._tree_scorers' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/classification/_tree_scorers.c\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 Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange/data\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/data/_valuecount.c\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 Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/data/_contingency.c\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 Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/data/_io.c\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 Orange/data/_io.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/data/_variable.c\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 Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange/distance\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/distance/_distance.c\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 Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange/preprocess\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/preprocess/_discretize.c\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 Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\ncompiling C++ sources\nC compiler: c++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\nc++: Orange/preprocess/_relieff.cpp\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 Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncompiling C sources\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange/projection\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\ncc: Orange/projection/_som.c\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 Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncompiling C++ sources\nC compiler: c++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating build/temp.linux-x86_64-3.7/Orange/widgets\ncreating build/temp.linux-x86_64-3.7/Orange/widgets/utils\ncompile options: '-I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c'\nc++: Orange/widgets/utils/_grid_density.cpp\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 Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so\nrunning develop\nrunning build_scripts\nrunning egg_info\nrunning build_src\nbuild_src\nbuilding extension \"Orange.classification._simple_tree\" sources\nbuilding extension \"Orange.classification._tree_scorers\" sources\nbuilding extension \"Orange.data._valuecount\" sources\nbuilding extension \"Orange.data._contingency\" sources\nbuilding extension \"Orange.data._io\" sources\nbuilding extension \"Orange.data._variable\" sources\nbuilding extension \"Orange.distance._distance\" sources\nbuilding extension \"Orange.preprocess._discretize\" sources\nbuilding extension \"Orange.preprocess._relieff\" sources\nbuilding extension \"Orange.projection._som\" sources\nbuilding extension \"Orange.widgets.utils._grid_density\" sources\nbuild_src: building npy-pkg config files\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'\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 '*.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 'COPYING'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncustomize UnixCCompiler\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating /tmp/tmpkeyeicd_/tmp\ncreating /tmp/tmpkeyeicd_/tmp/tmpkeyeicd_\ncompile options: '-MMD -MF /tmp/tmpkeyeicd_/file.c.d -c'\ncc: /tmp/tmpkeyeicd_/file.c\ncustomize UnixCCompiler using build_ext\ncustomize UnixCCompiler\nC compiler: cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC\n\ncreating /tmp/tmpaxvg8q72/tmp\ncreating /tmp/tmpaxvg8q72/tmp/tmpaxvg8q72\ncompile options: '-MMD -MF /tmp/tmpaxvg8q72/file.c.d -c'\ncc: /tmp/tmpaxvg8q72/file.c\ncustomize UnixCCompiler using build_ext\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.25.0.dev0+7b57bbd to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff\nProcessing dependencies for Orange3==3.25.0.dev0+7b57bbd\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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for setuptools==59.8.0\nBest match: setuptools 59.8.0\nAdding setuptools 59.8.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for scipy==1.7.3\nBest match: scipy 1.7.3\nAdding scipy 1.7.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for scikit-learn==1.0.2\nBest match: scikit-learn 1.0.2\nAdding scikit-learn 1.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for requests==2.31.0\nBest match: requests 2.31.0\nAdding requests 2.31.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for PyYAML==6.0.1\nBest match: PyYAML 6.0.1\nAdding PyYAML 6.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for pyqtgraph==0.10.0\nBest match: pyqtgraph 0.10.0\nAdding pyqtgraph 0.10.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for pip==24.0\nBest match: pip 24.0\nAdding pip 24.0 to easy-install.pth file\nInstalling pip script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling pip3.10 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for pandas==1.3.5\nBest match: pandas 1.3.5\nAdding pandas 1.3.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for openpyxl==3.1.3\nBest match: openpyxl 3.1.3\nAdding openpyxl 3.1.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for numpy==1.17.5\nBest match: numpy 1.17.5\nAdding numpy 1.17.5 to easy-install.pth file\nInstalling f2py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling f2py3.7 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for networkx==2.6.3\nBest match: networkx 2.6.3\nAdding networkx 2.6.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for matplotlib==3.5.3\nBest match: matplotlib 3.5.3\nAdding matplotlib 3.5.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for keyrings.alt==4.2.0\nBest match: keyrings.alt 4.2.0\nAdding keyrings.alt 4.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for keyring==24.1.1\nBest match: keyring 24.1.1\nAdding keyring 24.1.1 to easy-install.pth file\nInstalling keyring script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for joblib==1.3.2\nBest match: joblib 1.3.2\nAdding joblib 1.3.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for threadpoolctl==3.1.0\nBest match: threadpoolctl 3.1.0\nAdding threadpoolctl 3.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for urllib3==2.0.7\nBest match: urllib3 2.0.7\nAdding urllib3 2.0.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for typing-extensions==4.7.1\nBest match: typing-extensions 4.7.1\nAdding typing-extensions 4.7.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for qasync==0.25.0\nBest match: qasync 0.25.0\nAdding qasync 0.25.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for requests-cache==1.1.1\nBest match: requests-cache 1.1.1\nAdding requests-cache 1.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for packaging==24.0\nBest match: packaging 24.0\nAdding packaging 24.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for importlib-metadata==6.7.0\nBest match: importlib-metadata 6.7.0\nAdding importlib-metadata 6.7.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for et-xmlfile==1.1.0\nBest match: et-xmlfile 1.1.0\nAdding et-xmlfile 1.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for Pillow==9.5.0\nBest match: Pillow 9.5.0\nAdding Pillow 9.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for cycler==0.11.0\nBest match: cycler 0.11.0\nAdding cycler 0.11.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for fonttools==4.38.0\nBest match: fonttools 4.38.0\nAdding fonttools 4.38.0 to easy-install.pth file\nInstalling fonttools script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for kiwisolver==1.4.5\nBest match: kiwisolver 1.4.5\nAdding kiwisolver 1.4.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for jaraco.classes==3.2.3\nBest match: jaraco.classes 3.2.3\nAdding jaraco.classes 3.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for importlib-resources==5.12.0\nBest match: importlib-resources 5.12.0\nAdding importlib-resources 5.12.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for platformdirs==4.0.0\nBest match: platformdirs 4.0.0\nAdding platformdirs 4.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for cattrs==23.1.2\nBest match: cattrs 23.1.2\nAdding cattrs 23.1.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for attrs==24.2.0\nBest match: attrs 24.2.0\nAdding attrs 24.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for zipp==3.15.0\nBest match: zipp 3.15.0\nAdding zipp 3.15.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for more-itertools==9.1.0\nBest match: more-itertools 9.1.0\nAdding more-itertools 9.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for cffi==1.15.1\nBest match: cffi 1.15.1\nAdding cffi 1.15.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nSearching for pycparser==2.21\nBest match: pycparser 2.21\nAdding pycparser 2.21 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages\nFinished processing dependencies for Orange3==3.25.0.dev0+7b57bbd\nVerifying Orange installation...\n✅ Orange installation successful!\nSuccessfully installed orange using Python 3.7\n",
    "setup_res_stderr": "Using CPython 3.7.9\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 18 packages in 100ms\nPrepared 18 packages in 18ms\nInstalled 18 packages in 807ms\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\nResolved 48 packages in 261ms\nInstalled 42 packages in 298ms\n + baycomp==1.0.3\n + bottleneck==1.4.0\n + certifi==2024.12.14\n + cffi==1.15.1\n + chardet==5.2.0\n + charset-normalizer==3.4.1\n + cryptography==44.0.0\n + cycler==0.11.0\n + et-xmlfile==1.1.0\n + fonttools==4.38.0\n + idna==3.10\n + importlib-resources==5.12.0\n + jaraco-classes==3.2.3\n + jeepney==0.8.0\n + joblib==1.3.2\n + keyring==24.1.1\n + keyrings-alt==4.2.0\n + kiwisolver==1.4.5\n + matplotlib==3.5.3\n + more-itertools==9.1.0\n + networkx==2.6.3\n + openpyxl==3.1.3\n + opentsne==1.0.1\n + pandas==1.3.5\n + pillow==9.5.0\n + pip==24.0\n + pycparser==2.21\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.1\n + requests==2.31.0\n + scikit-learn==1.0.2\n + scipy==1.7.3\n + secretstorage==3.3.3\n + serverfiles==0.3.1\n + six==1.17.0\n + threadpoolctl==3.1.0\n + urllib3==2.0.7\n + xlrd==2.0.1\n + xlsxwriter==3.2.0\nResolved 34 packages in 77ms\nInstalled 13 packages in 57ms\n + anyqt==0.2.0\n + attrs==24.2.0\n + cattrs==23.1.2\n + commonmark==0.9.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + platformdirs==4.0.0\n + pyqtgraph==0.10.0\n + qasync==0.25.0\n + requests-cache==1.1.1\n + url-normalize==1.4.3\nResolved 2 packages in 5ms\nInstalled 2 packages in 5ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nAudited 1 package in 1ms\nAudited 2 packages in 2ms\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      |         ^~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/classification/_tree_scorers.c:567:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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:3115:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3115 |   __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:4619:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4619 |   __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:5396:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5396 |           for (__pyx_t_22 = 0; __pyx_t_22 < __pyx_t_21; __pyx_t_22+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5517:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5517 |           __pyx_t_27 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5523:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5523 |           __pyx_t_27 = (((__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:7051:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7051 |         for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7741:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7741 |         for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_10; __pyx_t_11+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7801:143: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7801 |               __pyx_t_17 = (((*((__pyx_t_5numpy_int32_t *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_18 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                               ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_valuecount.c:567:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_contingency.c:598:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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:3881:24: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3881 |           __pyx_v_decs = (__pyx_v_decs / 10.0);\n      |           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:4070:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4070 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 221, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:480:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  480 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1301:7: note: ‘__pyx_v_attr_index’ was declared here\n 1301 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:2935:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 2935 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/distance/_distance.c:598:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_discretize.c:567:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_relieff.cpp:581:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/projection/_som.c:598:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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:3655:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3655 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3654:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3654 |   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:4547:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4547 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_38, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_39, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4114:7: note: ‘__pyx_v_win_y’ was declared here\n 4114 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4536:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4536 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_36, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_37, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4113:7: note: ‘__pyx_v_win_x’ was declared here\n 4113 |   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:4746:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4746 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4745:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4745 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3141:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3141 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:2964:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 2964 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_28, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2665:7: note: ‘__pyx_v_win_y’ was declared here\n 2665 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:2953:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 2953 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_25, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2664:7: note: ‘__pyx_v_win_x’ was declared here\n 2664 |   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:5515:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5515 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5514:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5514 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.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_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff/.venv/lib/python3.7/site-packages/setuptools/command/egg_info.py:628: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.\nPlease extend command classes from setuptools instead of distutils.\n  SetuptoolsDeprecationWarning\n",
    "new_commit_res_code": 0,
    "new_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.7.9, pytest-7.4.4, pluggy-1.2.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff\ncollected 10 items\n\nr2e_tests/test_1.py sss.......                                           [100%]\n\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_data\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_data_attributes\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_empty_data\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_image_export\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_summary\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\n========================= 7 passed, 3 skipped in 3.23s =========================\nWidgets left: 0    Max widgets: 350 \n\n",
    "new_commit_res_stderr": "",
    "old_commit_res_code": 1,
    "old_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.7.9, pytest-7.4.4, pluggy-1.2.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_7b57bbdd74a1aaf0f3875a45e1e33184eaa995ff\ncollected 10 items\n\nr2e_tests/test_1.py sss......F                                           [100%]\n\n=================================== FAILURES ===================================\n_________________________ TestOWDataInfo.test_summary __________________________\n\nself = <r2e_tests.test_1.TestOWDataInfo testMethod=test_summary>\n\n    def test_summary(self):\n        \"\"\"Check if the status bar is updated when data is received\"\"\"\n        data = Table(\"iris\")\n        input_sum = self.widget.info.set_input_summary = Mock()\n        self.send_signal(self.widget.Inputs.data, data)\n>       input_sum.assert_called_with(len(data), format_summary_details(data))\n\nr2e_tests/test_1.py:37: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n_mock_self = <Mock id='129987666030032'>\nargs = (150, '150 instances, 5 variables\\nFeatures: 4 numeric\\nTarget: categorical\\nMetas: —')\nkwargs = {}\nexpected = \"mock(150, '150 instances, 5 variables\\\\nFeatures: 4 numeric\\\\nTarget: categorical\\\\nMetas: —')\"\n\n    def assert_called_with(_mock_self, *args, **kwargs):\n        \"\"\"assert that the mock was called with the specified arguments.\n    \n        Raises an AssertionError if the args and keyword args passed in are\n        different to the last call to the mock.\"\"\"\n        self = _mock_self\n        if self.call_args is None:\n            expected = self._format_mock_call_signature(args, kwargs)\n>           raise AssertionError('Expected call: %s\\nNot called' % (expected,))\nE           AssertionError: Expected call: mock(150, '150 instances, 5 variables\\nFeatures: 4 numeric\\nTarget: categorical\\nMetas: —')\nE           Not called\n\n../../../../.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib/python3.7/unittest/mock.py:869: AssertionError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_data\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_data_attributes\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_empty_data\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_image_export\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_minimum_size\nPASSED r2e_tests/test_1.py::TestOWDataInfo::test_msg_base_class\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.7/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\nFAILED r2e_tests/test_1.py::TestOWDataInfo::test_summary - AssertionError: Ex...\n==================== 1 failed, 6 passed, 3 skipped in 2.29s ====================\nWidgets left: 0    Max widgets: 350 \n\n",
    "old_commit_res_stderr": ""
}
Orange/widgets/data/owdatainfo.py Orange/widgets/data/tests/test_owdatainfo.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title:** OWDataInfo Widget Fails to Update Status Bar on Data Input and Clearing

**Description:**
When data is provided to the `OWDataInfo` widget or cleared, the status bar does not update to reflect the current data summary. This behavior causes the widget to display outdated or no information in the status bar, leading to confusion about the data being handled.

**Buggy Code Example:**
```python
class TestOWDataInfo(WidgetTest):

    def setUp(self):
        self.widget = self.create_widget(OWDataInfo)

    def test_summary(self):
        """Check if the status bar is updated when data is received"""
        data = Table("iris")
        input_sum = self.widget.info.set_input_summary = Mock()
        self.send_signal(self.widget.Inputs.data, data)
        # Expected to call set_input_summary with data details, but it doesn't
        input_sum.assert_called_with(len(data), format_summary_details(data))
        self.send_signal(self.widget.Inputs.data, None)
        # Expected to reset the status bar, but set_input_summary is not called
        input_sum.assert_called_once()
        self.assertEqual(input_sum.call_args[0][0].brief, "")
```

**Expected Behavior:**
- When data is sent to the `OWDataInfo` widget, the status bar should display a summary of the data, including the number of instances and variables.
- When the data is cleared (i.e., set to `None`), the status bar should reset to indicate that there is no input data.

**Actual Behavior:**
- The `set_input_summary` method is not called when data is provided or cleared.
- As a result, the status bar does not update with the data summary, and the `test_summary` test fails with an `AssertionError` indicating that the expected calls to `set_input_summary` were not made.

[/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/data/owdatainfo.py
from collections import OrderedDict
import threading
import textwrap

from Orange.widgets import widget, gui
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.widget import Input
from Orange.data.table import Table
from Orange.data import StringVariable, DiscreteVariable, ContinuousVariable
from Orange.widgets import report
try:
    from Orange.data.sql.table import SqlTable
except ImportError:
    SqlTable = None


class OWDataInfo(widget.OWWidget):
    name = "Data Info"
    id = "orange.widgets.data.info"
    description = """Display basic information about the dataset, such
    as the number and type of variables in the columns and the number of rows."""
    icon = "icons/DataInfo.svg"
    priority = 80
    category = "Data"
    keywords = ["information", "inspect"]

    class Inputs:
        data = Input("Data", Table)

    want_main_area = False
    resizing_enabled = False

    def __init__(self):
        super().__init__()

        self._clear_fields()

        for box in ("Data Set Name", "Data Set Size", "Features", "Targets",
                    "Meta Attributes", "Location", "Data Attributes"):
            name = box.lower().replace(" ", "_")
            bo = gui.vBox(self.controlArea, box,
                          addSpace=False and box != "Meta Attributes")
            gui.label(bo, self, "%%(%s)s" % name)

        # ensure the widget has some decent minimum width.
        self.targets = "Categorical outcome with 123 values"
        self.layout().activate()
        # NOTE: The minimum width is set on the 'contained' widget and
        # not `self`. The layout will set a fixed size to `self` taking
        # into account the minimum constraints of the children (it would
        # override any minimum/fixed size set on `self`).
        self.targets = ""
        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())

    @Inputs.data
    def data(self, data):
        if data is None:
            self._clear_fields()
        else:
            self._set_fields(data)
            self._set_report(data)

    def _clear_fields(self):
        self.data_set_name = ""
        self.data_set_size = ""
        self.features = self.targets = self.meta_attributes = ""
        self.location = ""
        self.data_desc = None
        self.data_attributes = ""

    @staticmethod
    def _count(s, tpe):
        return sum(isinstance(x, tpe) for x in s)

    def _set_fields(self, data):
        # Attributes are defined in a function called from __init__
        # pylint: disable=attribute-defined-outside-init
        def n_or_none(n):
            return n or "-"

        def pack_table(info):
            return '<table>\n' + "\n".join(
                '<tr><td align="right" width="90">{}:</td>\n'
                '<td width="40">{}</td></tr>\n'.format(
                    d,
                    textwrap.shorten(str(v), width=30, placeholder="..."))
                for d, v in info
            ) + "</table>\n"

        def pack_counts(s, include_non_primitive=False):
            if not s:
                return "None"
            return pack_table(
                (name, n_or_none(self._count(s, type_)))
                for name, type_ in (
                    ("Categorical", DiscreteVariable),
                    ("Numeric", ContinuousVariable),
                    ("Text", StringVariable))[:2 + include_non_primitive]
            )

        domain = data.domain
        class_var = domain.class_var

        sparseness = [s for s, m in (("features", data.X_density),
                                     ("meta attributes", data.metas_density),
                                     ("targets", data.Y_density)) if m() > 1]
        if sparseness:
            sparseness = "<p>Sparse representation: {}</p>"\
                         .format(", ".join(sparseness))
        else:
            sparseness = ""
        self.data_set_size = pack_table((
            ("Rows", '~{}'.format(data.approx_len())),
            ("Columns", len(domain)+len(domain.metas)))) + sparseness

        def update_size():
            self.data_set_size = pack_table((
                ("Rows", len(data)),
                ("Columns", len(domain)+len(domain.metas)))) + sparseness

        threading.Thread(target=update_size).start()

        self.data_set_name = getattr(data, "name", "N/A")

        self.features = pack_counts(domain.attributes)
        self.meta_attributes = pack_counts(domain.metas, True)
        if class_var:
            if class_var.is_continuous:
                self.targets = "Numeric target variable"
            else:
                self.targets = "Categorical outcome with {} values"\
                               .format(len(class_var.values))
        elif domain.class_vars:
            disc_class = self._count(domain.class_vars, DiscreteVariable)
            cont_class = self._count(domain.class_vars, ContinuousVariable)
            if not cont_class:
                self.targets = "Multi-target data,\n{} categorical targets"\
                               .format(n_or_none(disc_class))
            elif not disc_class:
                self.targets = "Multi-target data,\n{} numeric targets"\
                               .format(n_or_none(cont_class))
            else:
                self.targets = "<p>Multi-target data</p>\n" + \
                               pack_counts(domain.class_vars)
        else:
            self.targets = "None"

        if data.attributes:
            self.data_attributes = pack_table(data.attributes.items())
        else:
            self.data_attributes = ""

    def _set_report(self, data):
        # Attributes are defined in a function called from __init__
        # pylint: disable=attribute-defined-outside-init
        domain = data.domain
        count = self._count

        self.data_desc = dd = OrderedDict()
        dd["Name"] = self.data_set_name

        if SqlTable is not None and isinstance(data, SqlTable):
            connection_string = ' '.join(
                '{}={}'.format(key, value)
                for key, value in data.connection_params.items()
                if value is not None and key != 'password')
            self.location = "Table '{}', using connection:\n{}"\
                            .format(data.table_name, connection_string)
            dd["Rows"] = data.approx_len()
        else:
            self.location = "Data is stored in memory"
            dd["Rows"] = len(data)

        def join_if(items):
            return ", ".join(s.format(n) for s, n in items if n)

        dd["Features"] = len(domain.attributes) > 0 and join_if((
            ("{} categorical", count(domain.attributes, DiscreteVariable)),
            ("{} numeric", count(domain.attributes, ContinuousVariable))
        ))
        if domain.class_var:
            name = domain.class_var.name
            if domain.class_var.is_discrete:
                dd["Target"] = "categorical outcome '{}'".format(name)
            else:
                dd["Target"] = "numeric target '{}'".format(name)
        elif domain.class_vars:
            disc_class = count(domain.class_vars, DiscreteVariable)
            cont_class = count(domain.class_vars, ContinuousVariable)
            tt = ""
            if disc_class:
                tt += report.plural("{number} categorical outcome{s}", disc_class)
            if cont_class:
                tt += report.plural("{number} numeric target{s}", cont_class)
        dd["Meta attributes"] = len(domain.metas) > 0 and join_if((
            ("{} categorical", count(domain.metas, DiscreteVariable)),
            ("{} numeric", count(domain.metas, ContinuousVariable)),
            ("{} text", count(domain.metas, StringVariable))
        ))

    def send_report(self):
        if self.data_desc:
            self.report_items(self.data_desc)


if __name__ == "__main__":  # pragma: no cover
    WidgetPreview(OWDataInfo).run(Table("iris"))

```
--- END FILE ---

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

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

Here is an example:

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

Please note that the *SEARCH/REPLACE* edit REQUIRES PROPER INDENTATION. If you would like to add the line '        print(x)', you must fully write that out, with all those spaces before the code!
Wrap each *SEARCH/REPLACE* edit in a code block as shown in the example above. If you have multiple *SEARCH/REPLACE* edits, use a separate code block for each one.
[ISSUE]
**Title:** OWDataInfo Widget Fails to Update Status Bar on Data Input and Clearing

**Description:**
When data is provided to the `OWDataInfo` widget or cleared, the status bar does not update to reflect the current data summary. This behavior causes the widget to display outdated or no information in the status bar, leading to confusion about the data being handled.

**Buggy Code Example:**
```python
class TestOWDataInfo(WidgetTest):

    def setUp(self):
        self.widget = self.create_widget(OWDataInfo)

    def test_summary(self):
        """Check if the status bar is updated when data is received"""
        data = Table("iris")
        input_sum = self.widget.info.set_input_summary = Mock()
        self.send_signal(self.widget.Inputs.data, data)
        # Expected to call set_input_summary with data details, but it doesn't
        input_sum.assert_called_with(len(data), format_summary_details(data))
        self.send_signal(self.widget.Inputs.data, None)
        # Expected to reset the status bar, but set_input_summary is not called
        input_sum.assert_called_once()
        self.assertEqual(input_sum.call_args[0][0].brief, "")
```

**Expected Behavior:**
- When data is sent to the `OWDataInfo` widget, the status bar should display a summary of the data, including the number of instances and variables.
- When the data is cleared (i.e., set to `None`), the status bar should reset to indicate that there is no input data.

**Actual Behavior:**
- The `set_input_summary` method is not called when data is provided or cleared.
- As a result, the status bar does not update with the data summary, and the `test_summary` test fails with an `AssertionError` indicating that the expected calls to `set_input_summary` were not made.

[/ISSUE]
{
    "TestOWDataInfo.test_data": "PASSED",
    "TestOWDataInfo.test_data_attributes": "PASSED",
    "TestOWDataInfo.test_empty_data": "PASSED",
    "TestOWDataInfo.test_image_export": "PASSED",
    "TestOWDataInfo.test_minimum_size": "PASSED",
    "TestOWDataInfo.test_msg_base_class": "PASSED",
    "TestOWDataInfo.test_summary": "PASSED"
}
diff --git a/Orange/widgets/data/owdatainfo.py b/Orange/widgets/data/owdatainfo.py
index b4cfa69a9..1599cfc53 100644
--- a/Orange/widgets/data/owdatainfo.py
+++ b/Orange/widgets/data/owdatainfo.py
@@ -4,6 +4,7 @@ import textwrap
 
 from Orange.widgets import widget, gui
 from Orange.widgets.utils.widgetpreview import WidgetPreview
+from Orange.widgets.utils.state_summary import format_summary_details
 from Orange.widgets.widget import Input
 from Orange.data.table import Table
 from Orange.data import StringVariable, DiscreteVariable, ContinuousVariable
@@ -42,6 +43,8 @@ class OWDataInfo(widget.OWWidget):
                           addSpace=False and box != "Meta Attributes")
             gui.label(bo, self, "%%(%s)s" % name)
 
+        self.info.set_input_summary(self.info.NoInput)
+
         # ensure the widget has some decent minimum width.
         self.targets = "Categorical outcome with 123 values"
         self.layout().activate()
@@ -56,7 +59,9 @@ class OWDataInfo(widget.OWWidget):
     def data(self, data):
         if data is None:
             self._clear_fields()
+            self.info.set_input_summary(self.info.NoInput)
         else:
+            self.info.set_input_summary(len(data), format_summary_details(data))
             self._set_fields(data)
             self._set_report(data)
 

{"Orange/widgets/data/owdatainfo.py": "from collections import OrderedDict\nimport threading\nimport textwrap\n\nfrom Orange.widgets import widget, gui\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.widget import Input\nfrom Orange.data.table import Table\nfrom Orange.data import StringVariable, DiscreteVariable, ContinuousVariable\nfrom Orange.widgets import report\ntry:\n    from Orange.data.sql.table import SqlTable\nexcept ImportError:\n    SqlTable = None\n\n\nclass OWDataInfo(widget.OWWidget):\n    name = \"Data Info\"\n    id = \"orange.widgets.data.info\"\n    description = \"\"\"Display basic information about the dataset, such\n    as the number and type of variables in the columns and the number of rows.\"\"\"\n    icon = \"icons/DataInfo.svg\"\n    priority = 80\n    category = \"Data\"\n    keywords = [\"information\", \"inspect\"]\n\n    class Inputs:\n        data = Input(\"Data\", Table)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    def __init__(self):\n        super().__init__()\n\n        self._clear_fields()\n\n        for box in (\"Data Set Name\", \"Data Set Size\", \"Features\", \"Targets\",\n                    \"Meta Attributes\", \"Location\", \"Data Attributes\"):\n            name = box.lower().replace(\" \", \"_\")\n            bo = gui.vBox(self.controlArea, box,\n                          addSpace=False and box != \"Meta Attributes\")\n            gui.label(bo, self, \"%%(%s)s\" % name)\n\n        # ensure the widget has some decent minimum width.\n        self.targets = \"Categorical outcome with 123 values\"\n        self.layout().activate()\n        # NOTE: The minimum width is set on the 'contained' widget and\n        # not `self`. The layout will set a fixed size to `self` taking\n        # into account the minimum constraints of the children (it would\n        # override any minimum/fixed size set on `self`).\n        self.targets = \"\"\n        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())\n\n    @Inputs.data\n    def data(self, data):\n        if data is None:\n            self._clear_fields()\n        else:\n            self._set_fields(data)\n            self._set_report(data)\n\n    def _clear_fields(self):\n        self.data_set_name = \"\"\n        self.data_set_size = \"\"\n        self.features = self.targets = self.meta_attributes = \"\"\n        self.location = \"\"\n        self.data_desc = None\n        self.data_attributes = \"\"\n\n    @staticmethod\n    def _count(s, tpe):\n        return sum(isinstance(x, tpe) for x in s)\n\n    def _set_fields(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        def n_or_none(n):\n            return n or \"-\"\n\n        def pack_table(info):\n            return '<table>\\n' + \"\\n\".join(\n                '<tr><td align=\"right\" width=\"90\">{}:</td>\\n'\n                '<td width=\"40\">{}</td></tr>\\n'.format(\n                    d,\n                    textwrap.shorten(str(v), width=30, placeholder=\"...\"))\n                for d, v in info\n            ) + \"</table>\\n\"\n\n        def pack_counts(s, include_non_primitive=False):\n            if not s:\n                return \"None\"\n            return pack_table(\n                (name, n_or_none(self._count(s, type_)))\n                for name, type_ in (\n                    (\"Categorical\", DiscreteVariable),\n                    (\"Numeric\", ContinuousVariable),\n                    (\"Text\", StringVariable))[:2 + include_non_primitive]\n            )\n\n        domain = data.domain\n        class_var = domain.class_var\n\n        sparseness = [s for s, m in ((\"features\", data.X_density),\n                                     (\"meta attributes\", data.metas_density),\n                                     (\"targets\", data.Y_density)) if m() > 1]\n        if sparseness:\n            sparseness = \"<p>Sparse representation: {}</p>\"\\\n                         .format(\", \".join(sparseness))\n        else:\n            sparseness = \"\"\n        self.data_set_size = pack_table((\n            (\"Rows\", '~{}'.format(data.approx_len())),\n            (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        def update_size():\n            self.data_set_size = pack_table((\n                (\"Rows\", len(data)),\n                (\"Columns\", len(domain)+len(domain.metas)))) + sparseness\n\n        threading.Thread(target=update_size).start()\n\n        self.data_set_name = getattr(data, \"name\", \"N/A\")\n\n        self.features = pack_counts(domain.attributes)\n        self.meta_attributes = pack_counts(domain.metas, True)\n        if class_var:\n            if class_var.is_continuous:\n                self.targets = \"Numeric target variable\"\n            else:\n                self.targets = \"Categorical outcome with {} values\"\\\n                               .format(len(class_var.values))\n        elif domain.class_vars:\n            disc_class = self._count(domain.class_vars, DiscreteVariable)\n            cont_class = self._count(domain.class_vars, ContinuousVariable)\n            if not cont_class:\n                self.targets = \"Multi-target data,\\n{} categorical targets\"\\\n                               .format(n_or_none(disc_class))\n            elif not disc_class:\n                self.targets = \"Multi-target data,\\n{} numeric targets\"\\\n                               .format(n_or_none(cont_class))\n            else:\n                self.targets = \"<p>Multi-target data</p>\\n\" + \\\n                               pack_counts(domain.class_vars)\n        else:\n            self.targets = \"None\"\n\n        if data.attributes:\n            self.data_attributes = pack_table(data.attributes.items())\n        else:\n            self.data_attributes = \"\"\n\n    def _set_report(self, data):\n        # Attributes are defined in a function called from __init__\n        # pylint: disable=attribute-defined-outside-init\n        domain = data.domain\n        count = self._count\n\n        self.data_desc = dd = OrderedDict()\n        dd[\"Name\"] = self.data_set_name\n\n        if SqlTable is not None and isinstance(data, SqlTable):\n            connection_string = ' '.join(\n                '{}={}'.format(key, value)\n                for key, value in data.connection_params.items()\n                if value is not None and key != 'password')\n            self.location = \"Table '{}', using connection:\\n{}\"\\\n                            .format(data.table_name, connection_string)\n            dd[\"Rows\"] = data.approx_len()\n        else:\n            self.location = \"Data is stored in memory\"\n            dd[\"Rows\"] = len(data)\n\n        def join_if(items):\n            return \", \".join(s.format(n) for s, n in items if n)\n\n        dd[\"Features\"] = len(domain.attributes) > 0 and join_if((\n            (\"{} categorical\", count(domain.attributes, DiscreteVariable)),\n            (\"{} numeric\", count(domain.attributes, ContinuousVariable))\n        ))\n        if domain.class_var:\n            name = domain.class_var.name\n            if domain.class_var.is_discrete:\n                dd[\"Target\"] = \"categorical outcome '{}'\".format(name)\n            else:\n                dd[\"Target\"] = \"numeric target '{}'\".format(name)\n        elif domain.class_vars:\n            disc_class = count(domain.class_vars, DiscreteVariable)\n            cont_class = count(domain.class_vars, ContinuousVariable)\n            tt = \"\"\n            if disc_class:\n                tt += report.plural(\"{number} categorical outcome{s}\", disc_class)\n            if cont_class:\n                tt += report.plural(\"{number} numeric target{s}\", cont_class)\n        dd[\"Meta attributes\"] = len(domain.metas) > 0 and join_if((\n            (\"{} categorical\", count(domain.metas, DiscreteVariable)),\n            (\"{} numeric\", count(domain.metas, ContinuousVariable)),\n            (\"{} text\", count(domain.metas, StringVariable))\n        ))\n\n    def send_report(self):\n        if self.data_desc:\n            self.report_items(self.data_desc)\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWDataInfo).run(Table(\"iris\"))\n"}
A user will ask you to solve a task. You should first draft your thinking process (inner monologue). Then, generate the solution.

Your response format must follow the template below:
<think>
Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate a correct solution.
</think>
<solution>
Final solution presented to the user.
</solution>
system
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title:** OWDataInfo Widget Fails to Update Status Bar on Data Input and Clearing

**Description:**
When data is provided to the `OWDataInfo` widget or cleared, the status bar does not update to reflect the current data summary. This behavior causes the widget to display outdated or no information in the status bar, leading to confusion about the data being handled.

**Buggy Code Example:**
```python
class TestOWDataInfo(WidgetTest):

    def setUp(self):
        self.widget = self.create_widget(OWDataInfo)

    def test_summary(self):
        """Check if the status bar is updated when data is received"""
        data = Table("iris")
        input_sum = self.widget.info.set_input_summary = Mock()
        self.send_signal(self.widget.Inputs.data, data)
        # Expected to call set_input_summary with data details, but it doesn't
        input_sum.assert_called_with(len(data), format_summary_details(data))
        self.send_signal(self.widget.Inputs.data, None)
        # Expected to reset the status bar, but set_input_summary is not called
        input_sum.assert_called_once()
        self.assertEqual(input_sum.call_args[0][0].brief, "")
```

**Expected Behavior:**
- When data is sent to the `OWDataInfo` widget, the status bar should display a summary of the data, including the number of instances and variables.
- When the data is cleared (i.e., set to `None`), the status bar should reset to indicate that there is no input data.

**Actual Behavior:**
- The `set_input_summary` method is not called when data is provided or cleared.
- As a result, the status bar does not update with the data summary, and the `test_summary` test fails with an `AssertionError` indicating that the expected calls to `set_input_summary` were not made.

[/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/data/owdatainfo.py
from collections import OrderedDict
import threading
import textwrap

from Orange.widgets import widget, gui
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.widget import Input
from Orange.data.table import Table
from Orange.data import StringVariable, DiscreteVariable, ContinuousVariable
from Orange.widgets import report
try:
    from Orange.data.sql.table import SqlTable
except ImportError:
    SqlTable = None


class OWDataInfo(widget.OWWidget):
    name = "Data Info"
    id = "orange.widgets.data.info"
    description = """Display basic information about the dataset, such
    as the number and type of variables in the columns and the number of rows."""
    icon = "icons/DataInfo.svg"
    priority = 80
    category = "Data"
    keywords = ["information", "inspect"]

    class Inputs:
        data = Input("Data", Table)

    want_main_area = False
    resizing_enabled = False

    def __init__(self):
        super().__init__()

        self._clear_fields()

        for box in ("Data Set Name", "Data Set Size", "Features", "Targets",
                    "Meta Attributes", "Location", "Data Attributes"):
            name = box.lower().replace(" ", "_")
            bo = gui.vBox(self.controlArea, box,
                          addSpace=False and box != "Meta Attributes")
            gui.label(bo, self, "%%(%s)s" % name)

        # ensure the widget has some decent minimum width.
        self.targets = "Categorical outcome with 123 values"
        self.layout().activate()
        # NOTE: The minimum width is set on the 'contained' widget and
        # not `self`. The layout will set a fixed size to `self` taking
        # into account the minimum constraints of the children (it would
        # override any minimum/fixed size set on `self`).
        self.targets = ""
        self.controlArea.setMinimumWidth(self.controlArea.sizeHint().width())

    @Inputs.data
    def data(self, data):
        if data is None:
            self._clear_fields()
        else:
            self._set_fields(data)
            self._set_report(data)

    def _clear_fields(self):
        self.data_set_name = ""
        self.data_set_size = ""
        self.features = self.targets = self.meta_attributes = ""
        self.location = ""
        self.data_desc = None
        self.data_attributes = ""

    @staticmethod
    def _count(s, tpe):
        return sum(isinstance(x, tpe) for x in s)

    def _set_fields(self, data):
        # Attributes are defined in a function called from __init__
        # pylint: disable=attribute-defined-outside-init
        def n_or_none(n):
            return n or "-"

        def pack_table(info):
            return '<table>\n' + "\n".join(
                '<tr><td align="right" width="90">{}:</td>\n'
                '<td width="40">{}</td></tr>\n'.format(
                    d,
                    textwrap.shorten(str(v), width=30, placeholder="..."))
                for d, v in info
            ) + "</table>\n"

        def pack_counts(s, include_non_primitive=False):
            if not s:
                return "None"
            return pack_table(
                (name, n_or_none(self._count(s, type_)))
                for name, type_ in (
                    ("Categorical", DiscreteVariable),
                    ("Numeric", ContinuousVariable),
                    ("Text", StringVariable))[:2 + include_non_primitive]
            )

        domain = data.domain
        class_var = domain.class_var

        sparseness = [s for s, m in (("features", data.X_density),
                                     ("meta attributes", data.metas_density),
                                     ("targets", data.Y_density)) if m() > 1]
        if sparseness:
            sparseness = "<p>Sparse representation: {}</p>"\
                         .format(", ".join(sparseness))
        else:
            sparseness = ""
        self.data_set_size = pack_table((
            ("Rows", '~{}'.format(data.approx_len())),
            ("Columns", len(domain)+len(domain.metas)))) + sparseness

        def update_size():
            self.data_set_size = pack_table((
                ("Rows", len(data)),
                ("Columns", len(domain)+len(domain.metas)))) + sparseness

        threading.Thread(target=update_size).start()

        self.data_set_name = getattr(data, "name", "N/A")

        self.features = pack_counts(domain.attributes)
        self.meta_attributes = pack_counts(domain.metas, True)
        if class_var:
            if class_var.is_continuous:
                self.targets = "Numeric target variable"
            else:
                self.targets = "Categorical outcome with {} values"\
                               .format(len(class_var.values))
        elif domain.class_vars:
            disc_class = self._count(domain.class_vars, DiscreteVariable)
            cont_class = self._count(domain.class_vars, ContinuousVariable)
            if not cont_class:
                self.targets = "Multi-target data,\n{} categorical targets"\
                               .format(n_or_none(disc_class))
            elif not disc_class:
                self.targets = "Multi-target data,\n{} numeric targets"\
                               .format(n_or_none(cont_class))
            else:
                self.targets = "<p>Multi-target data</p>\n" + \
                               pack_counts(domain.class_vars)
        else:
            self.targets = "None"

        if data.attributes:
            self.data_attributes = pack_table(data.attributes.items())
        else:
            self.data_attributes = ""

    def _set_report(self, data):
        # Attributes are defined in a function called from __init__
        # pylint: disable=attribute-defined-outside-init
        domain = data.domain
        count = self._count

        self.data_desc = dd = OrderedDict()
        dd["Name"] = self.data_set_name

        if SqlTable is not None and isinstance(data, SqlTable):
            connection_string = ' '.join(
                '{}={}'.format(key, value)
                for key, value in data.connection_params.items()
                if value is not None and key != 'password')
            self.location = "Table '{}', using connection:\n{}"\
                            .format(data.table_name, connection_string)
            dd["Rows"] = data.approx_len()
        else:
            self.location = "Data is stored in memory"
            dd["Rows"] = len(data)

        def join_if(items):
            return ", ".join(s.format(n) for s, n in items if n)

        dd["Features"] = len(domain.attributes) > 0 and join_if((
            ("{} categorical", count(domain.attributes, DiscreteVariable)),
            ("{} numeric", count(domain.attributes, ContinuousVariable))
        ))
        if domain.class_var:
            name = domain.class_var.name
            if domain.class_var.is_discrete:
                dd["Target"] = "categorical outcome '{}'".format(name)
            else:
                dd["Target"] = "numeric target '{}'".format(name)
        elif domain.class_vars:
            disc_class = count(domain.class_vars, DiscreteVariable)
            cont_class = count(domain.class_vars, ContinuousVariable)
            tt = ""
            if disc_class:
                tt += report.plural("{number} categorical outcome{s}", disc_class)
            if cont_class:
                tt += report.plural("{number} numeric target{s}", cont_class)
        dd["Meta attributes"] = len(domain.metas) > 0 and join_if((
            ("{} categorical", count(domain.metas, DiscreteVariable)),
            ("{} numeric", count(domain.metas, ContinuousVariable)),
            ("{} text", count(domain.metas, StringVariable))
        ))

    def send_report(self):
        if self.data_desc:
            self.report_items(self.data_desc)


if __name__ == "__main__":  # pragma: no cover
    WidgetPreview(OWDataInfo).run(Table("iris"))

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