MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / clean_cpp

Method clean_cpp

test/general/lm_eval/decontamination/janitor.py:197–201  ·  view source on GitHub ↗
(self, dirty_string)

Source from the content-addressed store, hash-verified

195 )
196
197 def clean_cpp(self, dirty_string):
198 contamination_indices = janitor_util.clean_ngram_with_indices(
199 dirty_string, self.delete_chars, self.ngram_n
200 )
201 return self._split_chunks(dirty_string, contamination_indices)
202
203 ##############
204 # Slow python

Callers 1

cleanMethod · 0.95

Calls 1

_split_chunksMethod · 0.95

Tested by

no test coverage detected