    QHash<uint32_t, QVector<uint32_t>> mismatches;
    QHash<uint32_t, uint32_t> msg_count;
    auto events = can->events();
    for (auto e : *events) {
      if (e->which == cereal::Event::Which::CAN) {
        for (const auto &c : e->event.getCan()) {
          if (c.getSrc() == bus) {
 
</s> remove QList<FindSimilarBitsDlg::mismatched_struct> FindSimilarBitsDlg::calcBits(uint8_t bus, int bit_to_find, int min_msgs_cnt) {
 </s> add QList<FindSimilarBitsDlg::mismatched_struct> FindSimilarBitsDlg::calcBits(uint8_t bus, uint32_t selected_address, int byte_idx, int bit_idx, int min_msgs_cnt) {
  qDebug() << bus << selected_address << byte_idx << bit_idx;
  int bit_to_find = -1;
    QHash<uint32_t, QVector<uint32_t>> mismatches;
    QHash<uint32_t, uint32_t> msg_count;
    auto events = can->events();
  qDebug() << bus << selected_address << byte_idx << bit_idx;
  int bit_to_find = -1;
    for (auto e : *events) {
      if (e->which == cereal::Event::Which::CAN) {
        for (const auto &c : e->event.getCan()) {
          if (c.getSrc() == bus) {
keep keep add keep keep keep keep
 cabana: fix find similar bits (#26918)

* dynamic find bit

* change

* Revert "change"

This reverts commit 12cf513e2725a52ee40b8999521adcd6ecb00221.

* change sorting and headers

* make perc a float

Co-authored-by: Shane Smiskol <shane@smiskol.com> 
tools/cabana/tools/findsimilarbits.cc