test_class.file: legacy/src/test/java/org/openscience/cdk/smsd/filters/PostFilterTest.java
test_class.identifier: PostFilterTest
test_case.body: @Test
      public void testFilter() {
  
          List<Integer> l1 = new ArrayList<Integer>(6);
          l1.add(1);
          l1.add(2);
          l1.add(3);
          l1.add(4);
          l1.add(5);
          l1.add(6);
  
          List<Integer> l2 = new ArrayList<Integer>(6);
          l2.add(1);
          l2.add(2);
          l2.add(3);
          l2.add(4);
          l2.add(5);
          l2.add(6);
  
          List<Integer> l3 = new ArrayList<Integer>(6);
          l3.add(1);
          l3.add(2);
          l3.add(5);
          l3.add(4);
          l3.add(3);
          l3.add(6);
  
          List<List<Integer>> mappings = new ArrayList<List<Integer>>(3);
          mappings.add(l1);
          mappings.add(l2);
          mappings.add(l3);
  
          assertEquals(3, mappings.size());
          List<Map<Integer, Integer>> expResult = PostFilter.filter(mappings);
          assertEquals(2, expResult.size());
      }
test_case.class_method_signature: PostFilterTest.testFilter()
test_case.full_signature: @Test public void testFilter()
test_case.identifier: testFilter
test_case.invocations: add add add add add add add add add add add add add add add add add add add add add assertEquals size filter assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFilter()
focal_class.file: legacy/src/main/java/org/openscience/cdk/smsd/filters/PostFilter.java
focal_class.identifier: PostFilter
focal_class.class_method_signature: PostFilter.filter(List<List<Integer>> mappings)
focal_class.full_signature: public static List<Map<Integer, Integer>> filter(List<List<Integer>> mappings)
focal_class.identifier: filter
focal_class.modifiers: public static
focal_class.parameters: (List<List<Integer>> mappings)
focal_class.return: List<Map<Integer, Integer>>
focal_class.signature: List<Map<Integer, Integer>> filter(List<List<Integer>> mappings)
focal_class.class_method_signature: PostFilter.hasMap(Map<Integer, Integer> newMap, List<Map<Integer, Integer>> nonRedundantMapping)
focal_class.full_signature: private static boolean hasMap(Map<Integer, Integer> newMap, List<Map<Integer, Integer>> nonRedundantMapping)
focal_class.identifier: hasMap
focal_class.modifiers: private static
focal_class.parameters: (Map<Integer, Integer> newMap, List<Map<Integer, Integer>> nonRedundantMapping)
focal_class.return: boolean
focal_class.signature: boolean hasMap(Map<Integer, Integer> newMap, List<Map<Integer, Integer>> nonRedundantMapping)
focal_class.class_method_signature: PostFilter.removeRedundantMapping(List<List<Integer>> mappingOrg)
focal_class.full_signature: private static List<Map<Integer, Integer>> removeRedundantMapping(List<List<Integer>> mappingOrg)
focal_class.identifier: removeRedundantMapping
focal_class.modifiers: private static
focal_class.parameters: (List<List<Integer>> mappingOrg)
focal_class.return: List<Map<Integer, Integer>>
focal_class.signature: List<Map<Integer, Integer>> removeRedundantMapping(List<List<Integer>> mappingOrg)
focal_class.class_method_signature: PostFilter.getMappingMapFromList(List<Integer> list)
focal_class.full_signature: private static Map<Integer, Integer> getMappingMapFromList(List<Integer> list)
focal_class.identifier: getMappingMapFromList
focal_class.modifiers: private static
focal_class.parameters: (List<Integer> list)
focal_class.return: Map<Integer, Integer>
focal_class.signature: Map<Integer, Integer> getMappingMapFromList(List<Integer> list)
focal_method.body: public static List<Map<Integer, Integer>> filter(List<List<Integer>> mappings) {
          FinalMappings finalMappings = FinalMappings.getInstance();
          if (mappings != null && !mappings.isEmpty()) {
              finalMappings.set(removeRedundantMapping(mappings));
              mappings.clear();
          } else {
              finalMappings.set(new ArrayList<Map<Integer, Integer>>());
          }
          return finalMappings.getFinalMapping();
      }
focal_method.class_method_signature: PostFilter.filter(List<List<Integer>> mappings)
focal_method.full_signature: public static List<Map<Integer, Integer>> filter(List<List<Integer>> mappings)
focal_method.identifier: filter
focal_method.invocations: getInstance isEmpty set removeRedundantMapping clear set getFinalMapping
focal_method.modifiers: public static
focal_method.parameters: (List<List<Integer>> mappings)
focal_method.return: List<Map<Integer, Integer>>
focal_method.signature: List<Map<Integer, Integer>> filter(List<List<Integer>> mappings)