Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Generator for the keys with the maximum value

        def max_count(count):
    "Generator for the keys with the maximum value"
    vals = [(-c, n) for n,c in count.iteritems()]
    heapq.heapify(vals)
    while len(vals):
        c, n = heapq.heappop(vals)
        yield (-c, n)
        


src/p/y/pypred-0.3.6/pypred/merge.py   pypred(Download)
    # Iterate over expressions until we find a suitable expression
    expr = None
    for max, name in util.max_count(count):
        # Base case is that there is no further reductions
        if max < settings.min_select:

src/p/y/pypred-HEAD/pypred/merge.py   pypred(Download)
    # Iterate over expressions until we find a suitable expression
    expr = None
    for max, name in util.max_count(count):
        # Base case is that there is no further reductions
        if max < settings.min_select: