test_class.file: lib/src/test/java/edu/stanford/futuredata/macrobase/analysis/summary/fpg/FPGrowthTest.java
test_class.identifier: FPGrowthTest
test_case.body: @Test
      public void testGetSupport() {
          List<Set<Integer>> txns = new ArrayList<>();
          txns.add(intIfy("a, c, d"));
          txns.add(intIfy("a, c, d, e"));
          txns.add(intIfy("c"));
          txns.add(intIfy("a"));
          txns.add(intIfy("a"));
          txns.add(intIfy("a"));
          txns.add(intIfy("a"));
          txns.add(intIfy("a"));
          txns.add(intIfy("b"));
          txns.add(intIfy("b"));
          txns.add(intIfy("b"));
          txns.add(intIfy("a, b, d"));
          txns.add(intIfy("a, b, e, c"));
  
          FPGrowth.FPTree fpt = new FPGrowth().constructTree(txns, 0);
  //        fpt.printTreeDebug();
  
          assertEquals(2, fpt.getSupport(intIfy("a, b")));
          assertEquals(0, fpt.getSupport(intIfy("a, b, c, d")));
  
      }
test_case.class_method_signature: FPGrowthTest.testGetSupport()
test_case.full_signature: @Test public void testGetSupport()
test_case.identifier: testGetSupport
test_case.invocations: add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy add intIfy constructTree assertEquals getSupport intIfy assertEquals getSupport intIfy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSupport()
focal_class.file: lib/src/main/java/edu/stanford/futuredata/macrobase/analysis/summary/fpg/FPGrowth.java
focal_class.identifier: FPGrowth
focal_class.class_method_signature: FPGrowth.getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Double supportRatio)
focal_class.full_signature: public List<ItemsetWithCount> getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Double supportRatio)
focal_class.identifier: getItemsetsWithSupportRatio
focal_class.modifiers: public
focal_class.parameters: (List<Set<Integer>> transactions,
                                                                Double supportRatio)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Double supportRatio)
focal_class.class_method_signature: FPGrowth.getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportRatio)
focal_class.full_signature: public List<ItemsetWithCount> getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportRatio)
focal_class.identifier: getItemsetsWithSupportRatio
focal_class.modifiers: public
focal_class.parameters: (List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportRatio)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getItemsetsWithSupportRatio(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportRatio)
focal_class.class_method_signature: FPGrowth.getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Double supportCount)
focal_class.full_signature: public List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Double supportCount)
focal_class.identifier: getItemsetsWithSupportCount
focal_class.modifiers: public
focal_class.parameters: (List<Set<Integer>> transactions,
                                                                Double supportCount)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Double supportCount)
focal_class.class_method_signature: FPGrowth.getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount)
focal_class.full_signature: public List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount)
focal_class.identifier: getItemsetsWithSupportCount
focal_class.modifiers: public
focal_class.parameters: (List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount)
focal_class.class_method_signature: FPGrowth.constructTree(List<Set<Integer>> transactions, int supportCount)
focal_class.full_signature: protected FPTree constructTree(List<Set<Integer>> transactions, int supportCount)
focal_class.identifier: constructTree
focal_class.modifiers: protected
focal_class.parameters: (List<Set<Integer>> transactions, int supportCount)
focal_class.return: FPTree
focal_class.signature: FPTree constructTree(List<Set<Integer>> transactions, int supportCount)
focal_class.class_method_signature: FPGrowth.getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount,
                                                                boolean printTreeDebug)
focal_class.full_signature: public List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount,
                                                                boolean printTreeDebug)
focal_class.identifier: getItemsetsWithSupportCount
focal_class.modifiers: public
focal_class.parameters: (List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount,
                                                                boolean printTreeDebug)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getItemsetsWithSupportCount(List<Set<Integer>> transactions,
                                                                Map<Integer, Double> initialCounts,
                                                                Double supportCount,
                                                                boolean printTreeDebug)
focal_class.class_method_signature: FPGrowth.getCounts(
              List<Set<Integer>> transactions,
              Map<Integer, Double> initialCounts,
              Set<Integer> targetItems,
              List<ItemsetWithCount> toCount)
focal_class.full_signature: public List<ItemsetWithCount> getCounts(
              List<Set<Integer>> transactions,
              Map<Integer, Double> initialCounts,
              Set<Integer> targetItems,
              List<ItemsetWithCount> toCount)
focal_class.identifier: getCounts
focal_class.modifiers: public
focal_class.parameters: (
              List<Set<Integer>> transactions,
              Map<Integer, Double> initialCounts,
              Set<Integer> targetItems,
              List<ItemsetWithCount> toCount)
focal_class.return: List<ItemsetWithCount>
focal_class.signature: List<ItemsetWithCount> getCounts(
              List<Set<Integer>> transactions,
              Map<Integer, Double> initialCounts,
              Set<Integer> targetItems,
              List<ItemsetWithCount> toCount)
focal_method.body: protected FPTree constructTree(List<Set<Integer>> transactions, int supportCount) {
          FPTree fp = new FPTree();
          fp.insertFrequentItems(transactions, supportCount);
          fp.insertTransactions(transactions);
          return fp;
      }
focal_method.class_method_signature: FPGrowth.constructTree(List<Set<Integer>> transactions, int supportCount)
focal_method.full_signature: protected FPTree constructTree(List<Set<Integer>> transactions, int supportCount)
focal_method.identifier: constructTree
focal_method.invocations: insertFrequentItems insertTransactions
focal_method.modifiers: protected
focal_method.parameters: (List<Set<Integer>> transactions, int supportCount)
focal_method.return: FPTree
focal_method.signature: FPTree constructTree(List<Set<Integer>> transactions, int supportCount)