test_class.file: mubench/src/test/java/de/tu_darmstadt/stg/mudetect/ranking/OverlapWithoutEdgesToMissingNodesWeightFunctionTest.java
test_class.identifier: OverlapWithoutEdgesToMissingNodesWeightFunctionTest
test_case.body: @Test
      public void considerNodeImportance2() {
          TestAUGBuilder pattern = buildAUG().withActionNodes("A", "B", "C")
                  .withEdge("A", ORDER, "B").withEdge("A", ORDER, "C").withEdge("B", ORDER, "C");
          Node nodeC = pattern.getNode("C");
          TestAUGBuilder target = buildAUG().withActionNodes("A", "B").withEdge("A", ORDER, "B");
          Overlap violation = buildOverlap(pattern, target).withNodes("A", "B").withEdge("A", ORDER, "B").build();
  
          double weightWithEqualImportance = getWeight(violation, node -> 1);
          double weightWithMissingNodeDoubleImportance = getWeight(violation, node -> node == nodeC ? 2 : 1);
  
          assertThat(weightWithEqualImportance, is(lessThan(weightWithMissingNodeDoubleImportance)));
      }
test_case.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunctionTest.considerNodeImportance2()
test_case.full_signature: @Test public void considerNodeImportance2()
test_case.identifier: considerNodeImportance2
test_case.invocations: withEdge withEdge withEdge withActionNodes buildAUG getNode withEdge withActionNodes buildAUG build withEdge withNodes buildOverlap getWeight getWeight assertThat is lessThan
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void considerNodeImportance2()
focal_class.declarator: nodeWeight
focal_class.modifier: private
focal_class.original_string: private NodeWeightFunction nodeWeight;
focal_class.type: NodeWeightFunction
focal_class.var_name: nodeWeight
focal_class.file: mubench/src/main/java/de/tu_darmstadt/stg/mudetect/ranking/OverlapWithoutEdgesToMissingNodesWeightFunction.java
focal_class.identifier: OverlapWithoutEdgesToMissingNodesWeightFunction
focal_class.interfaces: implements ViolationWeightFunction
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.OverlapWithoutEdgesToMissingNodesWeightFunction(NodeWeightFunction nodeWeight)
focal_class.full_signature: public  OverlapWithoutEdgesToMissingNodesWeightFunction(NodeWeightFunction nodeWeight)
focal_class.identifier: OverlapWithoutEdgesToMissingNodesWeightFunction
focal_class.modifiers: public
focal_class.parameters: (NodeWeightFunction nodeWeight)
focal_class.signature:  OverlapWithoutEdgesToMissingNodesWeightFunction(NodeWeightFunction nodeWeight)
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.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: OverlapWithoutEdgesToMissingNodesWeightFunction.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: OverlapWithoutEdgesToMissingNodesWeightFunction.getMappedElementsWeight(Overlap violation)
focal_class.full_signature: private double getMappedElementsWeight(Overlap violation)
focal_class.identifier: getMappedElementsWeight
focal_class.modifiers: private
focal_class.parameters: (Overlap violation)
focal_class.return: double
focal_class.signature: double getMappedElementsWeight(Overlap violation)
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.getPatternWeight(Overlap violation)
focal_class.full_signature: private double getPatternWeight(Overlap violation)
focal_class.identifier: getPatternWeight
focal_class.modifiers: private
focal_class.parameters: (Overlap violation)
focal_class.return: double
focal_class.signature: double getPatternWeight(Overlap violation)
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.getNumberOfEdgesBetweenMappedNodes(Overlap violation, APIUsagePattern pattern)
focal_class.full_signature: private long getNumberOfEdgesBetweenMappedNodes(Overlap violation, APIUsagePattern pattern)
focal_class.identifier: getNumberOfEdgesBetweenMappedNodes
focal_class.modifiers: private
focal_class.parameters: (Overlap violation, APIUsagePattern pattern)
focal_class.return: long
focal_class.signature: long getNumberOfEdgesBetweenMappedNodes(Overlap violation, APIUsagePattern pattern)
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.isConnectedTo(Edge patternEdge, Set<Node> missingNodes)
focal_class.full_signature: private boolean isConnectedTo(Edge patternEdge, Set<Node> missingNodes)
focal_class.identifier: isConnectedTo
focal_class.modifiers: private
focal_class.parameters: (Edge patternEdge, Set<Node> missingNodes)
focal_class.return: boolean
focal_class.signature: boolean isConnectedTo(Edge patternEdge, Set<Node> missingNodes)
focal_class.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.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 getMappedElementsWeight(violation) / getPatternWeight(violation);
      }
focal_method.class_method_signature: OverlapWithoutEdgesToMissingNodesWeightFunction.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: getMappedElementsWeight getPatternWeight
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)