def METHOD_NAME(self):
    classes = {}
    for revs, test_datas in test_scheduling.get_test_scheduling_history("label"):
        rev = revs[0]
        if any(
            test_data["is_likely_regression"] or test_data["is_possible_regression"]
            for test_data in test_datas
        ):
            classes[rev] = 1
        else:
            classes[rev] = 0
    logger.info(
        "%d commits failed", sum(1 for label in classes.values() if label == 1)
    )
    logger.info(
        "%d commits did not fail",
        sum(1 for label in classes.values() if label == 0),
    )
    return classes, [0, 1]