test_class.file: mubench/src/test/java/de/tu_darmstadt/stg/mudetect/ranking/PatternSupportWeightFunctionTest.java
test_class.identifier: PatternSupportWeightFunctionTest
test_case.body: @Test
      public void weightsRelativeToLargestSupport() throws Exception {
          APIUsagePattern pattern = somePattern(2);
          Model model = () -> asSet(pattern, somePattern(4));
          ViolationWeightFunction weigthFunction = new PatternSupportWeightFunction();
  
          double weight = weigthFunction.getWeight(emptyOverlap(pattern), null, model);
  
          assertThat(weight, is(0.5));
      }
test_case.class_method_signature: PatternSupportWeightFunctionTest.weightsRelativeToLargestSupport()
test_case.full_signature: @Test public void weightsRelativeToLargestSupport()
test_case.identifier: weightsRelativeToLargestSupport
test_case.invocations: somePattern asSet somePattern getWeight emptyOverlap assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void weightsRelativeToLargestSupport()
focal_class.file: mubench/src/main/java/de/tu_darmstadt/stg/mudetect/ranking/PatternSupportWeightFunction.java
focal_class.identifier: PatternSupportWeightFunction
focal_class.interfaces: implements ViolationWeightFunction
focal_class.class_method_signature: PatternSupportWeightFunction.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: PatternSupportWeightFunction.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: PatternSupportWeightFunction.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 violation.getPattern().getSupport() / (double) model.getMaxPatternSupport();
      }
focal_method.class_method_signature: PatternSupportWeightFunction.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: getSupport getPattern getMaxPatternSupport
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)