def diff_stats(self, stat_new, stat_old):
        diff_stat = {}
        for ckey, cval in stat_new.iteritems():
            if ckey in stat_old:
                cstat = {}
                diff_stat[ckey] = cstat
                oval = stat_old[ckey]
                for vkey, vval in cval.iteritems():
                    if oval in vkey:
                        cstat[vkey] = cval[vkey] - oval[vkey]
                    else:
                        cstat[vkey] = cval[vkey]
            else:
                diff_stat[ckey] = cval.copy()
        return diff_stat
dataset/ETHPy150Open ooici/pyon/pyon/util/stats.py/StatsCounter.diff_stats/swapped operands of `in`