def add(self, t, value, user):
        t = int(t / self.resolution)
        firstTime = self.queue[0]
        if self.retiredTime > t - firstTime:
            if firstTime in self.valuesTimed:
                del self.valuesTimed[firstTime]
                del self.numTimed[firstTime]
                del self.annotatorTimed[firstTime]
            self.queue.popleft()
        self.queue.append(t)
        if t in self.valuesTimed:
            if user in self.valuesTimed:
                self.valuesTimed[t][user] += value
                self.numTimed[t][user] += 1.0
            else:
                self.valuesTimed[t][user] = value
                self.numTimed[t][user] = 1.0
        else:
            self.valuesTimed[t] = {user:value}
            self.numTimed[t] = {user:1.0}
dataset/ETHPy150Open xumiao/pymonk/monk/roles/monitor.py/Tracker.add/swapped operands of `>`