test_class.declarator: set
test_class.modifier: private
test_class.original_string: private SampleSet<String> set;
test_class.type: SampleSet<String>
test_class.var_name: set
test_class.declarator: e
test_class.modifier: private
test_class.original_string: private String[] e;
test_class.type: String[]
test_class.var_name: e
test_class.file: ml/streaminer/src/test/java/org/streaminer/stream/frequency/util/TestSampleSet.java
test_class.identifier: TestSampleSet
test_case.body: @Test
      public void testRemoveMin()
      {
          // Empty set
          assertNull(set.removeMin());
          assertEquals(0, set.size());
          assertEquals(0L, set.count());
  
          // Maintaining order        
          set.put(e[0]);
          for (int i = 0; i < 2; i++)
          {
              set.put(e[1]);
          }
  
          for (int i = 0; i < 3; i++)
          {
              set.put(e[2]);
          }
  
          assertEquals(3, set.size());
          assertEquals(6L, set.count());
  
          assertEquals(e[0], set.removeMin());
          assertEquals(2, set.size());
          assertEquals(5L, set.count());
  
          assertEquals(e[1], set.removeMin());
          assertEquals(1, set.size());
          assertEquals(3L, set.count());
  
          assertEquals(e[2], set.removeMin());
          assertEquals(0, set.size());
          assertEquals(0L, set.count());
  
          assertEquals(null, set.removeMin());
          assertEquals(0, set.size());
          assertEquals(0L, set.count());
      }
test_case.class_method_signature: TestSampleSet.testRemoveMin()
test_case.full_signature: @Test public void testRemoveMin()
test_case.identifier: testRemoveMin
test_case.invocations: assertNull removeMin assertEquals size assertEquals count put put put assertEquals size assertEquals count assertEquals removeMin assertEquals size assertEquals count assertEquals removeMin assertEquals size assertEquals count assertEquals removeMin assertEquals size assertEquals count assertEquals removeMin assertEquals size assertEquals count
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRemoveMin()
focal_class.declarator: sampleMap
focal_class.modifier: private
focal_class.original_string: private Map<T, Node<T>> sampleMap;
focal_class.type: Map<T, Node<T>>
focal_class.var_name: sampleMap
focal_class.declarator: size
focal_class.modifier: private
focal_class.original_string: private int size;
focal_class.type: int
focal_class.var_name: size
focal_class.declarator: count
focal_class.modifier: private
focal_class.original_string: private long count;
focal_class.type: long
focal_class.var_name: count
focal_class.declarator: random
focal_class.modifier: private
focal_class.original_string: private Random random;
focal_class.type: Random
focal_class.var_name: random
focal_class.declarator: head
focal_class.modifier: private
focal_class.original_string: private Node<T> head;
focal_class.type: Node<T>
focal_class.var_name: head
focal_class.declarator: tail
focal_class.modifier: private
focal_class.original_string: private Node<T> tail;
focal_class.type: Node<T>
focal_class.var_name: tail
focal_class.file: ml/streaminer/src/main/java/org/streaminer/stream/frequency/util/SampleSet.java
focal_class.identifier: SampleSet
focal_class.interfaces: implements ISampleSet<T>
focal_class.class_method_signature: SampleSet.SampleSet()
focal_class.full_signature: public  SampleSet()
focal_class.identifier: SampleSet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SampleSet()
focal_class.class_method_signature: SampleSet.SampleSet(int capacity)
focal_class.full_signature: public  SampleSet(int capacity)
focal_class.identifier: SampleSet
focal_class.modifiers: public
focal_class.parameters: (int capacity)
focal_class.signature:  SampleSet(int capacity)
focal_class.class_method_signature: SampleSet.SampleSet(int capacity, Random random)
focal_class.full_signature: public  SampleSet(int capacity, Random random)
focal_class.identifier: SampleSet
focal_class.modifiers: public
focal_class.parameters: (int capacity, Random random)
focal_class.signature:  SampleSet(int capacity, Random random)
focal_class.class_method_signature: SampleSet.peek()
focal_class.full_signature: @Override public CountEntry<T> peek()
focal_class.identifier: peek
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CountEntry<T>
focal_class.signature: CountEntry<T> peek()
focal_class.class_method_signature: SampleSet.peek(int k)
focal_class.full_signature: @Override public List<CountEntry<T>> peek(int k)
focal_class.identifier: peek
focal_class.modifiers: @Override public
focal_class.parameters: (int k)
focal_class.return: List<CountEntry<T>>
focal_class.signature: List<CountEntry<T>> peek(int k)
focal_class.class_method_signature: SampleSet.put(T element)
focal_class.full_signature: @Override public long put(T element)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (T element)
focal_class.return: long
focal_class.signature: long put(T element)
focal_class.class_method_signature: SampleSet.put(T element, long incrementCount)
focal_class.full_signature: @Override public long put(T element, long incrementCount)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (T element, long incrementCount)
focal_class.return: long
focal_class.signature: long put(T element, long incrementCount)
focal_class.class_method_signature: SampleSet.removeRandom()
focal_class.full_signature: @Override public T removeRandom()
focal_class.identifier: removeRandom
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T removeRandom()
focal_class.class_method_signature: SampleSet.removeMin()
focal_class.full_signature: protected T removeMin()
focal_class.identifier: removeMin
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T removeMin()
focal_class.class_method_signature: SampleSet.size()
focal_class.full_signature: @Override public int size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: SampleSet.count()
focal_class.full_signature: @Override public long count()
focal_class.identifier: count
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long count()
focal_class.class_method_signature: SampleSet.peekMin()
focal_class.full_signature: protected T peekMin()
focal_class.identifier: peekMin
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T peekMin()
focal_class.class_method_signature: SampleSet.promote(Node<T> node)
focal_class.full_signature: protected void promote(Node<T> node)
focal_class.identifier: promote
focal_class.modifiers: protected
focal_class.parameters: (Node<T> node)
focal_class.return: void
focal_class.signature: void promote(Node<T> node)
focal_class.class_method_signature: SampleSet.demote(Node<T> node)
focal_class.full_signature: protected void demote(Node<T> node)
focal_class.identifier: demote
focal_class.modifiers: protected
focal_class.parameters: (Node<T> node)
focal_class.return: void
focal_class.signature: void demote(Node<T> node)
focal_method.body: protected T removeMin()
      {
          if (tail == null)
          {
              return null;
          }
          size--;
          count -= tail.count;
          T minElement = tail.element;
          tail = tail.prev;
          if (tail != null)
          {
              tail.next = null;
          }
          sampleMap.remove(minElement);
          return minElement;
      }
focal_method.class_method_signature: SampleSet.removeMin()
focal_method.full_signature: protected T removeMin()
focal_method.identifier: removeMin
focal_method.invocations: remove
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.return: T
focal_method.signature: T removeMin()