test_class.declarator: r = new Random()
test_class.modifier: static
test_class.original_string: static Random r = new Random();
test_class.type: Random
test_class.var_name: r
test_class.file: ml/streaminer/src/test/java/org/streaminer/stream/membership/BloomFilterAltTest.java
test_class.identifier: BloomFilterAltTest
test_case.body: @Test
      public void testGetK() {
          // Numbers are from http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html
          System.out.println("testGetK");
          BloomFilterAlt instance = null;
  
          instance = new BloomFilterAlt(2, 1);
          assertEquals(1, instance.getK());
  
          instance = new BloomFilterAlt(3, 1);
          assertEquals(2, instance.getK());
  
          instance = new BloomFilterAlt(4, 1);
          assertEquals(3, instance.getK());
  
          instance = new BloomFilterAlt(5, 1);
          assertEquals(3, instance.getK());
  
          instance = new BloomFilterAlt(6, 1);
          assertEquals(4, instance.getK());
  
          instance = new BloomFilterAlt(7, 1);
          assertEquals(5, instance.getK());
  
          instance = new BloomFilterAlt(8, 1);
          assertEquals(6, instance.getK());
  
          instance = new BloomFilterAlt(9, 1);
          assertEquals(6, instance.getK());
  
          instance = new BloomFilterAlt(10, 1);
          assertEquals(7, instance.getK());
  
          instance = new BloomFilterAlt(11, 1);
          assertEquals(8, instance.getK());
  
          instance = new BloomFilterAlt(12, 1);
          assertEquals(8, instance.getK());
      }
test_case.class_method_signature: BloomFilterAltTest.testGetK()
test_case.full_signature: @Test public void testGetK()
test_case.identifier: testGetK
test_case.invocations: println assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK assertEquals getK
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetK()
focal_class.declarator: bitset
focal_class.modifier: private
focal_class.original_string: private BitSet bitset;
focal_class.type: BitSet
focal_class.var_name: bitset
focal_class.declarator: bitSetSize
focal_class.modifier: private
focal_class.original_string: private int bitSetSize;
focal_class.type: int
focal_class.var_name: bitSetSize
focal_class.declarator: bitsPerElement
focal_class.modifier: private
focal_class.original_string: private double bitsPerElement;
focal_class.type: double
focal_class.var_name: bitsPerElement
focal_class.declarator: expectedNumberOfFilterElements
focal_class.modifier: private
focal_class.original_string: private int expectedNumberOfFilterElements;
focal_class.type: int
focal_class.var_name: expectedNumberOfFilterElements
focal_class.declarator: numberOfAddedElements
focal_class.modifier: private
focal_class.original_string: private int numberOfAddedElements;
focal_class.type: int
focal_class.var_name: numberOfAddedElements
focal_class.declarator: k
focal_class.modifier: private
focal_class.original_string: private int k;
focal_class.type: int
focal_class.var_name: k
focal_class.declarator: numNonZero
focal_class.modifier: private
focal_class.original_string: private int numNonZero;
focal_class.type: int
focal_class.var_name: numNonZero
focal_class.declarator: charset = Charset.forName("UTF-8")
focal_class.modifier: static final
focal_class.original_string: static final Charset charset = Charset.forName("UTF-8");
focal_class.type: Charset
focal_class.var_name: charset
focal_class.declarator: hashName = "MD5"
focal_class.modifier: static final
focal_class.original_string: static final String hashName = "MD5";
focal_class.type: String
focal_class.var_name: hashName
focal_class.declarator: digestFunction
focal_class.modifier: static final
focal_class.original_string: static final MessageDigest digestFunction;
focal_class.type: MessageDigest
focal_class.var_name: digestFunction
focal_class.file: ml/streaminer/src/main/java/org/streaminer/stream/membership/BloomFilterAlt.java
focal_class.identifier: BloomFilterAlt
focal_class.interfaces: implements IFilter<E>, Serializable
focal_class.class_method_signature: BloomFilterAlt.BloomFilterAlt(double c, int n, int k)
focal_class.full_signature: public  BloomFilterAlt(double c, int n, int k)
focal_class.identifier: BloomFilterAlt
focal_class.modifiers: public
focal_class.parameters: (double c, int n, int k)
focal_class.signature:  BloomFilterAlt(double c, int n, int k)
focal_class.class_method_signature: BloomFilterAlt.BloomFilterAlt(int bitSetSize, int expectedNumberOElements)
focal_class.full_signature: public  BloomFilterAlt(int bitSetSize, int expectedNumberOElements)
focal_class.identifier: BloomFilterAlt
focal_class.modifiers: public
focal_class.parameters: (int bitSetSize, int expectedNumberOElements)
focal_class.signature:  BloomFilterAlt(int bitSetSize, int expectedNumberOElements)
focal_class.class_method_signature: BloomFilterAlt.BloomFilterAlt(double falsePositiveProbability, int expectedNumberOfElements)
focal_class.full_signature: public  BloomFilterAlt(double falsePositiveProbability, int expectedNumberOfElements)
focal_class.identifier: BloomFilterAlt
focal_class.modifiers: public
focal_class.parameters: (double falsePositiveProbability, int expectedNumberOfElements)
focal_class.signature:  BloomFilterAlt(double falsePositiveProbability, int expectedNumberOfElements)
focal_class.class_method_signature: BloomFilterAlt.BloomFilterAlt(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData)
focal_class.full_signature: public  BloomFilterAlt(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData)
focal_class.identifier: BloomFilterAlt
focal_class.modifiers: public
focal_class.parameters: (int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData)
focal_class.signature:  BloomFilterAlt(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData)
focal_class.class_method_signature: BloomFilterAlt.createHash(String val, Charset charset)
focal_class.full_signature: public static int createHash(String val, Charset charset)
focal_class.identifier: createHash
focal_class.modifiers: public static
focal_class.parameters: (String val, Charset charset)
focal_class.return: int
focal_class.signature: int createHash(String val, Charset charset)
focal_class.class_method_signature: BloomFilterAlt.createHash(String val)
focal_class.full_signature: public static int createHash(String val)
focal_class.identifier: createHash
focal_class.modifiers: public static
focal_class.parameters: (String val)
focal_class.return: int
focal_class.signature: int createHash(String val)
focal_class.class_method_signature: BloomFilterAlt.createHash(byte[] data)
focal_class.full_signature: public static int createHash(byte[] data)
focal_class.identifier: createHash
focal_class.modifiers: public static
focal_class.parameters: (byte[] data)
focal_class.return: int
focal_class.signature: int createHash(byte[] data)
focal_class.class_method_signature: BloomFilterAlt.createHashes(byte[] data, int hashes)
focal_class.full_signature: public static int[] createHashes(byte[] data, int hashes)
focal_class.identifier: createHashes
focal_class.modifiers: public static
focal_class.parameters: (byte[] data, int hashes)
focal_class.return: int[]
focal_class.signature: int[] createHashes(byte[] data, int hashes)
focal_class.class_method_signature: BloomFilterAlt.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: BloomFilterAlt.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: BloomFilterAlt.expectedFalsePositiveProbability()
focal_class.full_signature: public double expectedFalsePositiveProbability()
focal_class.identifier: expectedFalsePositiveProbability
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double expectedFalsePositiveProbability()
focal_class.class_method_signature: BloomFilterAlt.getFalsePositiveProbability(double numberOfElements)
focal_class.full_signature: public double getFalsePositiveProbability(double numberOfElements)
focal_class.identifier: getFalsePositiveProbability
focal_class.modifiers: public
focal_class.parameters: (double numberOfElements)
focal_class.return: double
focal_class.signature: double getFalsePositiveProbability(double numberOfElements)
focal_class.class_method_signature: BloomFilterAlt.getFalsePositiveProbability()
focal_class.full_signature: public double getFalsePositiveProbability()
focal_class.identifier: getFalsePositiveProbability
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getFalsePositiveProbability()
focal_class.class_method_signature: BloomFilterAlt.getK()
focal_class.full_signature: public int getK()
focal_class.identifier: getK
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getK()
focal_class.class_method_signature: BloomFilterAlt.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: BloomFilterAlt.add(E element)
focal_class.full_signature: public void add(E element)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (E element)
focal_class.return: void
focal_class.signature: void add(E element)
focal_class.class_method_signature: BloomFilterAlt.add(byte[] bytes)
focal_class.full_signature: public void add(byte[] bytes)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes)
focal_class.return: void
focal_class.signature: void add(byte[] bytes)
focal_class.class_method_signature: BloomFilterAlt.getPercentNonZero()
focal_class.full_signature: public double getPercentNonZero()
focal_class.identifier: getPercentNonZero
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getPercentNonZero()
focal_class.class_method_signature: BloomFilterAlt.getNumNonZero()
focal_class.full_signature: public int getNumNonZero()
focal_class.identifier: getNumNonZero
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumNonZero()
focal_class.class_method_signature: BloomFilterAlt.addAll(Collection<? extends E> c)
focal_class.full_signature: public void addAll(Collection<? extends E> c)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (Collection<? extends E> c)
focal_class.return: void
focal_class.signature: void addAll(Collection<? extends E> c)
focal_class.class_method_signature: BloomFilterAlt.membershipTest(E element)
focal_class.full_signature: public boolean membershipTest(E element)
focal_class.identifier: membershipTest
focal_class.modifiers: public
focal_class.parameters: (E element)
focal_class.return: boolean
focal_class.signature: boolean membershipTest(E element)
focal_class.class_method_signature: BloomFilterAlt.contains(E element)
focal_class.full_signature: public boolean contains(E element)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (E element)
focal_class.return: boolean
focal_class.signature: boolean contains(E element)
focal_class.class_method_signature: BloomFilterAlt.contains(byte[] bytes)
focal_class.full_signature: public boolean contains(byte[] bytes)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes)
focal_class.return: boolean
focal_class.signature: boolean contains(byte[] bytes)
focal_class.class_method_signature: BloomFilterAlt.containsAll(Collection<? extends E> c)
focal_class.full_signature: public boolean containsAll(Collection<? extends E> c)
focal_class.identifier: containsAll
focal_class.modifiers: public
focal_class.parameters: (Collection<? extends E> c)
focal_class.return: boolean
focal_class.signature: boolean containsAll(Collection<? extends E> c)
focal_class.class_method_signature: BloomFilterAlt.getBit(int bit)
focal_class.full_signature: public boolean getBit(int bit)
focal_class.identifier: getBit
focal_class.modifiers: public
focal_class.parameters: (int bit)
focal_class.return: boolean
focal_class.signature: boolean getBit(int bit)
focal_class.class_method_signature: BloomFilterAlt.setBit(int bit, boolean value)
focal_class.full_signature: public void setBit(int bit, boolean value)
focal_class.identifier: setBit
focal_class.modifiers: public
focal_class.parameters: (int bit, boolean value)
focal_class.return: void
focal_class.signature: void setBit(int bit, boolean value)
focal_class.class_method_signature: BloomFilterAlt.getBitSet()
focal_class.full_signature: public BitSet getBitSet()
focal_class.identifier: getBitSet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BitSet
focal_class.signature: BitSet getBitSet()
focal_class.class_method_signature: BloomFilterAlt.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: BloomFilterAlt.count()
focal_class.full_signature: public int count()
focal_class.identifier: count
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int count()
focal_class.class_method_signature: BloomFilterAlt.getExpectedNumberOfElements()
focal_class.full_signature: public int getExpectedNumberOfElements()
focal_class.identifier: getExpectedNumberOfElements
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getExpectedNumberOfElements()
focal_class.class_method_signature: BloomFilterAlt.getExpectedBitsPerElement()
focal_class.full_signature: public double getExpectedBitsPerElement()
focal_class.identifier: getExpectedBitsPerElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getExpectedBitsPerElement()
focal_class.class_method_signature: BloomFilterAlt.getBitsPerElement()
focal_class.full_signature: public double getBitsPerElement()
focal_class.identifier: getBitsPerElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getBitsPerElement()
focal_method.body: public int getK() {
          return k;
      }
focal_method.class_method_signature: BloomFilterAlt.getK()
focal_method.full_signature: public int getK()
focal_method.identifier: getK
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getK()