{
    "file_diffs": [
        {
            "old_file_content": "\"\"\"\nConcatenate\n===========\n\nConcatenate (append) two or more datasets.\n\n\"\"\"\nfrom collections import OrderedDict, namedtuple, defaultdict\nfrom functools import reduce\nfrom itertools import chain, count\nfrom typing import List, Optional, Sequence\n\nimport numpy as np\nfrom AnyQt.QtWidgets import QFormLayout\nfrom AnyQt.QtCore import Qt\n\nimport Orange.data\nfrom Orange.data.util import get_unique_names_duplicates, get_unique_names\nfrom Orange.util import flatten\nfrom Orange.widgets import widget, gui, settings\nfrom Orange.widgets.settings import Setting\nfrom Orange.widgets.utils.annotated_data import add_columns\nfrom Orange.widgets.utils.sql import check_sql_input, check_sql_input_sequence\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.widget import Input, MultiInput, Output, Msg\n\n\nclass OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWConcatenate).run(\n        insert_more_data=[(0, Orange.data.Table(\"iris\")),\n                          (1, Orange.data.Table(\"zoo\"))])\n",
            "new_file_content": "\"\"\"\nConcatenate\n===========\n\nConcatenate (append) two or more datasets.\n\n\"\"\"\nfrom collections import OrderedDict, namedtuple, defaultdict\nfrom functools import reduce\nfrom itertools import chain, count\nfrom typing import List, Optional, Sequence\n\nimport numpy as np\nfrom AnyQt.QtWidgets import QFormLayout\nfrom AnyQt.QtCore import Qt\n\nimport Orange.data\nfrom Orange.data.util import get_unique_names_duplicates, get_unique_names\nfrom Orange.util import flatten\nfrom Orange.widgets import widget, gui, settings\nfrom Orange.widgets.settings import Setting\nfrom Orange.widgets.utils.annotated_data import add_columns\nfrom Orange.widgets.utils.sql import check_sql_input, check_sql_input_sequence\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.widget import Input, MultiInput, Output, Msg\n\n\nclass OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_table.name = table.name\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWConcatenate).run(\n        insert_more_data=[(0, Orange.data.Table(\"iris\")),\n                          (1, Orange.data.Table(\"zoo\"))])\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/data/owconcatenate.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "4904a33ea",
                "new_commit_hash": "8c3958923",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/data/owconcatenate.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/data/owconcatenate.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 263,
                            "length": 6
                        },
                        "new_range": {
                            "start": 263,
                            "length": 7
                        },
                        "section": "class OWConcatenate(widget.OWWidget):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "                dumb_domain,",
                                "type": "context"
                            },
                            {
                                "content": "                table.X, table.Y, table.metas, table.W,",
                                "type": "context"
                            },
                            {
                                "content": "                table.attributes, table.ids)",
                                "type": "context"
                            },
                            {
                                "content": "            dumb_table.name = table.name",
                                "type": "added"
                            },
                            {
                                "content": "            dumb_tables.append(dumb_table)",
                                "type": "context"
                            },
                            {
                                "content": "        return dumb_tables",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/data/owconcatenate.py",
                            "type": "method",
                            "name": "OWConcatenate._dumb_tables",
                            "content": "class OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_table.name = table.name\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 240,
                            "end_lineno": 268,
                            "parent": {
                                "file_name": "Orange/widgets/data/owconcatenate.py",
                                "type": "class",
                                "name": "OWConcatenate",
                                "content": "class OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_table.name = table.name\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 28,
                                "end_lineno": 363,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/widgets/data/owconcatenate.py",
                            "type": "class",
                            "name": "OWConcatenate",
                            "content": "class OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_table.name = table.name\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 28,
                            "end_lineno": 363,
                            "parent": null
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring, abstract-method, protected-access\nimport unittest\nfrom unittest.mock import patch, Mock\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal\n\nfrom Orange.data import (\n    Table, Domain, ContinuousVariable, DiscreteVariable, StringVariable\n)\nfrom Orange.preprocess.transformation import Identity\nfrom Orange.widgets.data.owconcatenate import OWConcatenate\nfrom Orange.widgets.tests.base import WidgetTest\n\n\nclass TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        def get_source():\n            output = self.get_output(self.widget.Outputs.data)\n            outvars = output.domain.variables + output.domain.metas\n            return (set(outvars) - set(outvarsb)).pop()\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = get_source()\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = get_source()\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = get_source()\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "new_file_content": "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring, abstract-method, protected-access\nimport unittest\nfrom unittest.mock import patch, Mock\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal\n\nfrom Orange.data import (\n    Table, Domain, ContinuousVariable, DiscreteVariable, StringVariable\n)\nfrom Orange.preprocess.transformation import Identity\nfrom Orange.widgets.data.owconcatenate import OWConcatenate\nfrom Orange.widgets.tests.base import WidgetTest\n\n\nclass TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "header": {
                "file": {
                    "path": "Orange/widgets/data/tests/test_owconcatenate.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "d2c1d3507",
                "new_commit_hash": "3eb2f7598",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/widgets/data/tests/test_owconcatenate.py"
            },
            "plus_file": {
                "path": "b/Orange/widgets/data/tests/test_owconcatenate.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 71,
                            "length": 36
                        },
                        "new_range": {
                            "start": 71,
                            "length": 54
                        },
                        "section": "class TestOWConcatenate(WidgetTest):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        outvars = output.domain.variables",
                                "type": "context"
                            },
                            {
                                "content": "        self.assertEqual(0, len(outvars))",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def get_source_var(self, vars_before):",
                                "type": "added"
                            },
                            {
                                "content": "        output = self.get_output(self.widget.Outputs.data)",
                                "type": "added"
                            },
                            {
                                "content": "        outvars = output.domain.variables + output.domain.metas",
                                "type": "added"
                            },
                            {
                                "content": "        return (set(outvars) - set(vars_before)).pop()",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_source(self):",
                                "type": "context"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)",
                                "type": "context"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)",
                                "type": "context"
                            },
                            {
                                "content": "        outputb = self.get_output(self.widget.Outputs.data)",
                                "type": "context"
                            },
                            {
                                "content": "        outvarsb = outputb.domain.variables",
                                "type": "context"
                            },
                            {
                                "content": "        def get_source():",
                                "type": "deleted"
                            },
                            {
                                "content": "            output = self.get_output(self.widget.Outputs.data)",
                                "type": "deleted"
                            },
                            {
                                "content": "            outvars = output.domain.variables + output.domain.metas",
                                "type": "deleted"
                            },
                            {
                                "content": "            return (set(outvars) - set(outvarsb)).pop()",
                                "type": "deleted"
                            },
                            {
                                "content": "        # test adding source",
                                "type": "context"
                            },
                            {
                                "content": "        self.widget.controls.append_source_column.toggle()",
                                "type": "context"
                            },
                            {
                                "content": "        source = get_source()",
                                "type": "deleted"
                            },
                            {
                                "content": "        source = self.get_source_var(outvarsb)",
                                "type": "added"
                            },
                            {
                                "content": "        self.assertEqual(source.name, \"Source ID\")",
                                "type": "context"
                            },
                            {
                                "content": "        # test name changing",
                                "type": "context"
                            },
                            {
                                "content": "        self.widget.controls.source_attr_name.setText(\"Source\")",
                                "type": "context"
                            },
                            {
                                "content": "        self.widget.controls.source_attr_name.callback()",
                                "type": "context"
                            },
                            {
                                "content": "        source = get_source()",
                                "type": "deleted"
                            },
                            {
                                "content": "        source = self.get_source_var(outvarsb)",
                                "type": "added"
                            },
                            {
                                "content": "        self.assertEqual(source.name, \"Source\")",
                                "type": "context"
                            },
                            {
                                "content": "        # test source_column role",
                                "type": "context"
                            },
                            {
                                "content": "        places = [\"class_vars\", \"attributes\", \"metas\"]",
                                "type": "context"
                            },
                            {
                                "content": "        for i, place in enumerate(places):",
                                "type": "context"
                            },
                            {
                                "content": "            self.widget.source_column_role = i",
                                "type": "context"
                            },
                            {
                                "content": "            self.widget.commit.now()",
                                "type": "context"
                            },
                            {
                                "content": "            source = get_source()",
                                "type": "deleted"
                            },
                            {
                                "content": "            source = self.get_source_var(outvarsb)",
                                "type": "added"
                            },
                            {
                                "content": "            output = self.get_output(self.widget.Outputs.data)",
                                "type": "context"
                            },
                            {
                                "content": "            self.assertTrue(source in getattr(output.domain, place))",
                                "type": "context"
                            },
                            {
                                "content": "            data = output.transform(Domain([source]))",
                                "type": "context"
                            },
                            {
                                "content": "            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)",
                                "type": "added"
                            },
                            {
                                "content": "            np.testing.assert_equal(data[:len(self.iris)].X, 0)",
                                "type": "context"
                            },
                            {
                                "content": "            np.testing.assert_equal(data[len(self.iris):].X, 1)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def test_source_ignore_compute_value(self):",
                                "type": "added"
                            },
                            {
                                "content": "        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)",
                                "type": "added"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)",
                                "type": "added"
                            },
                            {
                                "content": "        outputb = self.get_output(self.widget.Outputs.data)",
                                "type": "added"
                            },
                            {
                                "content": "        outvarsb = outputb.domain.variables",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.controls.append_source_column.toggle()",
                                "type": "added"
                            },
                            {
                                "content": "        self.widget.controls.ignore_compute_value.toggle()  # on",
                                "type": "added"
                            },
                            {
                                "content": "        source = self.get_source_var(outvarsb)",
                                "type": "added"
                            },
                            {
                                "content": "        output = self.get_output(self.widget.Outputs.data)",
                                "type": "added"
                            },
                            {
                                "content": "        data = output.transform(Domain([source]))",
                                "type": "added"
                            },
                            {
                                "content": "        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)",
                                "type": "added"
                            },
                            {
                                "content": "        np.testing.assert_equal(data[: len(self.iris)].X, 0)",
                                "type": "added"
                            },
                            {
                                "content": "        np.testing.assert_equal(data[len(self.iris) :].X, 1)",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_singleclass_source_class(self):",
                                "type": "context"
                            },
                            {
                                "content": "        self.send_signal(self.widget.Inputs.primary_data, self.iris)",
                                "type": "context"
                            },
                            {
                                "content": "        # add source into a class variable",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                            "type": "method",
                            "name": "TestOWConcatenate.test_source",
                            "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        def get_source():\n            output = self.get_output(self.widget.Outputs.data)\n            outvars = output.domain.variables + output.domain.metas\n            return (set(outvars) - set(outvarsb)).pop()\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = get_source()\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = get_source()\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = get_source()\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 74,
                            "end_lineno": 102,
                            "parent": {
                                "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                                "type": "class",
                                "name": "TestOWConcatenate",
                                "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        def get_source():\n            output = self.get_output(self.widget.Outputs.data)\n            outvars = output.domain.variables + output.domain.metas\n            return (set(outvars) - set(outvarsb)).pop()\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = get_source()\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = get_source()\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = get_source()\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 17,
                                "end_lineno": 516,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                            "type": "class",
                            "name": "TestOWConcatenate",
                            "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        def get_source():\n            output = self.get_output(self.widget.Outputs.data)\n            outvars = output.domain.variables + output.domain.metas\n            return (set(outvars) - set(outvarsb)).pop()\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = get_source()\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = get_source()\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = get_source()\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 17,
                            "end_lineno": 516,
                            "parent": null
                        }
                    ],
                    "added_entities": [
                        {
                            "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                            "type": "method",
                            "name": "TestOWConcatenate.get_source_var",
                            "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 74,
                            "end_lineno": 77,
                            "parent": {
                                "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                                "type": "class",
                                "name": "TestOWConcatenate",
                                "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 17,
                                "end_lineno": 534,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                            "type": "method",
                            "name": "TestOWConcatenate.test_source_ignore_compute_value",
                            "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 106,
                            "end_lineno": 120,
                            "parent": {
                                "file_name": "Orange/widgets/data/tests/test_owconcatenate.py",
                                "type": "class",
                                "name": "TestOWConcatenate",
                                "content": "class TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 17,
                                "end_lineno": 534,
                                "parent": null
                            }
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "84acb936f40a40a1f21775becc5566902b8fa4d2^",
    "new_commit_hash": "84acb936f40a40a1f21775becc5566902b8fa4d2",
    "commit_message": "[FIX] Concatenate - preserve table names when compute value ignored",
    "commit_date": "2023-02-07T13:32:42+01:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "84acb936f40a40a1f21775becc5566902b8fa4d2",
    "test_file_codes": [
        "# Test methods with long descriptive names can omit docstrings\n# pylint: disable=missing-docstring, abstract-method, protected-access\nimport unittest\nfrom unittest.mock import patch, Mock\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal\n\nfrom Orange.data import (\n    Table, Domain, ContinuousVariable, DiscreteVariable, StringVariable\n)\nfrom Orange.preprocess.transformation import Identity\nfrom Orange.widgets.data.owconcatenate import OWConcatenate\nfrom Orange.widgets.tests.base import WidgetTest\n\n\nclass TestOWConcatenate(WidgetTest):\n\n    class DummyTable(Table):\n\n        pass\n\n    def setUp(self):\n        self.widget = self.create_widget(OWConcatenate)\n        self.iris = Table(\"iris\")\n        self.titanic = Table(\"titanic\")\n\n    def test_no_input(self):\n        self.widget.commit.now()\n        self.widget.controls.append_source_column.toggle()\n        self.widget.commit.now()\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_single_input(self):\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        output = self.get_output(self.widget.Outputs.data)\n        self.assertEqual(list(output), list(self.iris))\n        self.send_signal(self.widget.Inputs.additional_data, None)\n        self.assertIsNone(self.get_output(self.widget.Outputs.data))\n\n    def test_two_inputs_union(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # needs to contain all variables\n        outvars = output.domain.variables\n        self.assertLess(set(self.iris.domain.variables), set(outvars))\n        self.assertLess(set(self.titanic.domain.variables), set(outvars))\n        # the first part of the dataset is iris, the second part is titanic\n        np.testing.assert_equal(self.iris.X, output.X[:len(self.iris), :-3])\n        self.assertTrue(np.isnan(output.X[:len(self.iris), -3:]).all())\n        np.testing.assert_equal(self.titanic.X, output.X[len(self.iris):, -3:])\n        self.assertTrue(np.isnan(output.X[len(self.iris):, :-3]).all())\n\n    def test_two_inputs_intersection(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        self.widget.controls.merge_type.buttons[1].click()\n        output = self.get_output(self.widget.Outputs.data)\n        # needs to contain all instances\n        self.assertEqual(len(output), len(self.iris) + len(self.titanic))\n        # no common variables\n        outvars = output.domain.variables\n        self.assertEqual(0, len(outvars))\n\n    def get_source_var(self, vars_before):\n        output = self.get_output(self.widget.Outputs.data)\n        outvars = output.domain.variables + output.domain.metas\n        return (set(outvars) - set(vars_before)).pop()\n\n    def test_source(self):\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n        # test adding source\n        self.widget.controls.append_source_column.toggle()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source ID\")\n        # test name changing\n        self.widget.controls.source_attr_name.setText(\"Source\")\n        self.widget.controls.source_attr_name.callback()\n        source = self.get_source_var(outvarsb)\n        self.assertEqual(source.name, \"Source\")\n        # test source_column role\n        places = [\"class_vars\", \"attributes\", \"metas\"]\n        for i, place in enumerate(places):\n            self.widget.source_column_role = i\n            self.widget.commit.now()\n            source = self.get_source_var(outvarsb)\n            output = self.get_output(self.widget.Outputs.data)\n            self.assertTrue(source in getattr(output.domain, place))\n            data = output.transform(Domain([source]))\n            self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n            np.testing.assert_equal(data[:len(self.iris)].X, 0)\n            np.testing.assert_equal(data[len(self.iris):].X, 1)\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n\n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n        self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\n        np.testing.assert_equal(data[: len(self.iris)].X, 0)\n        np.testing.assert_equal(data[len(self.iris) :].X, 1)\n\n    def test_singleclass_source_class(self):\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        # add source into a class variable\n        self.widget.controls.append_source_column.toggle()\n\n    def test_disable_merging_on_primary(self):\n        self.assertTrue(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.assertFalse(self.widget.mergebox.isEnabled())\n        self.send_signal(self.widget.Inputs.primary_data, None)\n        self.assertTrue(self.widget.mergebox.isEnabled())\n\n    def test_unconditional_commit_on_new_signal(self):\n        with patch.object(self.widget.commit, 'now') as apply:\n            self.widget.auto_commit = False\n            apply.reset_mock()\n            self.send_signal(self.widget.Inputs.primary_data, self.iris)\n            apply.assert_called()\n\n    def test_type_compatibility(self):\n        # result is on the Output for compatible types\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.iris)\n        self.assertIsNotNone(self.widget.Outputs.data)\n        self.assertFalse(self.widget.Error.bow_concatenation.is_shown())\n        # test incompatible type error\n        self.send_signal(self.widget.Inputs.primary_data, self.iris)\n        self.send_signal(self.widget.Inputs.additional_data, self.DummyTable())\n        self.assertTrue(self.widget.Error.bow_concatenation.is_shown())\n\n    def test_same_var_name(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        var2 = DiscreteVariable(name=\"x\", values=list(\"def\"))\n        data2 = Table.from_numpy(Domain([var2]),\n                                 np.arange(3).reshape(3, 1), np.zeros((3, 0)))\n\n        self.send_signal(widget.Inputs.additional_data, data1, 1)\n        self.send_signal(widget.Inputs.additional_data, data2, 2)\n        output = self.get_output(widget.Outputs.data)\n        np.testing.assert_equal(output.X,\n                                np.array([0, 1, 2, 3, 3, 4, 5]).reshape(7, 1))\n\n    def test_duplicated_id_column(self):\n        widget = self.widget\n\n        var1 = DiscreteVariable(name=\"x\", values=list(\"abcd\"))\n        data1 = Table.from_numpy(Domain([var1]),\n                                 np.arange(4).reshape(4, 1), np.zeros((4, 0)))\n        widget.append_source_column = True\n        widget.source_column_role = 0\n        widget.source_attr_name = \"x\"\n        self.send_signal(widget.Inputs.primary_data, data1)\n        out = self.get_output(widget.Outputs.data)\n        self.assertEqual(out.domain.attributes[0].name, \"x\")\n        self.assertEqual(out.domain.class_var.name, \"x (1)\")\n\n    def test_domain_intersect(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeIntersection\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [])\n        self.assertSequenceEqual(res.class_vars, [])\n        self.assertSequenceEqual(res.metas, [])\n\n        domain2 = Domain([X2, X3], [D1, D2, D3], [S1, S2])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X2])\n        self.assertSequenceEqual(res.class_vars, [D1])\n        self.assertSequenceEqual(res.metas, [S1])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=(\"a\", \"b\")),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"S2\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        domain2 = Domain([X3, X2], [D2, D1, D3], [S2, S1])\n        res = widget.merge_domains([domain1, domain2])\n        self.assertSequenceEqual(res.attributes, [X1, X2, X3])\n        self.assertSequenceEqual(res.class_vars, [D1, D2, D3])\n        self.assertSequenceEqual(res.metas, [S1, S2])\n\n        res = widget.merge_domains([domain1, domain1])\n        self.assertSequenceEqual(res.attributes, domain1.attributes)\n        self.assertSequenceEqual(res.class_vars, domain1.class_vars)\n        self.assertSequenceEqual(res.metas, domain1.metas)\n\n    def test_domain_union_duplicated_names(self):\n        widget = self.widget\n        widget.merge_type = OWConcatenate.MergeUnion\n\n        X1, X2, X3 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\"])\n        D1, D2 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                     [\"D1\", \"X2\"])\n        S1, S2 = map(StringVariable, [\"S1\", \"X1\"])\n        domain1 = Domain([X1, X2], [D1], [S1])\n        domain2 = Domain([X3], [D2], [S2])\n        res = widget.merge_domains([domain1, domain2])\n\n        attributes = res.attributes\n        class_vars = res.class_vars\n        metas = res.metas\n\n        self.assertEqual([var.name for var in attributes],\n                         [\"X1 (1)\", \"X2 (1)\", \"X3\"])\n        self.assertEqual([var.name for var in class_vars],\n                         [\"D1\", \"X2 (2)\"])\n        self.assertEqual([var.name for var in metas],\n                         [\"S1\", \"X1 (2)\"])\n\n        x21_val_from = attributes[1].compute_value\n        self.assertIsInstance(x21_val_from, Identity)\n        self.assertIsInstance(x21_val_from.variable, ContinuousVariable)\n        self.assertEqual(x21_val_from.variable.name, \"X2\")\n\n        x22_val_from = class_vars[1].compute_value\n        self.assertIsInstance(x22_val_from, Identity)\n        self.assertIsInstance(x22_val_from.variable, DiscreteVariable)\n        self.assertEqual(x22_val_from.variable.name, \"X2\")\n\n        x11_val_from = attributes[0].compute_value\n        self.assertIsInstance(x11_val_from, Identity)\n        self.assertIsInstance(x11_val_from.variable, ContinuousVariable)\n        self.assertEqual(x11_val_from.variable.name, \"X1\")\n\n        x12_val_from = metas[1].compute_value\n        self.assertIsInstance(x12_val_from, Identity)\n        self.assertIsInstance(x12_val_from.variable, StringVariable)\n        self.assertEqual(x12_val_from.variable.name, \"X1\")\n\n    def test_get_part_union(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"attributes\"),\n            [X1, X2, X3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"attributes\"),\n            [X3, X2, X4, X1]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"class_vars\"),\n            [D1, D2]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.union, \"class_vars\"),\n            [D2, D1, D3]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2], set.union, \"metas\"),\n            [S1, S3, S2]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1], set.union, \"metas\"),\n            [S2, S3, S1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain2, domain1], set.union, \"metas\"),\n            [S2, S1, S3]\n        )\n\n    def test_get_part_intersection(self):\n        get_part = OWConcatenate._get_part  # pylint: disable=protected-access\n\n        X1, X2, X3, X4 = map(ContinuousVariable, [\"X1\", \"X2\", \"X3\", \"X4\"])\n        D1, D2, D3 = map(lambda n: DiscreteVariable(n, values=[\"a\", \"b\"]),\n                         [\"D1\", \"D2\", \"D3\"])\n        S1, S2, S3 = map(StringVariable, [\"S1\", \"S2\", \"S3\"])\n        domain1 = Domain([X1, X2], [D1], [S1, S3])\n        domain2 = Domain([X3, X2], [D2, D1], [S2, S3, S1])\n        domain3 = Domain([X3, X2, X4], [D2, D1, D3], [S2, S1, S3])\n\n        self.assertEqual(\n            get_part([domain1, domain2], set.intersection, \"attributes\"),\n            [X2]\n        )\n        self.assertEqual(\n            get_part([domain1, domain2, domain3], set.intersection, \"class_vars\"),\n            [D1]\n        )\n        self.assertEqual(\n            get_part([domain3, domain1, domain2], set.intersection, \"metas\"),\n            [S1, S3]\n        )\n        self.assertEqual(\n            get_part([domain2, domain1, domain3], set.intersection, \"metas\"),\n            [S3, S1]\n        )\n\n    def test_get_unique_vars(self):\n        X1, X1a, X2, X2a = map(ContinuousVariable, [\"X1\", \"X1\", \"X2\", \"X2\"])\n        X2.number_of_decimals = 3\n        X2a.number_of_decimals = 4\n        D1 = DiscreteVariable(\"X1\", values=(\"a\", \"b\", \"c\"))\n        D1a = DiscreteVariable(\"X1\", values=(\"e\", \"b\", \"d\"))\n        D2 = DiscreteVariable(\"X2\", values=(\"a\", \"b\", \"c\"))\n        S1 = StringVariable(\"X1\")\n\n        # pylint: disable=unbalanced-tuple-unpacking,protected-access\n        uX1, uX2, uD1, uD2, uS1 =\\\n            OWConcatenate._unique_vars([X1, X1a, X2, X2a, D1, D2, D1a, S1])\n\n        self.assertIs(X1, uX1)\n\n        self.assertEqual(X2, uX2)\n        self.assertEqual(X2a, uX2)\n        self.assertEqual(X2.number_of_decimals, 3)\n        self.assertEqual(X2a.number_of_decimals, 4)\n        self.assertEqual(uX2.number_of_decimals, 4)\n\n        self.assertEqual(D1.values, tuple(\"abc\"))\n        self.assertEqual(D1a.values, tuple(\"ebd\"))\n        self.assertEqual(uD1, D1)\n        self.assertEqual(uD1, D1a)\n        self.assertEqual(uD1.values, tuple(\"abced\"))\n\n        self.assertIs(uD2, D2)\n\n        self.assertIs(S1, uS1)\n\n    def test_different_number_decimals(self):\n        widget = self.widget\n\n        x1 = ContinuousVariable(\"x\", number_of_decimals=3)\n        x2 = ContinuousVariable(\"x\", number_of_decimals=4)\n        data1 = Table.from_numpy(Domain([x1]), np.array([[1], [2], [3]]))\n        data2 = Table.from_numpy(Domain([x2]), np.array([[1], [2], [3]]))\n        for d1, d2, id1, id2 in ((data1, data2, 1, 2), (data1, data2, 2, 1),\n                                 (data2, data1, 1, 2), (data2, data1, 2, 1)):\n            self.send_signal(widget.Inputs.additional_data, d1, id1)\n            self.send_signal(widget.Inputs.additional_data, d2, id2)\n            out_dom = self.get_output(widget.Outputs.data).domain\n            self.assertEqual(len(out_dom.attributes), 1)\n            x = out_dom.attributes[0]\n            self.assertEqual(x.number_of_decimals, 4)\n\n    def _create_compute_values(self):\n        a1, a2, a3, a4, c1 = self.iris.domain.variables\n\n        def times2(*_):\n            return 2\n\n        na1 = a1.copy()\n        na2 = a2.copy(compute_value=times2)\n        na3 = a3.copy(compute_value=lambda *_: 3)\n        na4 = a4.copy(compute_value=lambda *_: 4)\n        nc1 = c1.copy(compute_value=lambda *_: 5)\n\n        ma1 = a1.copy()\n        ma2 = a2.copy(compute_value=times2)\n        ma3 = a3.copy(compute_value=lambda x: 6)\n        ma4 = a4.copy(compute_value=lambda x: 7)\n\n        table_n = self.iris.transform(Domain([na1, na2, na3, na4], nc1))\n        table_m = self.iris.transform(Domain([ma1, ma2, ma3], None, [ma4]))\n        return table_n, table_m\n\n    def test_dumb_tables(self):\n        self.widget.commit.deferred = Mock()\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma1, ma2, ma3 = table_m.domain.attributes\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        # pylint: disable=unbalanced-tuple-unpacking\n        dtable_n, dtable_m = self.widget._dumb_tables()\n        dna1, dna2, dna3, dna4, dnc1 = dtable_n.domain.variables\n        dma1, dma2, dma3 = dtable_m.domain.attributes\n        dma4 = dtable_m.domain.metas[0]\n\n        # No copying: same name and no compute value\n        self.assertIs(na1, dna1)\n        self.assertIs(ma1, dma1)\n\n        # No copying: same name and same compute value\n        self.assertIs(na2, dna2)\n        self.assertIs(ma2, dma2)\n\n        # Copy: same name and different compute value\n        self.assertIsNot(na3, dna3)\n        self.assertIsNot(ma3, dma3)\n        self.assertIsNone(dna3.compute_value)\n        self.assertIsNone(dma3.compute_value)\n\n        # No copying: same name and different compute value, but different part\n        self.assertIs(na4, dna4)\n        self.assertIs(ma4, dma4)\n\n        # No copying: does not appear in the other table\n        self.assertIs(nc1, dnc1)\n\n        np.testing.assert_equal(table_m.X, dtable_m.X)\n        np.testing.assert_equal(table_m.Y, dtable_m.Y)\n        np.testing.assert_equal(table_n.X, dtable_n.X)\n        np.testing.assert_equal(table_n.metas, dtable_n.metas)\n\n    def test_dont_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = False\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 5)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIs(attributes[2].compute_value.variable, na3)  # renamed\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n        self.assertIs(attributes[4].compute_value.variable, ma3)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)\n\n    def test_ignore_compute_value(self):\n        table_n, table_m = self._create_compute_values()\n        na1, na2, na3, na4, nc1 = table_n.domain.variables\n        ma3 = table_m.domain.attributes[2]\n        ma4 = table_m.domain.metas[0]\n\n        self.send_signal(self.widget.Inputs.additional_data, table_n, 1)\n        self.send_signal(self.widget.Inputs.additional_data, table_m, 2)\n\n        self.widget.ignore_compute_value = True\n        self.widget.commit.now()\n\n        output = self.get_output(self.widget.Outputs.data)\n        attributes = output.domain.attributes\n        self.assertEqual(len(attributes), 4)\n        self.assertIs(attributes[0], na1)\n        self.assertIs(attributes[1], na2)\n        self.assertIsNot(attributes[2], na3)\n        self.assertIsNot(attributes[2], ma3)\n        self.assertIsNone(attributes[2].compute_value, ma3)  # renamed\n        self.assertEqual(attributes[2].name, na3.name)\n        self.assertIs(attributes[3].compute_value.variable, na4)  # renamed\n\n        self.assertIs(output.domain.class_var, nc1)\n\n        self.assertEqual(len(output.domain.metas), 1)\n        self.assertIs(output.domain.metas[0].compute_value.variable, ma4)  # renamed\n\n    def test_explicit_closing(self):\n        w = self.widget\n        self.send_signal(w.Inputs.additional_data, self.iris[:1], 0)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        self.send_signal(w.Inputs.additional_data, self.iris[2:3], 2)\n\n        def assert_output_equal(expected: np.ndarray):\n            out = self.get_output(w.Outputs.data)\n            assert_array_equal(out.X, expected)\n\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data, None, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(self.iris[:3].X)\n        self.send_signal(w.Inputs.additional_data,\n                         w.Inputs.additional_data.closing_sentinel, 1)\n        assert_output_equal(self.iris[:3:2].X)\n        self.send_signal(w.Inputs.additional_data, self.iris[1:2], 1)\n        assert_output_equal(np.vstack((self.iris[:3:2].X, self.iris[1:2].X)))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
    ],
    "test_file_names": [
        "test_1.py"
    ],
    "setup_res_code": 0,
    "setup_res_stdout": "Starting Orange installation attempts...\nAttempting installation with Python 3.7...\nrunning build_ext\nCompiling Orange/classification/_tree_scorers.pyx because it changed.\nCompiling Orange/data/_contingency.pyx because it changed.\nCompiling Orange/data/_io.pyx because it changed.\nCompiling Orange/data/_valuecount.pyx because it changed.\nCompiling Orange/data/_variable.pyx because it changed.\nCompiling Orange/distance/_distance.pyx because it changed.\nCompiling Orange/preprocess/_discretize.pyx because it changed.\nCompiling Orange/preprocess/_relieff.pyx because it changed.\nCompiling Orange/projection/_som.pyx because it changed.\n[1/9] Cythonizing Orange/classification/_tree_scorers.pyx\n[2/9] Cythonizing Orange/data/_contingency.pyx\n[3/9] Cythonizing Orange/data/_io.pyx\n[4/9] Cythonizing Orange/data/_valuecount.pyx\n[5/9] Cythonizing Orange/data/_variable.pyx\n[6/9] Cythonizing Orange/distance/_distance.pyx\n[7/9] Cythonizing Orange/preprocess/_discretize.pyx\n[8/9] Cythonizing Orange/preprocess/_relieff.pyx\n[9/9] Cythonizing Orange/projection/_som.pyx\nbuilding 'Orange.classification._tree_scorers' extension\ncreating build\ncreating build/temp.linux-x86_64-3.7\ncreating build/temp.linux-x86_64-3.7/Orange\ncreating build/temp.linux-x86_64-3.7/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o\ncreating build/lib.linux-x86_64-3.7\ncreating build/lib.linux-x86_64-3.7/Orange\ncreating build/lib.linux-x86_64-3.7/Orange/classification\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-3.7/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_contingency.c -o build/temp.linux-x86_64-3.7/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-3.7/Orange/data\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_io.c -o build/temp.linux-x86_64-3.7/Orange/data/_io.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_variable.c -o build/temp.linux-x86_64-3.7/Orange/data/_variable.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-3.7/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/distance/_distance.c -o build/temp.linux-x86_64-3.7/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-3.7/Orange/distance\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-3.7/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/projection/_som.c -o build/temp.linux-x86_64-3.7/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-3.7/Orange/projection\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.classification._simple_tree' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-3.7/Orange/widgets\ncreating build/temp.linux-x86_64-3.7/Orange/widgets/utils\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-3.7/Orange/widgets\ncreating build/lib.linux-x86_64-3.7/Orange/widgets/utils\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\nrunning develop\nrunning egg_info\ncreating Orange3.egg-info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+84acb93 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2\nProcessing dependencies for Orange3==3.35.0.dev0+84acb93\nSearching for xlsxwriter\nReading https://pypi.org/simple/xlsxwriter/\nDownloading https://files.pythonhosted.org/packages/a7/ea/53d1fe468e63e092cf16e2c18d16f50c29851242f9dd12d6a66e0d7f0d02/XlsxWriter-3.2.0-py3-none-any.whl#sha256=ecfd5405b3e0e228219bcaf24c2ca0915e012ca9464a14048021d21a995d490e\nBest match: XlsxWriter 3.2.0\nProcessing XlsxWriter-3.2.0-py3-none-any.whl\nInstalling XlsxWriter-3.2.0-py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages\nAdding XlsxWriter 3.2.0 to easy-install.pth file\nInstalling vba_extract.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/XlsxWriter-3.2.0-py3.7.egg\nSearching for xlrd>=1.2.0\nReading https://pypi.org/simple/xlrd/\nDownloading https://files.pythonhosted.org/packages/a6/0c/c2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64/xlrd-2.0.1-py2.py3-none-any.whl#sha256=6a33ee89877bd9abc1158129f6e94be74e2679636b8a205b43b85206c3f0bbdd\nBest match: xlrd 2.0.1\nProcessing xlrd-2.0.1-py2.py3-none-any.whl\nInstalling xlrd-2.0.1-py2.py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages\nAdding xlrd 2.0.1 to easy-install.pth file\nInstalling runxlrd.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/xlrd-2.0.1-py3.7.egg\nSearching for serverfiles\nReading https://pypi.org/simple/serverfiles/\nDownloading https://files.pythonhosted.org/packages/33/36/794fe1c4ed29b0f56a26d72e956baf0285d8fe9e29faf36797a28a8ad45b/serverfiles-0.3.1.tar.gz#sha256=5e10fc32e758791e3735bc08bce2ed4702a83b1e45ab96c5d59cc8aeecfbebe1\nBest match: serverfiles 0.3.1\nProcessing serverfiles-0.3.1.tar.gz\nWriting /tmp/easy_install-2scf2xk2/serverfiles-0.3.1/setup.cfg\nRunning serverfiles-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2scf2xk2/serverfiles-0.3.1/egg-dist-tmp-g4ua47jv\ncreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nExtracting serverfiles-0.3.1-py3.7.egg to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nSearching for scipy>=1.9\nReading https://pypi.org/simple/scipy/\nDownloading https://files.pythonhosted.org/packages/d9/7b/2b8ac283cf32465ed08bc20a83d559fe7b174a484781702ba8accea001d6/scipy-1.15.0.tar.gz#sha256=300742e2cc94e36a2880ebe464a1c8b4352a7b0f3e36ec3d2ac006cdbe0219ac\nBest match: scipy 1.15.0\nProcessing scipy-1.15.0.tar.gz\nVerifying Orange installation...\n❌ Orange verification failed\nPython 3.7 installation failed, trying Python 3.8...\nAttempting installation with Python 3.8...\nrunning build_ext\nbuilding 'Orange.classification._tree_scorers' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_contingency.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/data\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_io.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_io.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_variable.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/distance/_distance.c -o build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/projection/_som.c -o build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.classification._simple_tree' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\nrunning develop\nrunning egg_info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.35.0.dev0+84acb93 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2\nProcessing dependencies for Orange3==3.35.0.dev0+84acb93\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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for xlrd==2.0.1\nBest match: xlrd 2.0.1\nAdding xlrd 2.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for setuptools==75.3.0\nBest match: setuptools 75.3.0\nAdding setuptools 75.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for serverfiles==0.3.1\nBest match: serverfiles 0.3.1\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for scipy==1.10.1\nBest match: scipy 1.10.1\nAdding scipy 1.10.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for scikit-learn==1.1.3\nBest match: scikit-learn 1.1.3\nAdding scikit-learn 1.1.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for requests==2.32.3\nBest match: requests 2.32.3\nAdding requests 2.32.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for qtconsole==5.6.1\nBest match: qtconsole 5.6.1\nAdding qtconsole 5.6.1 to easy-install.pth file\nInstalling jupyter-qtconsole script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for PyYAML==6.0.2\nBest match: PyYAML 6.0.2\nAdding PyYAML 6.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for python-louvain==0.16\nBest match: python-louvain 0.16\nAdding python-louvain 0.16 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pyqtgraph==0.13.3\nBest match: pyqtgraph 0.13.3\nAdding pyqtgraph 0.13.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pygments==2.19.1\nBest match: pygments 2.19.1\nAdding pygments 2.19.1 to easy-install.pth file\nInstalling pygmentize script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pip==24.3.1\nBest match: pip 24.3.1\nAdding pip 24.3.1 to easy-install.pth file\nInstalling pip script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pandas==2.0.3\nBest match: pandas 2.0.3\nAdding pandas 2.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for orange-widget-base==4.22.0\nBest match: orange-widget-base 4.22.0\nAdding orange-widget-base 4.22.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for orange-canvas-core==0.1.35\nBest match: orange-canvas-core 0.1.35\nAdding orange-canvas-core 0.1.35 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for openpyxl==3.1.5\nBest match: openpyxl 3.1.5\nAdding openpyxl 3.1.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for openTSNE==1.0.1\nBest match: openTSNE 1.0.1\nAdding openTSNE 1.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for numpy==1.24.4\nBest match: numpy 1.24.4\nAdding numpy 1.24.4 to easy-install.pth file\nInstalling f2py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling f2py3.8 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for networkx==3.1\nBest match: networkx 3.1\nAdding networkx 3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for matplotlib==3.7.5\nBest match: matplotlib 3.7.5\nAdding matplotlib 3.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for keyrings.alt==5.0.2\nBest match: keyrings.alt 5.0.2\nAdding keyrings.alt 5.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for keyring==25.5.0\nBest match: keyring 25.5.0\nAdding keyring 25.5.0 to easy-install.pth file\nInstalling keyring script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for joblib==1.4.2\nBest match: joblib 1.4.2\nAdding joblib 1.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for httpx==0.28.1\nBest match: httpx 0.28.1\nAdding httpx 0.28.1 to easy-install.pth file\nInstalling httpx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for chardet==5.2.0\nBest match: chardet 5.2.0\nAdding chardet 5.2.0 to easy-install.pth file\nInstalling chardetect script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for Bottleneck==1.4.0\nBest match: Bottleneck 1.4.0\nAdding Bottleneck 1.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for baycomp==1.0.3\nBest match: baycomp 1.0.3\nAdding baycomp 1.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for AnyQt==0.2.0\nBest match: AnyQt 0.2.0\nAdding AnyQt 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for threadpoolctl==3.5.0\nBest match: threadpoolctl 3.5.0\nAdding threadpoolctl 3.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for certifi==2024.12.14\nBest match: certifi 2024.12.14\nAdding certifi 2024.12.14 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for urllib3==2.2.3\nBest match: urllib3 2.2.3\nAdding urllib3 2.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for idna==3.10\nBest match: idna 3.10\nAdding idna 3.10 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for charset-normalizer==3.4.1\nBest match: charset-normalizer 3.4.1\nAdding charset-normalizer 3.4.1 to easy-install.pth file\nInstalling normalizer script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for packaging==24.2\nBest match: packaging 24.2\nAdding packaging 24.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for QtPy==2.4.2\nBest match: QtPy 2.4.2\nAdding QtPy 2.4.2 to easy-install.pth file\nInstalling qtpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for ipykernel==6.29.5\nBest match: ipykernel 6.29.5\nAdding ipykernel 6.29.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jupyter-client==8.6.3\nBest match: jupyter-client 8.6.3\nAdding jupyter-client 8.6.3 to easy-install.pth file\nInstalling jupyter-kernel script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling jupyter-kernelspec script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling jupyter-run script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jupyter-core==5.7.2\nBest match: jupyter-core 5.7.2\nAdding jupyter-core 5.7.2 to easy-install.pth file\nInstalling jupyter script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling jupyter-migrate script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling jupyter-troubleshoot script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for traitlets==5.14.3\nBest match: traitlets 5.14.3\nAdding traitlets 5.14.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for tzdata==2024.2\nBest match: tzdata 2024.2\nAdding tzdata 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pytz==2024.2\nBest match: pytz 2024.2\nAdding pytz 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for python-dateutil==2.9.0.post0\nBest match: python-dateutil 2.9.0.post0\nAdding python-dateutil 2.9.0.post0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for typing-extensions==4.12.2\nBest match: typing-extensions 4.12.2\nAdding typing-extensions 4.12.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for qasync==0.27.1\nBest match: qasync 0.27.1\nAdding qasync 0.27.1 to easy-install.pth file\ndetected new path './setuptools/_vendor'\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for dictdiffer==0.9.0\nBest match: dictdiffer 0.9.0\nAdding dictdiffer 0.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for requests-cache==1.2.1\nBest match: requests-cache 1.2.1\nAdding requests-cache 1.2.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for commonmark==0.9.1\nBest match: commonmark 0.9.1\nAdding commonmark 0.9.1 to easy-install.pth file\nInstalling cmark script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for docutils==0.20.1\nBest match: docutils 0.20.1\nAdding docutils 0.20.1 to easy-install.pth file\nInstalling docutils script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for et-xmlfile==2.0.0\nBest match: et-xmlfile 2.0.0\nAdding et-xmlfile 2.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for importlib-resources==6.4.5\nBest match: importlib-resources 6.4.5\nAdding importlib-resources 6.4.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pyparsing==3.1.4\nBest match: pyparsing 3.1.4\nAdding pyparsing 3.1.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pillow==10.4.0\nBest match: pillow 10.4.0\nAdding pillow 10.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for kiwisolver==1.4.7\nBest match: kiwisolver 1.4.7\nAdding kiwisolver 1.4.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for fonttools==4.55.3\nBest match: fonttools 4.55.3\nAdding fonttools 4.55.3 to easy-install.pth file\nInstalling fonttools script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for cycler==0.12.1\nBest match: cycler 0.12.1\nAdding cycler 0.12.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for contourpy==1.1.1\nBest match: contourpy 1.1.1\nAdding contourpy 1.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jaraco.context==6.0.1\nBest match: jaraco.context 6.0.1\nAdding jaraco.context 6.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jaraco.classes==3.4.0\nBest match: jaraco.classes 3.4.0\nAdding jaraco.classes 3.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jeepney==0.8.0\nBest match: jeepney 0.8.0\nAdding jeepney 0.8.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for SecretStorage==3.3.3\nBest match: SecretStorage 3.3.3\nAdding SecretStorage 3.3.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for importlib-metadata==8.5.0\nBest match: importlib-metadata 8.5.0\nAdding importlib-metadata 8.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jaraco.functools==4.1.0\nBest match: jaraco.functools 4.1.0\nAdding jaraco.functools 4.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for httpcore==1.0.7\nBest match: httpcore 1.0.7\nAdding httpcore 1.0.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for anyio==4.5.2\nBest match: anyio 4.5.2\nAdding anyio 4.5.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for tornado==6.4.2\nBest match: tornado 6.4.2\nAdding tornado 6.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pyzmq==26.2.0\nBest match: pyzmq 26.2.0\nAdding pyzmq 26.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for psutil==6.1.1\nBest match: psutil 6.1.1\nAdding psutil 6.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for nest-asyncio==1.6.0\nBest match: nest-asyncio 1.6.0\nAdding nest-asyncio 1.6.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for matplotlib-inline==0.1.7\nBest match: matplotlib-inline 0.1.7\nAdding matplotlib-inline 0.1.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for ipython==8.12.3\nBest match: ipython 8.12.3\nAdding ipython 8.12.3 to easy-install.pth file\nInstalling ipython script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\nInstalling ipython3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for debugpy==1.8.11\nBest match: debugpy 1.8.11\nAdding debugpy 1.8.11 to easy-install.pth file\nInstalling debugpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for comm==0.2.2\nBest match: comm 0.2.2\nAdding comm 0.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for platformdirs==4.3.6\nBest match: platformdirs 4.3.6\nAdding platformdirs 4.3.6 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for six==1.17.0\nBest match: six 1.17.0\nAdding six 1.17.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for url-normalize==1.4.3\nBest match: url-normalize 1.4.3\nAdding url-normalize 1.4.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for cattrs==24.1.2\nBest match: cattrs 24.1.2\nAdding cattrs 24.1.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for attrs==24.3.0\nBest match: attrs 24.3.0\nAdding attrs 24.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for zipp==3.20.2\nBest match: zipp 3.20.2\nAdding zipp 3.20.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for backports.tarfile==1.2.0\nBest match: backports.tarfile 1.2.0\nbackports.tarfile 1.2.0 is already the active version in easy-install.pth\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for more-itertools==10.5.0\nBest match: more-itertools 10.5.0\nAdding more-itertools 10.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for cryptography==44.0.0\nBest match: cryptography 44.0.0\nAdding cryptography 44.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for h11==0.14.0\nBest match: h11 0.14.0\nAdding h11 0.14.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for exceptiongroup==1.2.2\nBest match: exceptiongroup 1.2.2\nAdding exceptiongroup 1.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for sniffio==1.3.1\nBest match: sniffio 1.3.1\nAdding sniffio 1.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pexpect==4.9.0\nBest match: pexpect 4.9.0\nAdding pexpect 4.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for stack-data==0.6.3\nBest match: stack-data 0.6.3\nAdding stack-data 0.6.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for prompt-toolkit==3.0.48\nBest match: prompt-toolkit 3.0.48\nAdding prompt-toolkit 3.0.48 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pickleshare==0.7.5\nBest match: pickleshare 0.7.5\nAdding pickleshare 0.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for jedi==0.19.2\nBest match: jedi 0.19.2\nAdding jedi 0.19.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for decorator==5.1.1\nBest match: decorator 5.1.1\nAdding decorator 5.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for backcall==0.2.0\nBest match: backcall 0.2.0\nAdding backcall 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for cffi==1.17.1\nBest match: cffi 1.17.1\nAdding cffi 1.17.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for ptyprocess==0.7.0\nBest match: ptyprocess 0.7.0\nAdding ptyprocess 0.7.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pure-eval==0.2.3\nBest match: pure-eval 0.2.3\nAdding pure-eval 0.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for asttokens==3.0.0\nBest match: asttokens 3.0.0\nAdding asttokens 3.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for executing==2.1.0\nBest match: executing 2.1.0\nAdding executing 2.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for wcwidth==0.2.13\nBest match: wcwidth 0.2.13\nAdding wcwidth 0.2.13 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for parso==0.8.4\nBest match: parso 0.8.4\nAdding parso 0.8.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nSearching for pycparser==2.22\nBest match: pycparser 2.22\nAdding pycparser 2.22 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages\nFinished processing dependencies for Orange3==3.35.0.dev0+84acb93\nVerifying Orange installation...\n✅ Orange installation successful!\nSuccessfully installed orange using Python 3.8\n",
    "setup_res_stderr": "Using CPython 3.7.9\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 18 packages in 99ms\nPrepared 18 packages in 2ms\nInstalled 18 packages in 167ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + importlib-metadata==6.7.0\n + iniconfig==2.0.0\n + numpy==1.17.5\n + packaging==24.0\n + pluggy==1.2.0\n + pyqt5==5.15.10\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.13.0\n + pyqtwebengine==5.15.6\n + pyqtwebengine-qt5==5.15.16\n + pytest==7.4.4\n + setuptools==59.8.0\n + tomli==2.0.1\n + typing-extensions==4.7.1\n + wheel==0.42.0\n + zipp==3.15.0\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n      depend on Python>=3.8,<3.12, we can conclude that all of:\n          scipy>=1.9.0,<=1.9.1\n          scipy>=1.10.0,<=1.10.1\n       cannot be used.\n      And because only the following versions of scipy are available:\n          scipy<=1.9.0\n          scipy==1.9.1\n          scipy==1.9.2\n          scipy==1.9.3\n          scipy==1.10.0\n          scipy==1.10.1\n          scipy==1.11.0\n          scipy==1.11.1\n          scipy==1.11.2\n          scipy==1.11.3\n          scipy==1.11.4\n          scipy==1.12.0\n          scipy==1.13.0\n          scipy==1.13.1\n          scipy==1.14.0\n          scipy==1.14.1\n          scipy==1.15.0\n      we can conclude that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.9.2,<=1.9.3 depends on Python>=3.8,\n      we can conclude that scipy>=1.9.2,<=1.9.3 cannot be used.\n      And because we know from (1) that all of:\n          scipy>=1.9.0,<1.9.2\n          scipy>1.9.3,<1.11.0\n       cannot be used, we can conclude that scipy>=1.9.0,<1.11.0 cannot be used.\n      And because scipy==1.11.0 was yanked (reason: License Violation), we can conclude that scipy>=1.9.0,<1.11.1 cannot be\n      used. (2)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.1,<=1.11.3 depends on\n      Python>=3.9,<3.13, we can conclude that scipy>=1.11.1,<=1.11.3 cannot be used.\n      And because we know from (2) that scipy>=1.9.0,<1.11.1 cannot be used, we can conclude that scipy>=1.9.0,<1.11.4 cannot\n      be used. (3)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.11.4,<=1.13.1 depends on\n      Python>=3.9, we can conclude that scipy>=1.11.4,<=1.13.1 cannot be used.\n      And because we know from (3) that scipy>=1.9.0,<1.11.4 cannot be used, we can conclude that scipy>=1.9.0,<1.14.0 cannot\n      be used. (4)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.8 and scipy>=1.14.0 depends on Python>=3.10, we can\n      conclude that scipy>=1.14.0 cannot be used.\n      And because we know from (4) that scipy>=1.9.0,<1.14.0 cannot be used, we can conclude that scipy>=1.9.0 cannot be used.\n      And because you require scipy>=1.9, we can conclude that your requirements are unsatisfiable.\n\n      hint: Pre-releases are available for `scipy` in the requested range (e.g., 1.15.0rc2), but pre-releases weren't enabled\n      (try: `--prerelease=allow`)\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and pyqtgraph>=0.13.1,<=0.13.3 depends on\n      Python>=3.8, we can conclude that pyqtgraph>=0.13.1,<=0.13.3 cannot be used.\n      And because only the following versions of pyqtgraph are available:\n          pyqtgraph<=0.13.1\n          pyqtgraph==0.13.2\n          pyqtgraph==0.13.3\n          pyqtgraph==0.13.4\n          pyqtgraph==0.13.5\n          pyqtgraph==0.13.6\n          pyqtgraph==0.13.7\n      we can conclude that pyqtgraph>=0.13.1,<0.13.4 cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.9 and pyqtgraph>=0.13.4 depends on Python>=3.9, we\n      can conclude that pyqtgraph>=0.13.4 cannot be used.\n      And because we know from (1) that pyqtgraph>=0.13.1,<0.13.4 cannot be used, we can conclude that pyqtgraph>=0.13.1 cannot\n      be used.\n      And because you require pyqtgraph>=0.13.1, we can conclude that your requirements are unsatisfiable.\nResolved 2 packages in 9ms\nInstalled 2 packages in 90ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nResolved 19 packages in 127ms\nInstalled 16 packages in 2.29s\n + catboost==1.2.7\n + cycler==0.11.0\n + fonttools==4.38.0\n + graphviz==0.20.1\n + kiwisolver==1.4.5\n + matplotlib==3.5.3\n + pandas==1.3.5\n + pillow==9.5.0\n + plotly==5.18.0\n + pyparsing==3.1.4\n + python-dateutil==2.9.0.post0\n + pytz==2024.2\n + scipy==1.7.3\n + six==1.17.0\n + tenacity==8.2.3\n + xgboost==1.6.2\nResolved 5 packages in 11ms\nInstalled 3 packages in 81ms\n + joblib==1.3.2\n + scikit-learn==1.0.2\n + threadpoolctl==3.1.0\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3427:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3427 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4883:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4883 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5629:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5629 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5750:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5750 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5756:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5756 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7217:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7217 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7874:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7874 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7934:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7934 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3863:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3863 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3862:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3862 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:4934:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4934 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4933:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4933 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4732:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4732 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4307:7: note: ‘__pyx_v_win_y’ was declared here\n 4307 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4721:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4721 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4306:7: note: ‘__pyx_v_win_x’ was declared here\n 4306 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5682:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5682 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5681:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5681 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3184:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3184 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2887:7: note: ‘__pyx_v_win_y’ was declared here\n 2887 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3173:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3173 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2886:7: note: ‘__pyx_v_win_x’ was declared here\n 2886 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3357:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3357 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  setuptools.SetuptoolsDeprecationWarning,\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.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_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\nerror: Couldn't find a setup script in /tmp/easy_install-wnqhuwkj/scipy-1.15.0.tar.gz\nUsing CPython 3.8.20\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 15 packages in 125ms\nPrepared 15 packages in 1ms\nInstalled 15 packages in 40ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + iniconfig==2.0.0\n + numpy==1.24.4\n + packaging==24.2\n + pluggy==1.5.0\n + pyqt5==5.15.11\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.15.0\n + pyqtwebengine==5.15.7\n + pyqtwebengine-qt5==5.15.16\n + pytest==8.3.4\n + setuptools==75.3.0\n + tomli==2.2.1\n + wheel==0.45.1\nResolved 59 packages in 105ms\nInstalled 55 packages in 131ms\n + anyio==4.5.2\n + backports-tarfile==1.2.0\n + baycomp==1.0.3\n + bottleneck==1.4.0\n + certifi==2024.12.14\n + cffi==1.17.1\n + chardet==5.2.0\n + charset-normalizer==3.4.1\n + contourpy==1.1.1\n + cryptography==44.0.0\n + cycler==0.12.1\n + et-xmlfile==2.0.0\n + fonttools==4.55.3\n + h11==0.14.0\n + httpcore==1.0.7\n + httpx==0.28.1\n + idna==3.10\n + importlib-metadata==8.5.0\n + importlib-resources==6.4.5\n + jaraco-classes==3.4.0\n + jaraco-context==6.0.1\n + jaraco-functools==4.1.0\n + jeepney==0.8.0\n + joblib==1.4.2\n + keyring==25.5.0\n + keyrings-alt==5.0.2\n + kiwisolver==1.4.7\n + matplotlib==3.7.5\n + more-itertools==10.5.0\n + networkx==3.1\n + openpyxl==3.1.5\n + opentsne==1.0.1\n + pandas==2.0.3\n + pillow==10.4.0\n + pip==24.3.1\n + pycparser==2.22\n + pyparsing==3.1.4\n + python-dateutil==2.9.0.post0\n + python-louvain==0.16\n + pytz==2024.2\n + pyyaml==6.0.2\n + requests==2.32.3\n + scikit-learn==1.1.3\n + scipy==1.10.1\n + secretstorage==3.3.3\n + serverfiles==0.3.1\n + six==1.17.0\n + sniffio==1.3.1\n + threadpoolctl==3.5.0\n + typing-extensions==4.12.2\n + tzdata==2024.2\n + urllib3==2.2.3\n + xlrd==2.0.1\n + xlsxwriter==3.2.0\n + zipp==3.20.2\nResolved 64 packages in 124ms\nInstalled 41 packages in 161ms\n + anyqt==0.2.0\n + asttokens==3.0.0\n + attrs==24.3.0\n + backcall==0.2.0\n + cattrs==24.1.2\n + comm==0.2.2\n + commonmark==0.9.1\n + debugpy==1.8.11\n + decorator==5.1.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + executing==2.1.0\n + ipykernel==6.29.5\n + ipython==8.12.3\n + jedi==0.19.2\n + jupyter-client==8.6.3\n + jupyter-core==5.7.2\n + matplotlib-inline==0.1.7\n + nest-asyncio==1.6.0\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + parso==0.8.4\n + pexpect==4.9.0\n + pickleshare==0.7.5\n + platformdirs==4.3.6\n + prompt-toolkit==3.0.48\n + psutil==6.1.1\n + ptyprocess==0.7.0\n + pure-eval==0.2.3\n + pygments==2.19.1\n + pyqtgraph==0.13.3\n + pyzmq==26.2.0\n + qasync==0.27.1\n + qtconsole==5.6.1\n + qtpy==2.4.2\n + requests-cache==1.2.1\n + stack-data==0.6.3\n + tornado==6.4.2\n + traitlets==5.14.3\n + url-normalize==1.4.3\n + wcwidth==0.2.13\nResolved 2 packages in 2ms\nInstalled 2 packages in 4ms\n + psycopg2==2.9.10\n + pymssql==2.3.2\nResolved 23 packages in 63ms\nInstalled 6 packages in 493ms\n + catboost==1.2.7\n + graphviz==0.20.3\n + nvidia-nccl-cu12==2.24.3\n + plotly==5.24.1\n + tenacity==9.0.0\n + xgboost==2.1.3\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3427:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3427 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4883:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4883 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5629:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5629 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5750:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5750 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5756:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5756 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7217:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7217 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7874:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7874 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7934:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7934 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3863:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3863 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3862:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3862 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:4934:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4934 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4933:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4933 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5682:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5682 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5681:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5681 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3184:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3184 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2887:7: note: ‘__pyx_v_win_y’ was declared here\n 2887 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3173:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3173 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_22, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2886:7: note: ‘__pyx_v_win_x’ was declared here\n 2886 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3357:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3357 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4732:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4732 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4307:7: note: ‘__pyx_v_win_y’ was declared here\n 4307 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4721:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4721 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_26, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4306:7: note: ‘__pyx_v_win_x’ was declared here\n 4306 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` and ``easy_install``.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://github.com/pypa/setuptools/issues/917 for details.\n        ********************************************************************************\n\n!!\n  easy_install.initialize_options(self)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2/.venv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` directly.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\n        ********************************************************************************\n\n!!\n  self.initialize_options()\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n",
    "new_commit_res_code": 1,
    "new_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 29 items\n\nr2e_tests/test_1.py sss..............F...........                        [100%]\n\n=================================== FAILURES ===================================\n_____________________ TestOWConcatenate.test_minimum_size ______________________\n\nself = <r2e_tests.test_1.TestOWConcatenate testMethod=test_minimum_size>\n\n    def test_minimum_size(self):\n        widget = getattr(self, \"widget\", None)\n        if widget is None:\n            self.skipTest(\"minimum size not tested as .widget was not set\")\n>       self.check_minimum_size(widget)\n\n.venv/lib/python3.8/site-packages/orangewidget/tests/base.py:242: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.venv/lib/python3.8/site-packages/orangewidget/tests/base.py:615: in check_minimum_size\n    self.assertLess(min_size.width(), 800)\nE   AssertionError: 1010 not less than 800\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_different_number_decimals\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_disable_merging_on_primary\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_intersect\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_union_duplicated_names\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_dont_ignore_compute_value\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_dumb_tables\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_duplicated_id_column\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_explicit_closing\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_part_intersection\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_part_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_unique_vars\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_ignore_compute_value\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_image_export\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_no_input\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_same_var_name\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_single_input\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_singleclass_source_class\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_source\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_source_ignore_compute_value\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_two_inputs_intersection\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_two_inputs_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_type_compatibility\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_unconditional_commit_on_new_signal\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\nFAILED r2e_tests/test_1.py::TestOWConcatenate::test_minimum_size - AssertionE...\n=================== 1 failed, 25 passed, 3 skipped in 5.36s ====================\nWidgets left: 0    Max widgets: 1690 \n\n",
    "new_commit_res_stderr": "",
    "old_commit_res_code": 1,
    "old_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_84acb936f40a40a1f21775becc5566902b8fa4d2\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 29 items\n\nr2e_tests/test_1.py sss..............F......F....                        [100%]\n\n=================================== FAILURES ===================================\n_____________________ TestOWConcatenate.test_minimum_size ______________________\n\nself = <r2e_tests.test_1.TestOWConcatenate testMethod=test_minimum_size>\n\n    def test_minimum_size(self):\n        widget = getattr(self, \"widget\", None)\n        if widget is None:\n            self.skipTest(\"minimum size not tested as .widget was not set\")\n>       self.check_minimum_size(widget)\n\n.venv/lib/python3.8/site-packages/orangewidget/tests/base.py:242: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n.venv/lib/python3.8/site-packages/orangewidget/tests/base.py:615: in check_minimum_size\n    self.assertLess(min_size.width(), 800)\nE   AssertionError: 1010 not less than 800\n______________ TestOWConcatenate.test_source_ignore_compute_value ______________\n\nself = <r2e_tests.test_1.TestOWConcatenate testMethod=test_source_ignore_compute_value>\n\n    def test_source_ignore_compute_value(self):\n        \"\"\"Test source variable correct also when ignore_compute_value on\"\"\"\n        self.send_signal(self.widget.Inputs.additional_data, self.iris, 0)\n        self.send_signal(self.widget.Inputs.additional_data, self.titanic, 1)\n        outputb = self.get_output(self.widget.Outputs.data)\n        outvarsb = outputb.domain.variables\n    \n        self.widget.controls.append_source_column.toggle()\n        self.widget.controls.ignore_compute_value.toggle()  # on\n        source = self.get_source_var(outvarsb)\n        output = self.get_output(self.widget.Outputs.data)\n        data = output.transform(Domain([source]))\n>       self.assertTupleEqual((\"iris\", \"titanic\"), source.values)\nE       AssertionError: Tuples differ: ('iris', 'titanic') != ('untitled (0)', 'untitled (1)')\nE       \nE       First differing element 0:\nE       'iris'\nE       'untitled (0)'\nE       \nE       - ('iris', 'titanic')\nE       + ('untitled (0)', 'untitled (1)')\n\nr2e_tests/test_1.py:118: AssertionError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_different_number_decimals\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_disable_merging_on_primary\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_intersect\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_domain_union_duplicated_names\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_dont_ignore_compute_value\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_dumb_tables\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_duplicated_id_column\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_explicit_closing\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_part_intersection\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_part_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_get_unique_vars\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_ignore_compute_value\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_image_export\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_msg_base_class\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_no_input\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_same_var_name\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_single_input\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_singleclass_source_class\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_source\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_two_inputs_intersection\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_two_inputs_union\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_type_compatibility\nPASSED r2e_tests/test_1.py::TestOWConcatenate::test_unconditional_commit_on_new_signal\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:244: image exporting not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:238: minimum size not tested as .widget was not set\nSKIPPED [1] .venv/lib/python3.8/site-packages/orangewidget/tests/base.py:250: msg base class not tested as .widget was not set\nFAILED r2e_tests/test_1.py::TestOWConcatenate::test_minimum_size - AssertionE...\nFAILED r2e_tests/test_1.py::TestOWConcatenate::test_source_ignore_compute_value\n=================== 2 failed, 24 passed, 3 skipped in 3.43s ====================\nWidgets left: 0    Max widgets: 1690 \n\n",
    "old_commit_res_stderr": ""
}
Orange/widgets/data/owconcatenate.py Orange/widgets/data/tests/test_owconcatenate.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title:** Concatenated Tables Lose Original Names When Ignoring Compute Values

**Description:**
When concatenating multiple data tables while ignoring compute values, the original table names are not preserved. Instead, the resulting concatenated table assigns generic names like "untitled (0)" and "untitled (1)" to the source variables. This behavior makes it difficult to identify the origin of the data, leading to confusion and potential errors in downstream processes that rely on the original table names.

**Example Code:**
```python
# Assume iris and titanic are existing data tables with their respective names
concatenated_data = concatenate_tables(tables=[iris, titanic], ignore_compute_value=True)
source = concatenated_data.get_source_variables()
print(source.values)  # Expected: ('iris', 'titanic')
```

**Expected Behavior:**
The concatenated data table should retain the original names of the input tables. In this example, `source.values` should output `('iris', 'titanic')`, accurately reflecting the names of the concatenated tables.

**Actual Behavior:**
The source variables are assigned generic names instead of the original table names. In the example, `source.values` outputs `('untitled (0)', 'untitled (1)')`, losing the meaningful names of the input tables.

[/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/owconcatenate.py
"""
Concatenate
===========

Concatenate (append) two or more datasets.

"""
from collections import OrderedDict, namedtuple, defaultdict
from functools import reduce
from itertools import chain, count
from typing import List, Optional, Sequence

import numpy as np
from AnyQt.QtWidgets import QFormLayout
from AnyQt.QtCore import Qt

import Orange.data
from Orange.data.util import get_unique_names_duplicates, get_unique_names
from Orange.util import flatten
from Orange.widgets import widget, gui, settings
from Orange.widgets.settings import Setting
from Orange.widgets.utils.annotated_data import add_columns
from Orange.widgets.utils.sql import check_sql_input, check_sql_input_sequence
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.widget import Input, MultiInput, Output, Msg


class OWConcatenate(widget.OWWidget):
    name = "Concatenate"
    description = "Concatenate (append) two or more datasets."
    category = "Transform"
    priority = 1111
    icon = "icons/Concatenate.svg"
    keywords = ["append", "join", "extend"]

    class Inputs:
        primary_data = Input("Primary Data", Orange.data.Table)
        additional_data = MultiInput(
            "Additional Data", Orange.data.Table, default=True
        )

    class Outputs:
        data = Output("Data", Orange.data.Table)

    class Error(widget.OWWidget.Error):
        bow_concatenation = Msg("Inputs must be of the same type.")

    class Warning(widget.OWWidget.Warning):
        renamed_variables = Msg(
            "Variables with duplicated names have been renamed.")

    merge_type: int
    append_source_column: bool
    source_column_role: int
    source_attr_name: str

    #: Domain merging operations
    MergeUnion, MergeIntersection = 0, 1

    #: Domain role of the "Source ID" attribute.
    ClassRole, AttributeRole, MetaRole = 0, 1, 2

    #: Selected domain merging operation
    merge_type = settings.Setting(0)
    #: Append source ID column
    append_source_column = settings.Setting(False)
    #: Selected "Source ID" domain role
    source_column_role = settings.Setting(0)
    #: User specified name for the "Source ID" attr
    source_attr_name = settings.Setting("Source ID")

    ignore_compute_value = settings.Setting(False)

    want_main_area = False
    resizing_enabled = False

    domain_opts = ("all variables that appear in input tables",
                   "only variables that appear in all tables")

    id_roles = ("Class attribute", "Attribute", "Meta attribute")

    auto_commit = Setting(True)

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

        self.primary_data = None
        self._more_data_input: List[Optional[Orange.data.Table]] = []

        self.mergebox = gui.vBox(self.controlArea, "Variable Merging")
        box = gui.radioButtons(
            self.mergebox, self, "merge_type",
            callback=self._merge_type_changed)

        gui.widgetLabel(
            box, self.tr("When there is no primary table, " +
                         "the output should contain:"))

        for opts in self.domain_opts:
            gui.appendRadioButton(box, self.tr(opts))

        gui.separator(box)

        label = gui.widgetLabel(
            box,
            self.tr("The resulting table will have a class only if there " +
                    "is no conflict between input classes."))
        label.setWordWrap(True)

        gui.separator(box)
        gui.checkBox(
            box, self, "ignore_compute_value",
            "Treat variables with the same name as the same variable,\n"
            "even if they are computed using different formulae.",
            callback=self.commit.deferred, stateWhenDisabled=False)
        ###
        box = gui.vBox(
            self.controlArea, self.tr("Source Identification"),
        )

        cb = gui.checkBox(
            box, self, "append_source_column",
            self.tr("Append data source IDs"),
            callback=self._source_changed)

        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))

        form = QFormLayout(
            spacing=8,
            labelAlignment=Qt.AlignLeft,
            formAlignment=Qt.AlignLeft,
            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow
        )

        form.addRow(
            self.tr("Feature name:"),
            gui.lineEdit(ibox, self, "source_attr_name", valueType=str,
                         callback=self._source_changed))

        form.addRow(
            self.tr("Place:"),
            gui.comboBox(ibox, self, "source_column_role", items=self.id_roles,
                         callback=self._source_changed))

        ibox.layout().addLayout(form)
        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()
        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)

        cb.disables.append(ibox)
        cb.makeConsistent()

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

    @Inputs.primary_data
    @check_sql_input
    def set_primary_data(self, data):
        self.primary_data = data

    @Inputs.additional_data
    @check_sql_input_sequence
    def set_more_data(self, index, data):
        self._more_data_input[index] = data

    @Inputs.additional_data.insert
    @check_sql_input_sequence
    def insert_more_data(self, index, data):
        self._more_data_input.insert(index, data)

    @Inputs.additional_data.remove
    def remove_more_data(self, index):
        self._more_data_input.pop(index)

    @property
    def more_data(self) -> Sequence[Orange.data.Table]:
        return [t for t in self._more_data_input if t is not None]

    def handleNewSignals(self):
        self.mergebox.setDisabled(self.primary_data is not None)
        if self.incompatible_types():
            self.Error.bow_concatenation()
        else:
            self.Error.bow_concatenation.clear()
            self.commit.now()

    def incompatible_types(self):
        types_ = set()
        if self.primary_data is not None:
            types_.add(type(self.primary_data))
        for table in self.more_data:
            types_.add(type(table))
        if len(types_) > 1:
            return True

        return False

    @gui.deferred
    def commit(self):
        self.Warning.renamed_variables.clear()
        tables, domain, source_var = [], None, None
        if self.primary_data is not None:
            tables = [self.primary_data] + list(self.more_data)
            domain = self.primary_data.domain
        elif self.more_data:
            if self.ignore_compute_value:
                tables = self._dumb_tables()
            else:
                tables = self.more_data
            domains = [table.domain for table in tables]
            domain = self.merge_domains(domains)

        if tables and self.append_source_column:
            assert domain is not None
            names = [getattr(t, 'name', '') for t in tables]
            if len(names) != len(set(names)):
                names = ['{} ({})'.format(name, i)
                         for i, name in enumerate(names)]
            source_var = Orange.data.DiscreteVariable(
                get_unique_names(domain, self.source_attr_name),
                values=names
            )
            places = ["class_vars", "attributes", "metas"]
            domain = add_columns(
                domain,
                **{places[self.source_column_role]: (source_var,)})

        tables = [table.transform(domain) for table in tables]
        if tables:
            data = type(tables[0]).concatenate(tables)
            if source_var:
                source_ids = np.array(list(flatten(
                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))
                parts = [data.Y, data.X, data.metas]
                with data.unlocked(parts[self.source_column_role]):
                    data[:, source_var] = source_ids
        else:
            data = None

        self.Outputs.data.send(data)

    def _dumb_tables(self):
        def enumerated_parts(domain):
            return enumerate((domain.attributes, domain.class_vars, domain.metas))

        compute_value_groups = defaultdict(set)
        for table in self.more_data:
            for part, part_vars in enumerated_parts(table.domain):
                for var in part_vars:
                    desc = (var.name, type(var), part)
                    compute_value_groups[desc].add(var.compute_value)
        to_dumbify = {desc
                      for desc, compute_values in compute_value_groups.items()
                      if len(compute_values) > 1}

        dumb_tables = []
        for table in self.more_data:
            dumb_domain = Orange.data.Domain(
                *[[var.copy(compute_value=None)
                   if (var.name, type(var), part) in to_dumbify
                   else var
                   for var in part_vars]
                  for part, part_vars in enumerated_parts(table.domain)])
            dumb_table = type(table).from_numpy(
                dumb_domain,
                table.X, table.Y, table.metas, table.W,
                table.attributes, table.ids)
            dumb_tables.append(dumb_table)
        return dumb_tables

    def _merge_type_changed(self, ):
        if self.incompatible_types():
            self.Error.bow_concatenation()
        else:
            self.Error.bow_concatenation.clear()
            if self.primary_data is None and self.more_data:
                self.commit.deferred()

    def _source_changed(self):
        self.commit.deferred()

    def send_report(self):
        items = OrderedDict()
        if self.primary_data is not None:
            items["Domain"] = "from primary data"
        else:
            items["Domain"] = self.tr(self.domain_opts[self.merge_type]).lower()
        if self.append_source_column:
            items["Source data ID"] = "{} (as {})".format(
                self.source_attr_name,
                self.id_roles[self.source_column_role].lower())
        self.report_items(items)

    def merge_domains(self, domains):
        def fix_names(part):
            for i, attr, name in zip(count(), part, name_iter):
                if attr.name != name:
                    part[i] = attr.renamed(name)
                    self.Warning.renamed_variables()

        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \
            else set.intersection
        parts = [self._get_part(domains, oper, part)
                 for part in ("attributes", "class_vars", "metas")]
        all_names = [var.name for var in chain(*parts)]
        name_iter = iter(get_unique_names_duplicates(all_names))
        for part in parts:
            fix_names(part)
        domain = Orange.data.Domain(*parts)
        return domain

    @classmethod
    def _get_part(cls, domains, oper, part):
        # keep the order of variables: first compute union or intersections as
        # sets, then iterate through chained parts
        vars_by_domain = [getattr(domain, part) for domain in domains]
        valid = reduce(oper, map(set, vars_by_domain))
        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]
        return cls._unique_vars(valid_vars)

    @staticmethod
    def _unique_vars(seq: List[Orange.data.Variable]):
        AttrDesc = namedtuple(
            "AttrDesc",
            ("template", "original", "values", "number_of_decimals"))

        attrs = {}
        for el in seq:
            desc = attrs.get(el)
            if desc is None:
                attrs[el] = AttrDesc(el, True,
                                     el.is_discrete and el.values,
                                     el.is_continuous and el.number_of_decimals)
                continue
            if desc.template.is_discrete:
                sattr_values = set(desc.values)
                # don't use sets: keep the order
                missing_values = tuple(
                    val for val in el.values if val not in sattr_values
                )
                if missing_values:
                    attrs[el] = attrs[el]._replace(
                        original=False,
                        values=desc.values + missing_values)
            elif desc.template.is_continuous:
                if el.number_of_decimals > desc.number_of_decimals:
                    attrs[el] = attrs[el]._replace(
                        original=False,
                        number_of_decimals=el.number_of_decimals)

        new_attrs = []
        for desc in attrs.values():
            attr = desc.template
            if desc.original:
                new_attr = attr
            elif desc.template.is_discrete:
                new_attr = attr.copy()
                for val in desc.values[len(attr.values):]:
                    new_attr.add_value(val)
            else:
                assert desc.template.is_continuous
                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)
            new_attrs.append(new_attr)
        return new_attrs


if __name__ == "__main__":  # pragma: no cover
    WidgetPreview(OWConcatenate).run(
        insert_more_data=[(0, Orange.data.Table("iris")),
                          (1, Orange.data.Table("zoo"))])

```
--- 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:** Concatenated Tables Lose Original Names When Ignoring Compute Values

**Description:**
When concatenating multiple data tables while ignoring compute values, the original table names are not preserved. Instead, the resulting concatenated table assigns generic names like "untitled (0)" and "untitled (1)" to the source variables. This behavior makes it difficult to identify the origin of the data, leading to confusion and potential errors in downstream processes that rely on the original table names.

**Example Code:**
```python
# Assume iris and titanic are existing data tables with their respective names
concatenated_data = concatenate_tables(tables=[iris, titanic], ignore_compute_value=True)
source = concatenated_data.get_source_variables()
print(source.values)  # Expected: ('iris', 'titanic')
```

**Expected Behavior:**
The concatenated data table should retain the original names of the input tables. In this example, `source.values` should output `('iris', 'titanic')`, accurately reflecting the names of the concatenated tables.

**Actual Behavior:**
The source variables are assigned generic names instead of the original table names. In the example, `source.values` outputs `('untitled (0)', 'untitled (1)')`, losing the meaningful names of the input tables.

[/ISSUE]
{
    "TestOWConcatenate.test_different_number_decimals": "PASSED",
    "TestOWConcatenate.test_disable_merging_on_primary": "PASSED",
    "TestOWConcatenate.test_domain_intersect": "PASSED",
    "TestOWConcatenate.test_domain_union": "PASSED",
    "TestOWConcatenate.test_domain_union_duplicated_names": "PASSED",
    "TestOWConcatenate.test_dont_ignore_compute_value": "PASSED",
    "TestOWConcatenate.test_dumb_tables": "PASSED",
    "TestOWConcatenate.test_duplicated_id_column": "PASSED",
    "TestOWConcatenate.test_explicit_closing": "PASSED",
    "TestOWConcatenate.test_get_part_intersection": "PASSED",
    "TestOWConcatenate.test_get_part_union": "PASSED",
    "TestOWConcatenate.test_get_unique_vars": "PASSED",
    "TestOWConcatenate.test_ignore_compute_value": "PASSED",
    "TestOWConcatenate.test_image_export": "PASSED",
    "TestOWConcatenate.test_msg_base_class": "PASSED",
    "TestOWConcatenate.test_no_input": "PASSED",
    "TestOWConcatenate.test_same_var_name": "PASSED",
    "TestOWConcatenate.test_single_input": "PASSED",
    "TestOWConcatenate.test_singleclass_source_class": "PASSED",
    "TestOWConcatenate.test_source": "PASSED",
    "TestOWConcatenate.test_source_ignore_compute_value": "PASSED",
    "TestOWConcatenate.test_two_inputs_intersection": "PASSED",
    "TestOWConcatenate.test_two_inputs_union": "PASSED",
    "TestOWConcatenate.test_type_compatibility": "PASSED",
    "TestOWConcatenate.test_unconditional_commit_on_new_signal": "PASSED",
    "TestOWConcatenate.test_minimum_size": "FAILED"
}
diff --git a/Orange/widgets/data/owconcatenate.py b/Orange/widgets/data/owconcatenate.py
index 4904a33ea..8c3958923 100644
--- a/Orange/widgets/data/owconcatenate.py
+++ b/Orange/widgets/data/owconcatenate.py
@@ -263,6 +263,7 @@ class OWConcatenate(widget.OWWidget):
                 dumb_domain,
                 table.X, table.Y, table.metas, table.W,
                 table.attributes, table.ids)
+            dumb_table.name = table.name
             dumb_tables.append(dumb_table)
         return dumb_tables
 

{"Orange/widgets/data/owconcatenate.py": "\"\"\"\nConcatenate\n===========\n\nConcatenate (append) two or more datasets.\n\n\"\"\"\nfrom collections import OrderedDict, namedtuple, defaultdict\nfrom functools import reduce\nfrom itertools import chain, count\nfrom typing import List, Optional, Sequence\n\nimport numpy as np\nfrom AnyQt.QtWidgets import QFormLayout\nfrom AnyQt.QtCore import Qt\n\nimport Orange.data\nfrom Orange.data.util import get_unique_names_duplicates, get_unique_names\nfrom Orange.util import flatten\nfrom Orange.widgets import widget, gui, settings\nfrom Orange.widgets.settings import Setting\nfrom Orange.widgets.utils.annotated_data import add_columns\nfrom Orange.widgets.utils.sql import check_sql_input, check_sql_input_sequence\nfrom Orange.widgets.utils.widgetpreview import WidgetPreview\nfrom Orange.widgets.widget import Input, MultiInput, Output, Msg\n\n\nclass OWConcatenate(widget.OWWidget):\n    name = \"Concatenate\"\n    description = \"Concatenate (append) two or more datasets.\"\n    category = \"Transform\"\n    priority = 1111\n    icon = \"icons/Concatenate.svg\"\n    keywords = [\"append\", \"join\", \"extend\"]\n\n    class Inputs:\n        primary_data = Input(\"Primary Data\", Orange.data.Table)\n        additional_data = MultiInput(\n            \"Additional Data\", Orange.data.Table, default=True\n        )\n\n    class Outputs:\n        data = Output(\"Data\", Orange.data.Table)\n\n    class Error(widget.OWWidget.Error):\n        bow_concatenation = Msg(\"Inputs must be of the same type.\")\n\n    class Warning(widget.OWWidget.Warning):\n        renamed_variables = Msg(\n            \"Variables with duplicated names have been renamed.\")\n\n    merge_type: int\n    append_source_column: bool\n    source_column_role: int\n    source_attr_name: str\n\n    #: Domain merging operations\n    MergeUnion, MergeIntersection = 0, 1\n\n    #: Domain role of the \"Source ID\" attribute.\n    ClassRole, AttributeRole, MetaRole = 0, 1, 2\n\n    #: Selected domain merging operation\n    merge_type = settings.Setting(0)\n    #: Append source ID column\n    append_source_column = settings.Setting(False)\n    #: Selected \"Source ID\" domain role\n    source_column_role = settings.Setting(0)\n    #: User specified name for the \"Source ID\" attr\n    source_attr_name = settings.Setting(\"Source ID\")\n\n    ignore_compute_value = settings.Setting(False)\n\n    want_main_area = False\n    resizing_enabled = False\n\n    domain_opts = (\"all variables that appear in input tables\",\n                   \"only variables that appear in all tables\")\n\n    id_roles = (\"Class attribute\", \"Attribute\", \"Meta attribute\")\n\n    auto_commit = Setting(True)\n\n    def __init__(self):\n        super().__init__()\n\n        self.primary_data = None\n        self._more_data_input: List[Optional[Orange.data.Table]] = []\n\n        self.mergebox = gui.vBox(self.controlArea, \"Variable Merging\")\n        box = gui.radioButtons(\n            self.mergebox, self, \"merge_type\",\n            callback=self._merge_type_changed)\n\n        gui.widgetLabel(\n            box, self.tr(\"When there is no primary table, \" +\n                         \"the output should contain:\"))\n\n        for opts in self.domain_opts:\n            gui.appendRadioButton(box, self.tr(opts))\n\n        gui.separator(box)\n\n        label = gui.widgetLabel(\n            box,\n            self.tr(\"The resulting table will have a class only if there \" +\n                    \"is no conflict between input classes.\"))\n        label.setWordWrap(True)\n\n        gui.separator(box)\n        gui.checkBox(\n            box, self, \"ignore_compute_value\",\n            \"Treat variables with the same name as the same variable,\\n\"\n            \"even if they are computed using different formulae.\",\n            callback=self.commit.deferred, stateWhenDisabled=False)\n        ###\n        box = gui.vBox(\n            self.controlArea, self.tr(\"Source Identification\"),\n        )\n\n        cb = gui.checkBox(\n            box, self, \"append_source_column\",\n            self.tr(\"Append data source IDs\"),\n            callback=self._source_changed)\n\n        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))\n\n        form = QFormLayout(\n            spacing=8,\n            labelAlignment=Qt.AlignLeft,\n            formAlignment=Qt.AlignLeft,\n            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow\n        )\n\n        form.addRow(\n            self.tr(\"Feature name:\"),\n            gui.lineEdit(ibox, self, \"source_attr_name\", valueType=str,\n                         callback=self._source_changed))\n\n        form.addRow(\n            self.tr(\"Place:\"),\n            gui.comboBox(ibox, self, \"source_column_role\", items=self.id_roles,\n                         callback=self._source_changed))\n\n        ibox.layout().addLayout(form)\n        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()\n        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)\n\n        cb.disables.append(ibox)\n        cb.makeConsistent()\n\n        gui.auto_apply(self.buttonsArea, self, \"auto_commit\")\n\n    @Inputs.primary_data\n    @check_sql_input\n    def set_primary_data(self, data):\n        self.primary_data = data\n\n    @Inputs.additional_data\n    @check_sql_input_sequence\n    def set_more_data(self, index, data):\n        self._more_data_input[index] = data\n\n    @Inputs.additional_data.insert\n    @check_sql_input_sequence\n    def insert_more_data(self, index, data):\n        self._more_data_input.insert(index, data)\n\n    @Inputs.additional_data.remove\n    def remove_more_data(self, index):\n        self._more_data_input.pop(index)\n\n    @property\n    def more_data(self) -> Sequence[Orange.data.Table]:\n        return [t for t in self._more_data_input if t is not None]\n\n    def handleNewSignals(self):\n        self.mergebox.setDisabled(self.primary_data is not None)\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            self.commit.now()\n\n    def incompatible_types(self):\n        types_ = set()\n        if self.primary_data is not None:\n            types_.add(type(self.primary_data))\n        for table in self.more_data:\n            types_.add(type(table))\n        if len(types_) > 1:\n            return True\n\n        return False\n\n    @gui.deferred\n    def commit(self):\n        self.Warning.renamed_variables.clear()\n        tables, domain, source_var = [], None, None\n        if self.primary_data is not None:\n            tables = [self.primary_data] + list(self.more_data)\n            domain = self.primary_data.domain\n        elif self.more_data:\n            if self.ignore_compute_value:\n                tables = self._dumb_tables()\n            else:\n                tables = self.more_data\n            domains = [table.domain for table in tables]\n            domain = self.merge_domains(domains)\n\n        if tables and self.append_source_column:\n            assert domain is not None\n            names = [getattr(t, 'name', '') for t in tables]\n            if len(names) != len(set(names)):\n                names = ['{} ({})'.format(name, i)\n                         for i, name in enumerate(names)]\n            source_var = Orange.data.DiscreteVariable(\n                get_unique_names(domain, self.source_attr_name),\n                values=names\n            )\n            places = [\"class_vars\", \"attributes\", \"metas\"]\n            domain = add_columns(\n                domain,\n                **{places[self.source_column_role]: (source_var,)})\n\n        tables = [table.transform(domain) for table in tables]\n        if tables:\n            data = type(tables[0]).concatenate(tables)\n            if source_var:\n                source_ids = np.array(list(flatten(\n                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))\n                parts = [data.Y, data.X, data.metas]\n                with data.unlocked(parts[self.source_column_role]):\n                    data[:, source_var] = source_ids\n        else:\n            data = None\n\n        self.Outputs.data.send(data)\n\n    def _dumb_tables(self):\n        def enumerated_parts(domain):\n            return enumerate((domain.attributes, domain.class_vars, domain.metas))\n\n        compute_value_groups = defaultdict(set)\n        for table in self.more_data:\n            for part, part_vars in enumerated_parts(table.domain):\n                for var in part_vars:\n                    desc = (var.name, type(var), part)\n                    compute_value_groups[desc].add(var.compute_value)\n        to_dumbify = {desc\n                      for desc, compute_values in compute_value_groups.items()\n                      if len(compute_values) > 1}\n\n        dumb_tables = []\n        for table in self.more_data:\n            dumb_domain = Orange.data.Domain(\n                *[[var.copy(compute_value=None)\n                   if (var.name, type(var), part) in to_dumbify\n                   else var\n                   for var in part_vars]\n                  for part, part_vars in enumerated_parts(table.domain)])\n            dumb_table = type(table).from_numpy(\n                dumb_domain,\n                table.X, table.Y, table.metas, table.W,\n                table.attributes, table.ids)\n            dumb_tables.append(dumb_table)\n        return dumb_tables\n\n    def _merge_type_changed(self, ):\n        if self.incompatible_types():\n            self.Error.bow_concatenation()\n        else:\n            self.Error.bow_concatenation.clear()\n            if self.primary_data is None and self.more_data:\n                self.commit.deferred()\n\n    def _source_changed(self):\n        self.commit.deferred()\n\n    def send_report(self):\n        items = OrderedDict()\n        if self.primary_data is not None:\n            items[\"Domain\"] = \"from primary data\"\n        else:\n            items[\"Domain\"] = self.tr(self.domain_opts[self.merge_type]).lower()\n        if self.append_source_column:\n            items[\"Source data ID\"] = \"{} (as {})\".format(\n                self.source_attr_name,\n                self.id_roles[self.source_column_role].lower())\n        self.report_items(items)\n\n    def merge_domains(self, domains):\n        def fix_names(part):\n            for i, attr, name in zip(count(), part, name_iter):\n                if attr.name != name:\n                    part[i] = attr.renamed(name)\n                    self.Warning.renamed_variables()\n\n        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \\\n            else set.intersection\n        parts = [self._get_part(domains, oper, part)\n                 for part in (\"attributes\", \"class_vars\", \"metas\")]\n        all_names = [var.name for var in chain(*parts)]\n        name_iter = iter(get_unique_names_duplicates(all_names))\n        for part in parts:\n            fix_names(part)\n        domain = Orange.data.Domain(*parts)\n        return domain\n\n    @classmethod\n    def _get_part(cls, domains, oper, part):\n        # keep the order of variables: first compute union or intersections as\n        # sets, then iterate through chained parts\n        vars_by_domain = [getattr(domain, part) for domain in domains]\n        valid = reduce(oper, map(set, vars_by_domain))\n        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]\n        return cls._unique_vars(valid_vars)\n\n    @staticmethod\n    def _unique_vars(seq: List[Orange.data.Variable]):\n        AttrDesc = namedtuple(\n            \"AttrDesc\",\n            (\"template\", \"original\", \"values\", \"number_of_decimals\"))\n\n        attrs = {}\n        for el in seq:\n            desc = attrs.get(el)\n            if desc is None:\n                attrs[el] = AttrDesc(el, True,\n                                     el.is_discrete and el.values,\n                                     el.is_continuous and el.number_of_decimals)\n                continue\n            if desc.template.is_discrete:\n                sattr_values = set(desc.values)\n                # don't use sets: keep the order\n                missing_values = tuple(\n                    val for val in el.values if val not in sattr_values\n                )\n                if missing_values:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        values=desc.values + missing_values)\n            elif desc.template.is_continuous:\n                if el.number_of_decimals > desc.number_of_decimals:\n                    attrs[el] = attrs[el]._replace(\n                        original=False,\n                        number_of_decimals=el.number_of_decimals)\n\n        new_attrs = []\n        for desc in attrs.values():\n            attr = desc.template\n            if desc.original:\n                new_attr = attr\n            elif desc.template.is_discrete:\n                new_attr = attr.copy()\n                for val in desc.values[len(attr.values):]:\n                    new_attr.add_value(val)\n            else:\n                assert desc.template.is_continuous\n                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)\n            new_attrs.append(new_attr)\n        return new_attrs\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    WidgetPreview(OWConcatenate).run(\n        insert_more_data=[(0, Orange.data.Table(\"iris\")),\n                          (1, Orange.data.Table(\"zoo\"))])\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:** Concatenated Tables Lose Original Names When Ignoring Compute Values

**Description:**
When concatenating multiple data tables while ignoring compute values, the original table names are not preserved. Instead, the resulting concatenated table assigns generic names like "untitled (0)" and "untitled (1)" to the source variables. This behavior makes it difficult to identify the origin of the data, leading to confusion and potential errors in downstream processes that rely on the original table names.

**Example Code:**
```python
# Assume iris and titanic are existing data tables with their respective names
concatenated_data = concatenate_tables(tables=[iris, titanic], ignore_compute_value=True)
source = concatenated_data.get_source_variables()
print(source.values)  # Expected: ('iris', 'titanic')
```

**Expected Behavior:**
The concatenated data table should retain the original names of the input tables. In this example, `source.values` should output `('iris', 'titanic')`, accurately reflecting the names of the concatenated tables.

**Actual Behavior:**
The source variables are assigned generic names instead of the original table names. In the example, `source.values` outputs `('untitled (0)', 'untitled (1)')`, losing the meaningful names of the input tables.

[/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/owconcatenate.py
"""
Concatenate
===========

Concatenate (append) two or more datasets.

"""
from collections import OrderedDict, namedtuple, defaultdict
from functools import reduce
from itertools import chain, count
from typing import List, Optional, Sequence

import numpy as np
from AnyQt.QtWidgets import QFormLayout
from AnyQt.QtCore import Qt

import Orange.data
from Orange.data.util import get_unique_names_duplicates, get_unique_names
from Orange.util import flatten
from Orange.widgets import widget, gui, settings
from Orange.widgets.settings import Setting
from Orange.widgets.utils.annotated_data import add_columns
from Orange.widgets.utils.sql import check_sql_input, check_sql_input_sequence
from Orange.widgets.utils.widgetpreview import WidgetPreview
from Orange.widgets.widget import Input, MultiInput, Output, Msg


class OWConcatenate(widget.OWWidget):
    name = "Concatenate"
    description = "Concatenate (append) two or more datasets."
    category = "Transform"
    priority = 1111
    icon = "icons/Concatenate.svg"
    keywords = ["append", "join", "extend"]

    class Inputs:
        primary_data = Input("Primary Data", Orange.data.Table)
        additional_data = MultiInput(
            "Additional Data", Orange.data.Table, default=True
        )

    class Outputs:
        data = Output("Data", Orange.data.Table)

    class Error(widget.OWWidget.Error):
        bow_concatenation = Msg("Inputs must be of the same type.")

    class Warning(widget.OWWidget.Warning):
        renamed_variables = Msg(
            "Variables with duplicated names have been renamed.")

    merge_type: int
    append_source_column: bool
    source_column_role: int
    source_attr_name: str

    #: Domain merging operations
    MergeUnion, MergeIntersection = 0, 1

    #: Domain role of the "Source ID" attribute.
    ClassRole, AttributeRole, MetaRole = 0, 1, 2

    #: Selected domain merging operation
    merge_type = settings.Setting(0)
    #: Append source ID column
    append_source_column = settings.Setting(False)
    #: Selected "Source ID" domain role
    source_column_role = settings.Setting(0)
    #: User specified name for the "Source ID" attr
    source_attr_name = settings.Setting("Source ID")

    ignore_compute_value = settings.Setting(False)

    want_main_area = False
    resizing_enabled = False

    domain_opts = ("all variables that appear in input tables",
                   "only variables that appear in all tables")

    id_roles = ("Class attribute", "Attribute", "Meta attribute")

    auto_commit = Setting(True)

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

        self.primary_data = None
        self._more_data_input: List[Optional[Orange.data.Table]] = []

        self.mergebox = gui.vBox(self.controlArea, "Variable Merging")
        box = gui.radioButtons(
            self.mergebox, self, "merge_type",
            callback=self._merge_type_changed)

        gui.widgetLabel(
            box, self.tr("When there is no primary table, " +
                         "the output should contain:"))

        for opts in self.domain_opts:
            gui.appendRadioButton(box, self.tr(opts))

        gui.separator(box)

        label = gui.widgetLabel(
            box,
            self.tr("The resulting table will have a class only if there " +
                    "is no conflict between input classes."))
        label.setWordWrap(True)

        gui.separator(box)
        gui.checkBox(
            box, self, "ignore_compute_value",
            "Treat variables with the same name as the same variable,\n"
            "even if they are computed using different formulae.",
            callback=self.commit.deferred, stateWhenDisabled=False)
        ###
        box = gui.vBox(
            self.controlArea, self.tr("Source Identification"),
        )

        cb = gui.checkBox(
            box, self, "append_source_column",
            self.tr("Append data source IDs"),
            callback=self._source_changed)

        ibox = gui.indentedBox(box, sep=gui.checkButtonOffsetHint(cb))

        form = QFormLayout(
            spacing=8,
            labelAlignment=Qt.AlignLeft,
            formAlignment=Qt.AlignLeft,
            fieldGrowthPolicy=QFormLayout.AllNonFixedFieldsGrow
        )

        form.addRow(
            self.tr("Feature name:"),
            gui.lineEdit(ibox, self, "source_attr_name", valueType=str,
                         callback=self._source_changed))

        form.addRow(
            self.tr("Place:"),
            gui.comboBox(ibox, self, "source_column_role", items=self.id_roles,
                         callback=self._source_changed))

        ibox.layout().addLayout(form)
        mleft, mtop, mright, _ = ibox.layout().getContentsMargins()
        ibox.layout().setContentsMargins(mleft, mtop, mright, 4)

        cb.disables.append(ibox)
        cb.makeConsistent()

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

    @Inputs.primary_data
    @check_sql_input
    def set_primary_data(self, data):
        self.primary_data = data

    @Inputs.additional_data
    @check_sql_input_sequence
    def set_more_data(self, index, data):
        self._more_data_input[index] = data

    @Inputs.additional_data.insert
    @check_sql_input_sequence
    def insert_more_data(self, index, data):
        self._more_data_input.insert(index, data)

    @Inputs.additional_data.remove
    def remove_more_data(self, index):
        self._more_data_input.pop(index)

    @property
    def more_data(self) -> Sequence[Orange.data.Table]:
        return [t for t in self._more_data_input if t is not None]

    def handleNewSignals(self):
        self.mergebox.setDisabled(self.primary_data is not None)
        if self.incompatible_types():
            self.Error.bow_concatenation()
        else:
            self.Error.bow_concatenation.clear()
            self.commit.now()

    def incompatible_types(self):
        types_ = set()
        if self.primary_data is not None:
            types_.add(type(self.primary_data))
        for table in self.more_data:
            types_.add(type(table))
        if len(types_) > 1:
            return True

        return False

    @gui.deferred
    def commit(self):
        self.Warning.renamed_variables.clear()
        tables, domain, source_var = [], None, None
        if self.primary_data is not None:
            tables = [self.primary_data] + list(self.more_data)
            domain = self.primary_data.domain
        elif self.more_data:
            if self.ignore_compute_value:
                tables = self._dumb_tables()
            else:
                tables = self.more_data
            domains = [table.domain for table in tables]
            domain = self.merge_domains(domains)

        if tables and self.append_source_column:
            assert domain is not None
            names = [getattr(t, 'name', '') for t in tables]
            if len(names) != len(set(names)):
                names = ['{} ({})'.format(name, i)
                         for i, name in enumerate(names)]
            source_var = Orange.data.DiscreteVariable(
                get_unique_names(domain, self.source_attr_name),
                values=names
            )
            places = ["class_vars", "attributes", "metas"]
            domain = add_columns(
                domain,
                **{places[self.source_column_role]: (source_var,)})

        tables = [table.transform(domain) for table in tables]
        if tables:
            data = type(tables[0]).concatenate(tables)
            if source_var:
                source_ids = np.array(list(flatten(
                    [i] * len(table) for i, table in enumerate(tables)))).reshape((-1, 1))
                parts = [data.Y, data.X, data.metas]
                with data.unlocked(parts[self.source_column_role]):
                    data[:, source_var] = source_ids
        else:
            data = None

        self.Outputs.data.send(data)

    def _dumb_tables(self):
        def enumerated_parts(domain):
            return enumerate((domain.attributes, domain.class_vars, domain.metas))

        compute_value_groups = defaultdict(set)
        for table in self.more_data:
            for part, part_vars in enumerated_parts(table.domain):
                for var in part_vars:
                    desc = (var.name, type(var), part)
                    compute_value_groups[desc].add(var.compute_value)
        to_dumbify = {desc
                      for desc, compute_values in compute_value_groups.items()
                      if len(compute_values) > 1}

        dumb_tables = []
        for table in self.more_data:
            dumb_domain = Orange.data.Domain(
                *[[var.copy(compute_value=None)
                   if (var.name, type(var), part) in to_dumbify
                   else var
                   for var in part_vars]
                  for part, part_vars in enumerated_parts(table.domain)])
            dumb_table = type(table).from_numpy(
                dumb_domain,
                table.X, table.Y, table.metas, table.W,
                table.attributes, table.ids)
            dumb_tables.append(dumb_table)
        return dumb_tables

    def _merge_type_changed(self, ):
        if self.incompatible_types():
            self.Error.bow_concatenation()
        else:
            self.Error.bow_concatenation.clear()
            if self.primary_data is None and self.more_data:
                self.commit.deferred()

    def _source_changed(self):
        self.commit.deferred()

    def send_report(self):
        items = OrderedDict()
        if self.primary_data is not None:
            items["Domain"] = "from primary data"
        else:
            items["Domain"] = self.tr(self.domain_opts[self.merge_type]).lower()
        if self.append_source_column:
            items["Source data ID"] = "{} (as {})".format(
                self.source_attr_name,
                self.id_roles[self.source_column_role].lower())
        self.report_items(items)

    def merge_domains(self, domains):
        def fix_names(part):
            for i, attr, name in zip(count(), part, name_iter):
                if attr.name != name:
                    part[i] = attr.renamed(name)
                    self.Warning.renamed_variables()

        oper = set.union if self.merge_type == OWConcatenate.MergeUnion \
            else set.intersection
        parts = [self._get_part(domains, oper, part)
                 for part in ("attributes", "class_vars", "metas")]
        all_names = [var.name for var in chain(*parts)]
        name_iter = iter(get_unique_names_duplicates(all_names))
        for part in parts:
            fix_names(part)
        domain = Orange.data.Domain(*parts)
        return domain

    @classmethod
    def _get_part(cls, domains, oper, part):
        # keep the order of variables: first compute union or intersections as
        # sets, then iterate through chained parts
        vars_by_domain = [getattr(domain, part) for domain in domains]
        valid = reduce(oper, map(set, vars_by_domain))
        valid_vars = [var for var in chain(*vars_by_domain) if var in valid]
        return cls._unique_vars(valid_vars)

    @staticmethod
    def _unique_vars(seq: List[Orange.data.Variable]):
        AttrDesc = namedtuple(
            "AttrDesc",
            ("template", "original", "values", "number_of_decimals"))

        attrs = {}
        for el in seq:
            desc = attrs.get(el)
            if desc is None:
                attrs[el] = AttrDesc(el, True,
                                     el.is_discrete and el.values,
                                     el.is_continuous and el.number_of_decimals)
                continue
            if desc.template.is_discrete:
                sattr_values = set(desc.values)
                # don't use sets: keep the order
                missing_values = tuple(
                    val for val in el.values if val not in sattr_values
                )
                if missing_values:
                    attrs[el] = attrs[el]._replace(
                        original=False,
                        values=desc.values + missing_values)
            elif desc.template.is_continuous:
                if el.number_of_decimals > desc.number_of_decimals:
                    attrs[el] = attrs[el]._replace(
                        original=False,
                        number_of_decimals=el.number_of_decimals)

        new_attrs = []
        for desc in attrs.values():
            attr = desc.template
            if desc.original:
                new_attr = attr
            elif desc.template.is_discrete:
                new_attr = attr.copy()
                for val in desc.values[len(attr.values):]:
                    new_attr.add_value(val)
            else:
                assert desc.template.is_continuous
                new_attr = attr.copy(number_of_decimals=desc.number_of_decimals)
            new_attrs.append(new_attr)
        return new_attrs


if __name__ == "__main__":  # pragma: no cover
    WidgetPreview(OWConcatenate).run(
        insert_more_data=[(0, Orange.data.Table("iris")),
                          (1, Orange.data.Table("zoo"))])

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