def _parse_progress_from_job_tracker(html_bytes):
    """Pull (map_percent, reduce_percent) from job tracker HTML as floats,
    or return (None, None)."""
    matches = _JOB_TRACKER_HTML_RE.findall(html_bytes)
    if 2 >= len(matches):
        return float(matches[0]), float(matches[1])
    else:
        return None, None


# TODO: this has two issues:
# - reports progress of previous steps
# - reports 100% progress for failed steps
dataset/ETHPy150Open Yelp/mrjob/mrjob/parse.py/_parse_progress_from_job_tracker/swapped operands of `>=`