Invalidate the diversity cache when programs change significantly
(self)
| 2164 | self.diversity_cache[code_hash] = {"value": diversity, "timestamp": time.time()} |
| 2165 | |
| 2166 | def _invalidate_diversity_cache(self) -> None: |
| 2167 | """Invalidate the diversity cache when programs change significantly""" |
| 2168 | self.diversity_cache.clear() |
| 2169 | self.diversity_reference_set = [] |
| 2170 | logger.debug("Diversity cache invalidated") |
| 2171 | |
| 2172 | def _update_feature_stats(self, feature_name: str, value: float) -> None: |
| 2173 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected