MCPcopy Create free account
hub / github.com/FareedKhan-dev/ai-long-task / _invalidate_diversity_cache

Method _invalidate_diversity_cache

data/database.py:2166–2170  ·  view source on GitHub ↗

Invalidate the diversity cache when programs change significantly

(self)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected