test_class.file: common/transport/src/test/java/com/hashmapinc/server/common/transport/quota/inmemory/IntervalCountTest.java
test_class.identifier: IntervalCountTest
test_case.body: @Test
      public void ticksInSameIntervalAreSummed() {
          IntervalCount intervalCount = new IntervalCount(100L);
          assertEquals(1L, intervalCount.resetIfExpiredAndTick());
          Clock.shift(100);
          assertEquals(2L, intervalCount.resetIfExpiredAndTick());
      }
test_case.class_method_signature: IntervalCountTest.ticksInSameIntervalAreSummed()
test_case.full_signature: @Test public void ticksInSameIntervalAreSummed()
test_case.identifier: ticksInSameIntervalAreSummed
test_case.invocations: assertEquals resetIfExpiredAndTick shift assertEquals resetIfExpiredAndTick
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void ticksInSameIntervalAreSummed()
focal_class.declarator: adder = new LongAdder()
focal_class.modifier: private final
focal_class.original_string: private final LongAdder adder = new LongAdder();
focal_class.type: LongAdder
focal_class.var_name: adder
focal_class.declarator: intervalDurationMs
focal_class.modifier: private final
focal_class.original_string: private final long intervalDurationMs;
focal_class.type: long
focal_class.var_name: intervalDurationMs
focal_class.declarator: startTime
focal_class.modifier: private volatile
focal_class.original_string: private volatile long startTime;
focal_class.type: long
focal_class.var_name: startTime
focal_class.declarator: lastTickTime
focal_class.modifier: private volatile
focal_class.original_string: private volatile long lastTickTime;
focal_class.type: long
focal_class.var_name: lastTickTime
focal_class.file: common/transport/src/main/java/com/hashmapinc/server/common/transport/quota/inmemory/IntervalCount.java
focal_class.identifier: IntervalCount
focal_class.class_method_signature: IntervalCount.IntervalCount(long intervalDurationMs)
focal_class.full_signature: public  IntervalCount(long intervalDurationMs)
focal_class.identifier: IntervalCount
focal_class.modifiers: public
focal_class.parameters: (long intervalDurationMs)
focal_class.signature:  IntervalCount(long intervalDurationMs)
focal_class.class_method_signature: IntervalCount.resetIfExpiredAndTick()
focal_class.full_signature: public long resetIfExpiredAndTick()
focal_class.identifier: resetIfExpiredAndTick
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long resetIfExpiredAndTick()
focal_class.class_method_signature: IntervalCount.silenceDuration()
focal_class.full_signature: public long silenceDuration()
focal_class.identifier: silenceDuration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long silenceDuration()
focal_class.class_method_signature: IntervalCount.getCount()
focal_class.full_signature: public long getCount()
focal_class.identifier: getCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCount()
focal_class.class_method_signature: IntervalCount.tick()
focal_class.full_signature: private void tick()
focal_class.identifier: tick
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void tick()
focal_class.class_method_signature: IntervalCount.reset()
focal_class.full_signature: private void reset()
focal_class.identifier: reset
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: IntervalCount.isExpired()
focal_class.full_signature: private boolean isExpired()
focal_class.identifier: isExpired
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isExpired()
focal_method.body: public long resetIfExpiredAndTick() {
          if (isExpired()) {
              reset();
          }
          tick();
          return adder.sum();
      }
focal_method.class_method_signature: IntervalCount.resetIfExpiredAndTick()
focal_method.full_signature: public long resetIfExpiredAndTick()
focal_method.identifier: resetIfExpiredAndTick
focal_method.invocations: isExpired reset tick sum
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long resetIfExpiredAndTick()