def has_finished(directory):
    """Returns True if the experiments in this directory appear to have
    finished.
    """
    if (directory / "result.txt").exists():
        return True
    if (directory / "evaluation.json").exists():
        return True