(self)
compute_total_repairs memoizes the number of repairs:
        the # of cells that were inferred and where the inferred value
        is not equal to the initial value.
compute_total_repairs memoizes the number of repairs:
        the # of cells that were inferred and where the inferred value
        is not equal to the initial value.
compute_total_repairs memoizes the number of repairs : the # of cells that were inferred and where the inferred value is not equal to the initial value .
def compute_total_repairs(self):
        """
        compute_total_repairs memoizes the number of repairs:
        the # of cells that were inferred and where the inferred value
        is not equal to the initial value.
        """

        query = "SELECT count(*) FROM " \
                "  (SELECT _vid_ " \
                "     FROM {} as t1, {} as t2 " \
                "    WHERE t1._tid_ = t2._tid_ " \
                "      AND t1.attribute = t2.attribute " \
                "      AND t1.init_value != t2.rv_value) AS t".format(AuxTables.cell_domain.name,
                                                                      AuxTables.inf_values_dom.name)
        res = self.ds.engine.execute_query(query)
        self.total_repairs = float(res[0][0])
def compute_total_repairs ( self ) : query = "SELECT count(*) FROM " "  (SELECT _vid_ " "     FROM {} as t1, {} as t2 " "    WHERE t1._tid_ = t2._tid_ " "      AND t1.attribute = t2.attribute " "      AND t1.init_value != t2.rv_value) AS t" . format ( AuxTables . cell_domain . name , AuxTables . inf_values_dom . name ) res = self . ds . engine . execute_query ( query ) self . total_repairs = float ( res [ 0 ] [ 0 ] )