test_class.declarator: SOURCE_SIZE = 10000
test_class.modifier: private final static
test_class.original_string: private final static int SOURCE_SIZE = 10000;
test_class.type: int
test_class.var_name: SOURCE_SIZE
test_class.declarator: ksTest
test_class.modifier: private static
test_class.original_string: private static KolmogorovSmirnovTest ksTest;
test_class.type: KolmogorovSmirnovTest
test_class.var_name: ksTest
test_class.declarator: source
test_class.modifier: private static
test_class.original_string: private static List<Double> source;
test_class.type: List<Double>
test_class.var_name: source
test_class.declarator: DEFFAULT_PARTITION_NUMBER=10
test_class.modifier: private final static
test_class.original_string: private final static int DEFFAULT_PARTITION_NUMBER=10;
test_class.type: int
test_class.var_name: DEFFAULT_PARTITION_NUMBER
test_class.declarator: sourcePartitions = new List[DEFFAULT_PARTITION_NUMBER]
test_class.modifier: private
test_class.original_string: private List<Double>[] sourcePartitions = new List[DEFFAULT_PARTITION_NUMBER];
test_class.type: List<Double>[]
test_class.var_name: sourcePartitions
test_class.file: flink-java/src/test/java/org/apache/flink/api/java/sampling/RandomSamplerTest.java
test_class.identifier: RandomSamplerTest
test_case.body: @Test
  	public void testReservoirSamplerSampledSize2() {
  		RandomSampler<Double> sampler = new ReservoirSamplerWithoutReplacement<Double>(20000);
  		Iterator<Double> sampled = sampler.sample(source.iterator());
  		assertTrue("ReservoirSamplerWithoutReplacement sampled output size should not beyond the source size.", getSize(sampled) == SOURCE_SIZE);
  	}
test_case.class_method_signature: RandomSamplerTest.testReservoirSamplerSampledSize2()
test_case.full_signature: @Test public void testReservoirSamplerSampledSize2()
test_case.identifier: testReservoirSamplerSampledSize2
test_case.invocations: sample iterator assertTrue getSize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReservoirSamplerSampledSize2()
focal_class.declarator: EPSILON = 1e-5
focal_class.modifier: protected final static
focal_class.original_string: protected final static double EPSILON = 1e-5;
focal_class.type: double
focal_class.var_name: EPSILON
focal_class.declarator: EMPTY_ITERABLE = new SampledIterator<T>() {
  		@Override
  		public boolean hasNext() {
  			return false;
  		}
  		
  		@Override
  		public T next() {
  			return null;
  		}
  	}
focal_class.modifier: protected final
focal_class.original_string: protected final Iterator<T> EMPTY_ITERABLE = new SampledIterator<T>() {
  		@Override
  		public boolean hasNext() {
  			return false;
  		}
  		
  		@Override
  		public T next() {
  			return null;
  		}
  	};
focal_class.type: Iterator<T>
focal_class.var_name: EMPTY_ITERABLE
focal_class.file: flink-java/src/main/java/org/apache/flink/api/java/sampling/RandomSampler.java
focal_class.identifier: RandomSampler
focal_class.class_method_signature: RandomSampler.sample(Iterator<T> input)
focal_class.full_signature: public abstract Iterator<T> sample(Iterator<T> input)
focal_class.identifier: sample
focal_class.modifiers: public abstract
focal_class.parameters: (Iterator<T> input)
focal_class.return: Iterator<T>
focal_class.signature: Iterator<T> sample(Iterator<T> input)
focal_method.body: public abstract Iterator<T> sample(Iterator<T> input);
focal_method.class_method_signature: RandomSampler.sample(Iterator<T> input)
focal_method.full_signature: public abstract Iterator<T> sample(Iterator<T> input)
focal_method.identifier: sample
focal_method.modifiers: public abstract
focal_method.parameters: (Iterator<T> input)
focal_method.return: Iterator<T>
focal_method.signature: Iterator<T> sample(Iterator<T> input)