def _facet_counts(items):
    facets = {}
    for name, data in items:
        facets[name] = FacetResult(name, data)
    return facets
Gets the value in a bucket for the given key, or the default.
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/__init__.py/_facet_counts--crossover with--dataset/ETHPy150Open Akagi201/learning-python/lpthw/ex39/hashmap.py/get