      if os.path.exists(folder):
        with os.scandir(folder) as d:
  
          # Loop over first 1000 directory entries
          for _, f in zip(range(1000), d):
            if f.name.startswith("tombstone"):
              files.append((f.path, int(f.stat().st_ctime)))
            elif f.name.endswith(".crash") and f.stat().st_mode == 0o100640:
              files.append((f.path, int(f.stat().st_ctime)))
    return files
 
</s> remove               for k in zip(*np.nonzero(frame_diff)):
 </s> add               for k in zip(*np.nonzero(frame_diff), strict=True): </s> remove   chunk_sizes = {t.sha: sz for (t, sz) in zip(to, szs)}
 </s> add   chunk_sizes = {t.sha: sz for (t, sz) in zip(to, szs, strict=True)} </s> remove                       [20] * msg_n))  # 20Hz (0.05s)
 </s> add                       [20] * msg_n, strict=True))  # 20Hz (0.05s) </s> remove   for (source_account, source_bucket), source_key in zip(SOURCES, source_keys):
 </s> add   for (source_account, source_bucket), source_key in zip(SOURCES, source_keys, strict=True): </s> remove   for path, prob, _ in zip(m.laneLines, m.laneLineProbs, m.laneLineStds):
 </s> add   for path, prob, _ in zip(m.laneLines, m.laneLineProbs, m.laneLineStds, strict=True):
        for _, f in zip(range(1000), d, strict=False):
      if os.path.exists(folder):
        with os.scandir(folder) as d:
  
          # Loop over first 1000 directory entries
        for _, f in zip(range(1000), d, strict=False):
            if f.name.startswith("tombstone"):
              files.append((f.path, int(f.stat().st_ctime)))
            elif f.name.endswith(".crash") and f.stat().st_mode == 0o100640:
              files.append((f.path, int(f.stat().st_ctime)))
    return files
keep keep keep keep replace keep keep keep keep keep
 Ruff: b905 (strict zip) (#29336)

* added mutable default args

* most of the Bs

* add comment about lrucache

* b905 
selfdrive/tombstoned.py