test_class.declarator: agrgegator
test_class.modifier: @InjectMocks
  	private
test_class.original_string: @InjectMocks
  	private AccuracyAggregator<Boolean> agrgegator;
test_class.type: AccuracyAggregator<Boolean>
test_class.var_name: agrgegator
test_class.file: storm/trident-ml/src/test/java/com/github/pmerienne/trident/ml/evaluation/AccuracyAggregatorTest.java
test_class.identifier: AccuracyAggregatorTest
test_case.body: @Test
  	public void should_init_accuracy_without_error() {
  		// Given
  		Boolean label = true;
  		Boolean prediction = true;
  
  		Instance<Boolean> instance = mock(Instance.class);
  		when(instance.getLabel()).thenReturn(label);
  
  		TridentTuple tuple = mock(TridentTuple.class);
  		when(tuple.getValue(0)).thenReturn(instance);
  		when(tuple.getValue(1)).thenReturn(prediction);
  
  		// When
  		AccuracyState<Boolean> actualState = agrgegator.init(tuple);
  
  		// Then
  		assertThat(actualState).isEqualTo(new AccuracyState<Boolean>(1, 0));
  	}
test_case.class_method_signature: AccuracyAggregatorTest.should_init_accuracy_without_error()
test_case.full_signature: @Test public void should_init_accuracy_without_error()
test_case.identifier: should_init_accuracy_without_error
test_case.invocations: mock thenReturn when getLabel mock thenReturn when getValue thenReturn when getValue init isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_init_accuracy_without_error()
focal_class.declarator: serialVersionUID = 1136784137149485843L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1136784137149485843L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: storm/trident-ml/src/main/java/com/github/pmerienne/trident/ml/evaluation/AccuracyAggregator.java
focal_class.identifier: AccuracyAggregator
focal_class.interfaces: implements CombinerAggregator<AccuracyState<L>>
focal_class.class_method_signature: AccuracyAggregator.init(TridentTuple tuple)
focal_class.full_signature: @Override public AccuracyState<L> init(TridentTuple tuple)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (TridentTuple tuple)
focal_class.return: AccuracyState<L>
focal_class.signature: AccuracyState<L> init(TridentTuple tuple)
focal_class.class_method_signature: AccuracyAggregator.combine(AccuracyState<L> val1, AccuracyState<L> val2)
focal_class.full_signature: @Override public AccuracyState<L> combine(AccuracyState<L> val1, AccuracyState<L> val2)
focal_class.identifier: combine
focal_class.modifiers: @Override public
focal_class.parameters: (AccuracyState<L> val1, AccuracyState<L> val2)
focal_class.return: AccuracyState<L>
focal_class.signature: AccuracyState<L> combine(AccuracyState<L> val1, AccuracyState<L> val2)
focal_class.class_method_signature: AccuracyAggregator.zero()
focal_class.full_signature: @Override public AccuracyState<L> zero()
focal_class.identifier: zero
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: AccuracyState<L>
focal_class.signature: AccuracyState<L> zero()
focal_method.body: @Override
  	public AccuracyState<L> init(TridentTuple tuple) {
  		Instance<L> instance = (Instance<L>) tuple.getValue(0);
  		L prediction = (L) tuple.getValue(1);
  		L expected = instance.getLabel();
  
  		boolean equals = Objects.equals(expected, prediction);
  
  		AccuracyState<L> state = new AccuracyState<L>(1, equals ? 0 : 1);
  		return state;
  	}
focal_method.class_method_signature: AccuracyAggregator.init(TridentTuple tuple)
focal_method.full_signature: @Override public AccuracyState<L> init(TridentTuple tuple)
focal_method.identifier: init
focal_method.invocations: getValue getValue getLabel equals
focal_method.modifiers: @Override public
focal_method.parameters: (TridentTuple tuple)
focal_method.return: AccuracyState<L>
focal_method.signature: AccuracyState<L> init(TridentTuple tuple)