MCPcopy Create free account
hub / github.com/FLC777/GLAT / encode_line

Function encode_line

scripts/spm_encode.py:94–104  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

92 }
93
94 def encode_line(line):
95 line = line.strip()
96 if len(line) > 0:
97 line = encode(line)
98 if valid(line):
99 return line
100 else:
101 stats["num_filtered"] += 1
102 else:
103 stats["num_empty"] += 1
104 return None
105
106 for i, lines in enumerate(zip(*inputs), start=1):
107 enc_lines = list(map(encode_line, lines))

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.85
validFunction · 0.85

Tested by

no test coverage detected