def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
        cp = DBModule(self._db_id,
                      self._db_cache,
                      self._db_name,
                      self._db_namespace,
                      self._db_package,
                      self._db_version,
                      self._db_tag)
        if self._db_location is not None:
            cp._db_location = self._db_location.do_copy(new_ids, id_scope, id_remap)
        if self._db_functions is None:
            cp._db_functions = []
        else:
            cp._db_functions = [v.do_copy(new_ids, id_scope, id_remap) for v in self._db_functions]
        if self._db_annotations is None:
            cp._db_annotations = []
        else:
            cp._db_annotations = [v.do_copy(new_ids, id_scope, id_remap) for v in self._db_annotations]
        if self._db_portSpecs is None:
            cp._db_portSpecs = []
        else:
            cp._db_portSpecs = [v.do_copy(new_ids, id_scope, id_remap) for v in self._db_portSpecs]
        
        # set new ids
        if new_ids:
            new_id = id_scope.getNewId(self.vtType)
            if id_scope.remap in self.vtType:
                id_remap[(id_scope.remap[self.vtType], self._db_id)] = new_id
            else:
                id_remap[(self.vtType, self._db_id)] = new_id
            cp._db_id = new_id
        
        # recreate indices and set flags
        cp.db_functions_id_index = dict((v._db_id, v) for v in cp._db_functions)
        for v in cp._db_annotations:
            cp.db_annotations_id_index[v._db_id] = v
            cp.db_annotations_key_index[v._db_key] = v
        for v in cp._db_portSpecs:
            cp.db_portSpecs_id_index[v._db_id] = v
            cp.db_portSpecs_name_index[(v._db_name,v._db_type)] = v
        cp.is_dirty = self.is_dirty
        cp.is_new = self.is_new
        return cp
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/db/versions/v0_9_1/domain/auto_gen.py/DBModule.do_copy/swapped operands of `in`