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

Method add_data

test/general/lm_eval/decontamination/archiver.py:31–37  ·  view source on GitHub ↗
(self, data, meta={})

Source from the content-addressed store, hash-verified

29 self.compressor = self.cctx.stream_writer(self.fh)
30
31 def add_data(self, data, meta={}):
32 self.compressor.write(
33 json.dumps({"text": data, "meta": meta}, default=json_serial).encode(
34 "UTF-8"
35 )
36 + b"\n"
37 )
38
39 def commit(self):
40 self.compressor.flush(zstandard.FLUSH_FRAME)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected