    }
    search_btn->setEnabled(true);
  }
  
  QList<FindSimilarBitsDlg::mismatched_struct> FindSimilarBitsDlg::calcBits(uint8_t bus, int bit_to_find, int min_msgs_cnt) {
    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) {
 
</s> remove   QList<mismatched_struct> calcBits(uint8_t bus, int bit_to_find, int min_msgs_cnt);
 </s> add   QList<mismatched_struct> calcBits(uint8_t bus, uint32_t selected_address, int byte_idx, int bit_idx, int min_msgs_cnt);
QList<FindSimilarBitsDlg::mismatched_struct> FindSimilarBitsDlg::calcBits(uint8_t bus, uint32_t selected_address, int byte_idx, int bit_idx, int min_msgs_cnt) {
    }
    search_btn->setEnabled(true);
  }
  
QList<FindSimilarBitsDlg::mismatched_struct> FindSimilarBitsDlg::calcBits(uint8_t bus, uint32_t selected_address, int byte_idx, int bit_idx, int min_msgs_cnt) {
    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) {
keep keep keep keep replace keep 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