MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / append

Method append

rat-sql-gap/seq2struct/utils/indexed_file.py:22–25  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

20 self.index_f = open(path + '.index', 'wb')
21
22 def append(self, record):
23 offset = self.f.tell()
24 self.f.write(record)
25 self.index_f.write(struct.pack('<Q', offset))
26
27 def close(self):
28 self.f.close()

Callers 15

get_span_labelsFunction · 0.80
filter_head_predictionFunction · 0.80
pad_sequencesFunction · 0.80
_sorted_checkpointsMethod · 0.80
predictMethod · 0.80
to_sanitized_dictMethod · 0.80
_sorted_checkpointsMethod · 0.80
get_sequenceMethod · 0.80
__call__Method · 0.80
get_sequenceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected