def _count_fails_per_build_name(hits):
    facets = er_results.FacetSet()
    counts = collections.defaultdict(int)
    facets.detect_facets(
        hits,
        ["build_status", "build_name", "build_uuid"])
    if facets in "FAILURE":
        for build_name in facets["FAILURE"]:
            counts[build_name] += 1
    return counts
dataset/ETHPy150Open openstack-infra/elastic-recheck/elastic_recheck/cmd/uncategorized_fails.py/_count_fails_per_build_name/swapped operands of `in`