test_class.declarator: patternBuilder
test_class.modifier: private
test_class.original_string: private TestAUGBuilder patternBuilder;
test_class.type: TestAUGBuilder
test_class.var_name: patternBuilder
test_class.declarator: violation
test_class.modifier: private
test_class.original_string: private Overlap violation;
test_class.type: Overlap
test_class.var_name: violation
test_class.declarator: overlaps
test_class.modifier: private
test_class.original_string: private Overlaps overlaps;
test_class.type: Overlaps
test_class.var_name: overlaps
test_class.file: mubench/src/test/java/de/tu_darmstadt/stg/mudetect/ranking/ViolationSupportWeightFunctionTest.java
test_class.identifier: ViolationSupportWeightFunctionTest
test_case.body: @Test
      public void calculatesViolationSupportWeight_anEqualViolation() {
          TestAUGBuilder anotherTarget = buildAUG().withActionNode("a");
          Overlap anEqualViolation = buildOverlap(patternBuilder, anotherTarget).withNode("a", "a").build();
          overlaps.addViolation(anEqualViolation);
          ViolationWeightFunction weightFunction = new ViolationSupportWeightFunction();
  
          double weight = weightFunction.getWeight(violation, overlaps, null);
  
          assertThat(weight, is(0.5));
      }
test_case.class_method_signature: ViolationSupportWeightFunctionTest.calculatesViolationSupportWeight_anEqualViolation()
test_case.full_signature: @Test public void calculatesViolationSupportWeight_anEqualViolation()
test_case.identifier: calculatesViolationSupportWeight_anEqualViolation
test_case.invocations: withActionNode buildAUG build withNode buildOverlap addViolation getWeight assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void calculatesViolationSupportWeight_anEqualViolation()
focal_class.file: mubench/src/main/java/de/tu_darmstadt/stg/mudetect/ranking/ViolationSupportWeightFunction.java
focal_class.identifier: ViolationSupportWeightFunction
focal_class.interfaces: implements ViolationWeightFunction
focal_class.class_method_signature: ViolationSupportWeightFunction.getWeight(Overlap violation, Overlaps overlaps, Model model)
focal_class.full_signature: @Override public double getWeight(Overlap violation, Overlaps overlaps, Model model)
focal_class.identifier: getWeight
focal_class.modifiers: @Override public
focal_class.parameters: (Overlap violation, Overlaps overlaps, Model model)
focal_class.return: double
focal_class.signature: double getWeight(Overlap violation, Overlaps overlaps, Model model)
focal_class.class_method_signature: ViolationSupportWeightFunction.getFormula(Overlap violation, Overlaps overlaps, Model model)
focal_class.full_signature: @Override public String getFormula(Overlap violation, Overlaps overlaps, Model model)
focal_class.identifier: getFormula
focal_class.modifiers: @Override public
focal_class.parameters: (Overlap violation, Overlaps overlaps, Model model)
focal_class.return: String
focal_class.signature: String getFormula(Overlap violation, Overlaps overlaps, Model model)
focal_class.class_method_signature: ViolationSupportWeightFunction.getId()
focal_class.full_signature: @Override public String getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_method.body: @Override
      public double getWeight(Overlap violation, Overlaps overlaps, Model model) {
          return 1.0 / overlaps.getNumberOfEqualViolations(violation);
      }
focal_method.class_method_signature: ViolationSupportWeightFunction.getWeight(Overlap violation, Overlaps overlaps, Model model)
focal_method.full_signature: @Override public double getWeight(Overlap violation, Overlaps overlaps, Model model)
focal_method.identifier: getWeight
focal_method.invocations: getNumberOfEqualViolations
focal_method.modifiers: @Override public
focal_method.parameters: (Overlap violation, Overlaps overlaps, Model model)
focal_method.return: double
focal_method.signature: double getWeight(Overlap violation, Overlaps overlaps, Model model)