examples/research_projects/codeparrot/scripts/minhash_deduplication.py/DuplicationIndex/save
class DuplicationIndex:    def save(self, filepath) -> None:
        duplicate_clusters = self.get_duplicate_clusters()
        with open(filepath, "w") as f:
            json.dump(duplicate_clusters, f)