

def log_stats(self, output):
    for (name, stat) in sorted(self._event_stats.iteritems(), key=(lambda x: x[1][1])):
        ((print >> output), ('"%s", %d, %d,' % (name, stat[0], (stat[1] / 8))))

dataset/ETHPy150Open Blizzard/heroprotocol/heroprotocol.py EventLogger.log_stats/original