test_class.declarator: ANY_INT_SET_ONE = Sets.newHashSet(1, 2, 3)
test_class.modifier: private static final
test_class.original_string: private static final Set<Integer> ANY_INT_SET_ONE = Sets.newHashSet(1, 2, 3);
test_class.type: Set<Integer>
test_class.var_name: ANY_INT_SET_ONE
test_class.declarator: ANY_INT_SET_TWO = Sets.newHashSet(2, 3, 4)
test_class.modifier: private static final
test_class.original_string: private static final Set<Integer> ANY_INT_SET_TWO = Sets.newHashSet(2, 3, 4);
test_class.type: Set<Integer>
test_class.var_name: ANY_INT_SET_TWO
test_class.declarator: distinct = new Distinct()
test_class.modifier: private static final
test_class.original_string: private static final Distinct distinct = new Distinct();
test_class.type: Distinct
test_class.var_name: distinct
test_class.file: storm/storm-benchmark/src/test/java/storm/benchmark/lib/operation/DistinctTest.java
test_class.identifier: DistinctTest
test_case.body: @Test
    public void testInit() throws Exception {
      TridentTuple tuple = mock(TridentTuple.class);
      when(tuple.getInteger(1)).thenReturn(1);
      Set<Integer> init = distinct.init(tuple);
      assertThat(init)
              .isNotNull()
              .hasSize(1)
              .contains(1);
    }
test_case.class_method_signature: DistinctTest.testInit()
test_case.full_signature: @Test public void testInit()
test_case.identifier: testInit
test_case.invocations: mock thenReturn when getInteger init contains hasSize isNotNull assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInit()
focal_class.declarator: LOG = Logger.getLogger(Distinct.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = Logger.getLogger(Distinct.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: serialVersionUID = 7592229830682953885L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 7592229830682953885L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: storm/storm-benchmark/src/main/java/storm/benchmark/lib/operation/Distinct.java
focal_class.identifier: Distinct
focal_class.interfaces: implements CombinerAggregator<Set<Integer>>
focal_class.class_method_signature: Distinct.init(TridentTuple tuple)
focal_class.full_signature: @Override public Set<Integer> init(TridentTuple tuple)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (TridentTuple tuple)
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> init(TridentTuple tuple)
focal_class.class_method_signature: Distinct.combine(Set<Integer> val1, Set<Integer> val2)
focal_class.full_signature: @Override public Set<Integer> combine(Set<Integer> val1, Set<Integer> val2)
focal_class.identifier: combine
focal_class.modifiers: @Override public
focal_class.parameters: (Set<Integer> val1, Set<Integer> val2)
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> combine(Set<Integer> val1, Set<Integer> val2)
focal_class.class_method_signature: Distinct.zero()
focal_class.full_signature: @Override public Set<Integer> zero()
focal_class.identifier: zero
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Integer>
focal_class.signature: Set<Integer> zero()
focal_method.body: @Override
    public Set<Integer> init(TridentTuple tuple) {
      LOG.debug("get tuple: " + tuple);
      Set<Integer> singleton = new HashSet<Integer>();
      singleton.add(tuple.getInteger(1));
      return singleton;
    }
focal_method.class_method_signature: Distinct.init(TridentTuple tuple)
focal_method.full_signature: @Override public Set<Integer> init(TridentTuple tuple)
focal_method.identifier: init
focal_method.invocations: debug add getInteger
focal_method.modifiers: @Override public
focal_method.parameters: (TridentTuple tuple)
focal_method.return: Set<Integer>
focal_method.signature: Set<Integer> init(TridentTuple tuple)