MCPcopy Index your code
hub / github.com/python/cpython / get_rare_events

Method get_rare_events

Tools/scripts/summarize_stats.py:606–612  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

604 return rows
605
606 def get_rare_events(self) -> list[tuple[str, int]]:
607 prefix = "Rare event "
608 return [
609 (key[len(prefix) + 1 : -1].replace("_", " "), val)
610 for key, val in self._data.items()
611 if key.startswith(prefix)
612 ]
613
614
615class JoinMode(enum.Enum):

Callers 1

calc_rare_event_tableFunction · 0.80

Calls 3

replaceMethod · 0.45
itemsMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected