code: public static float calculate(BitSet bitset1, BitSet bitset2) throws CDKException {
          float _bitset1_cardinality = bitset1.cardinality();
          float _bitset2_cardinality = bitset2.cardinality();
          if (bitset1.size() != bitset2.size()) {
              throw new CDKException("Bitsets must have the same bit length");
          }
          BitSet one_and_two = (BitSet) bitset1.clone();
          one_and_two.and(bitset2);
          float _common_bit_count = one_and_two.cardinality();
          return _common_bit_count / (_bitset1_cardinality + _bitset2_cardinality - _common_bit_count);
      }
docs: Evaluates Tanimoto coefficient for two bit sets.
  <p>
  @param bitset1 A bitset (such as a fingerprint) for the first molecule
  @param bitset2 A bitset (such as a fingerprint) for the second molecule
  @return The Tanimoto coefficient
  @throws org.openscience.cdk.exception.CDKException  if bitsets are not of the same length