MCPcopy Create free account
hub / github.com/apache/arrow / apply_template

Function apply_template

cpp/src/gandiva/make_precompiled_bitcode.py:32–35  ·  view source on GitHub ↗
(template, data)

Source from the content-addressed store, hash-verified

30
31
32def apply_template(template, data):
33 if template.count(marker) != 1:
34 raise ValueError("Invalid template")
35 return template.replace(marker, expand(data))
36
37
38if __name__ == "__main__":

Callers 1

Calls 2

expandFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected