test_class.declarator: ANY_TOPN = 42
test_class.modifier: private static final
test_class.original_string: private static final int ANY_TOPN = 42;
test_class.type: int
test_class.var_name: ANY_TOPN
test_class.declarator: ANY_RANKABLE = new RankableObjectWithFields("someObject", ANY_TOPN)
test_class.modifier: private static final
test_class.original_string: private static final Rankable ANY_RANKABLE = new RankableObjectWithFields("someObject", ANY_TOPN);
test_class.type: Rankable
test_class.var_name: ANY_RANKABLE
test_class.declarator: ZERO = new RankableObjectWithFields("ZERO_COUNT", 0)
test_class.modifier: private static final
test_class.original_string: private static final Rankable ZERO = new RankableObjectWithFields("ZERO_COUNT", 0);
test_class.type: Rankable
test_class.var_name: ZERO
test_class.declarator: A = new RankableObjectWithFields("A", 1)
test_class.modifier: private static final
test_class.original_string: private static final Rankable A = new RankableObjectWithFields("A", 1);
test_class.type: Rankable
test_class.var_name: A
test_class.declarator: B = new RankableObjectWithFields("B", 2)
test_class.modifier: private static final
test_class.original_string: private static final Rankable B = new RankableObjectWithFields("B", 2);
test_class.type: Rankable
test_class.var_name: B
test_class.declarator: C = new RankableObjectWithFields("C", 3)
test_class.modifier: private static final
test_class.original_string: private static final Rankable C = new RankableObjectWithFields("C", 3);
test_class.type: Rankable
test_class.var_name: C
test_class.declarator: D = new RankableObjectWithFields("D", 4)
test_class.modifier: private static final
test_class.original_string: private static final Rankable D = new RankableObjectWithFields("D", 4);
test_class.type: Rankable
test_class.var_name: D
test_class.declarator: E = new RankableObjectWithFields("E", 5)
test_class.modifier: private static final
test_class.original_string: private static final Rankable E = new RankableObjectWithFields("E", 5);
test_class.type: Rankable
test_class.var_name: E
test_class.declarator: F = new RankableObjectWithFields("F", 6)
test_class.modifier: private static final
test_class.original_string: private static final Rankable F = new RankableObjectWithFields("F", 6);
test_class.type: Rankable
test_class.var_name: F
test_class.declarator: G = new RankableObjectWithFields("G", 7)
test_class.modifier: private static final
test_class.original_string: private static final Rankable G = new RankableObjectWithFields("G", 7);
test_class.type: Rankable
test_class.var_name: G
test_class.declarator: H = new RankableObjectWithFields("H", 8)
test_class.modifier: private static final
test_class.original_string: private static final Rankable H = new RankableObjectWithFields("H", 8);
test_class.type: Rankable
test_class.var_name: H
test_class.file: storm/storm-app/src/test/java/storm/starter/tools/RankingsTest.java
test_class.identifier: RankingsTest
test_case.body: @Test(dataProvider = "legalTopNData")
    public void constructorWithPositiveTopNShouldBeOk(int topN) {
      // given/when
      Rankings rankings = new Rankings(topN);
  
      // then
      assertThat(rankings.maxSize()).isEqualTo(topN);
    }
test_case.class_method_signature: RankingsTest.constructorWithPositiveTopNShouldBeOk(int topN)
test_case.full_signature: @Test(dataProvider = "legalTopNData") public void constructorWithPositiveTopNShouldBeOk(int topN)
test_case.identifier: constructorWithPositiveTopNShouldBeOk
test_case.invocations: isEqualTo assertThat maxSize
test_case.modifiers: @Test(dataProvider = "legalTopNData") public
test_case.parameters: (int topN)
test_case.return: void
test_case.signature: void constructorWithPositiveTopNShouldBeOk(int topN)
focal_class.declarator: serialVersionUID = -1549827195410578903L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -1549827195410578903L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: DEFAULT_COUNT = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_COUNT = 10;
focal_class.type: int
focal_class.var_name: DEFAULT_COUNT
focal_class.declarator: maxSize
focal_class.modifier: private final
focal_class.original_string: private final int maxSize;
focal_class.type: int
focal_class.var_name: maxSize
focal_class.declarator: rankedItems = Lists.newArrayList()
focal_class.modifier: private final
focal_class.original_string: private final List<Rankable> rankedItems = Lists.newArrayList();
focal_class.type: List<Rankable>
focal_class.var_name: rankedItems
focal_class.file: storm/storm-app/src/main/java/storm/starter/tools/Rankings.java
focal_class.identifier: Rankings
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: Rankings.Rankings()
focal_class.full_signature: public  Rankings()
focal_class.identifier: Rankings
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Rankings()
focal_class.class_method_signature: Rankings.Rankings(int topN)
focal_class.full_signature: public  Rankings(int topN)
focal_class.identifier: Rankings
focal_class.modifiers: public
focal_class.parameters: (int topN)
focal_class.signature:  Rankings(int topN)
focal_class.class_method_signature: Rankings.Rankings(Rankings other)
focal_class.full_signature: public  Rankings(Rankings other)
focal_class.identifier: Rankings
focal_class.modifiers: public
focal_class.parameters: (Rankings other)
focal_class.signature:  Rankings(Rankings other)
focal_class.class_method_signature: Rankings.maxSize()
focal_class.full_signature: public int maxSize()
focal_class.identifier: maxSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int maxSize()
focal_class.class_method_signature: Rankings.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: Rankings.getRankings()
focal_class.full_signature: public List<Rankable> getRankings()
focal_class.identifier: getRankings
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Rankable>
focal_class.signature: List<Rankable> getRankings()
focal_class.class_method_signature: Rankings.updateWith(Rankings other)
focal_class.full_signature: public void updateWith(Rankings other)
focal_class.identifier: updateWith
focal_class.modifiers: public
focal_class.parameters: (Rankings other)
focal_class.return: void
focal_class.signature: void updateWith(Rankings other)
focal_class.class_method_signature: Rankings.updateWith(Rankable r)
focal_class.full_signature: public void updateWith(Rankable r)
focal_class.identifier: updateWith
focal_class.modifiers: public
focal_class.parameters: (Rankable r)
focal_class.return: void
focal_class.signature: void updateWith(Rankable r)
focal_class.class_method_signature: Rankings.addOrReplace(Rankable r)
focal_class.full_signature: private void addOrReplace(Rankable r)
focal_class.identifier: addOrReplace
focal_class.modifiers: private
focal_class.parameters: (Rankable r)
focal_class.return: void
focal_class.signature: void addOrReplace(Rankable r)
focal_class.class_method_signature: Rankings.findRankOf(Rankable r)
focal_class.full_signature: private Integer findRankOf(Rankable r)
focal_class.identifier: findRankOf
focal_class.modifiers: private
focal_class.parameters: (Rankable r)
focal_class.return: Integer
focal_class.signature: Integer findRankOf(Rankable r)
focal_class.class_method_signature: Rankings.rerank()
focal_class.full_signature: private void rerank()
focal_class.identifier: rerank
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rerank()
focal_class.class_method_signature: Rankings.shrinkRankingsIfNeeded()
focal_class.full_signature: private void shrinkRankingsIfNeeded()
focal_class.identifier: shrinkRankingsIfNeeded
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shrinkRankingsIfNeeded()
focal_class.class_method_signature: Rankings.pruneZeroCounts()
focal_class.full_signature: public void pruneZeroCounts()
focal_class.identifier: pruneZeroCounts
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void pruneZeroCounts()
focal_class.class_method_signature: Rankings.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Rankings.copy()
focal_class.full_signature: public Rankings copy()
focal_class.identifier: copy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Rankings
focal_class.signature: Rankings copy()
focal_method.body: public int maxSize() {
      return maxSize;
    }
focal_method.class_method_signature: Rankings.maxSize()
focal_method.full_signature: public int maxSize()
focal_method.identifier: maxSize
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int maxSize()