def calc_good_servers():
    used_pools = set()
    used_pools.add('deepbit')

    def yield_timings_block(blocks):
        for block in blocks:
            for server in block:
                yield server
    times_found = list(yield_timings_block(block for name, block in blocks_timing.iteritems()))
    def make_count_map(servers):
        count = defaultdict(int)
        for server in servers:
            count[server] += 1
        return sorted(list(count.iteritems()), key=lambda x: -1 * x[1])

    counts = make_count_map(times_found)
    #Use the top level of info, plus deepbit
    if not counts:
        return used_pools
    cutoff = counts[0][1]
    for server, count in counts:
        if cutoff >= count:
            used_pools.add(server)

    return used_pools
dataset/ETHPy150Open c00w/bitHopper/bitHopper/LongPoll_Listener/Learning.py/calc_good_servers/swapped operands of `>=`