MCPcopy
hub / github.com/eth-sri/lmql / split

Method split

src/lmql/ops/ops.py:122–136  ·  view source on GitHub ↗
(self, v, separator)

Source from the content-addressed store, hash-verified

120 return stc + end
121
122 def split(self, v, separator):
123 result = ()
124
125 current = ""
126 for c in v:
127 if c in separator:
128 result += (current + c,)
129 current = ""
130 else:
131 current += c
132 if len(current) > 0:
133 result += (current,)
134 if len(result) == 0:
135 return ("",)
136 return result
137
138 def follow(self, x, **kwargs):
139 v = strip_next_token(x)

Callers 15

forwardMethod · 0.95
followMethod · 0.95
format_command_lineFunction · 0.80
fetchFunction · 0.80
forwardMethod · 0.80
attrFunction · 0.80
addMethod · 0.80
preprocess_textFunction · 0.80
compileMethod · 0.80
remove_indentationFunction · 0.80
ast_parseFunction · 0.80
digestMethod · 0.80

Calls

no outgoing calls

Tested by 1

digestMethod · 0.64