test_class.file: mubench/src/test/java/de/tu_darmstadt/stg/mudetect/ranking/OverlapWeightFunctionTest.java
test_class.identifier: OverlapWeightFunctionTest
test_case.body: @Test
      public void considersMissingEdges() {
          TestAUGBuilder targetBuilder = buildAUG().withActionNodes("a", "b");
          TestAUGBuilder patternBuilder = extend(targetBuilder).withEdge("a", ORDER, "b");
          Overlap violation = buildOverlap(patternBuilder, targetBuilder).withNode("a", "a").build();
          ViolationWeightFunction weightFunction = new OverlapWeightFunction();
  
          double weight = weightFunction.getWeight(violation, null, null);
  
          assertThat(weight, is(closeTo(1/3.0, 0.00001)));
      }
test_case.class_method_signature: OverlapWeightFunctionTest.considersMissingEdges()
test_case.full_signature: @Test public void considersMissingEdges()
test_case.identifier: considersMissingEdges
test_case.invocations: withActionNodes buildAUG withEdge extend build withNode buildOverlap getWeight assertThat is closeTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void considersMissingEdges()
focal_class.file: mubench/src/main/java/de/tu_darmstadt/stg/mudetect/ranking/OverlapWeightFunction.java
focal_class.identifier: OverlapWeightFunction
focal_class.interfaces: implements ViolationWeightFunction
focal_class.class_method_signature: OverlapWeightFunction.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: OverlapWeightFunction.getFormula(Overlap violation, Overlaps overlaps, Model model)
focal_class.full_signature: public String getFormula(Overlap violation, Overlaps overlaps, Model model)
focal_class.identifier: getFormula
focal_class.modifiers: 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: OverlapWeightFunction.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) {
          int violationSize = violation.getSize();
          int patternSize = violation.getPattern().getSize();
          return violationSize / (float) patternSize;
      }
focal_method.class_method_signature: OverlapWeightFunction.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: getSize getSize getPattern
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)