26 matches across 1 files for func main path:libs/text-splitters/langchain_text_splitters/character.py
snippet_mode: grep · sorted by relevance
libs/text-splitters/langchain_text_splitters/character.py PYTHON 26 matches · showing 5 view file →
133 separator_ = "" if self._keep_separator else separator
134 for s in splits:
135 if self._length_function(s) < self._chunk_size:
136 good_splits.append(s)
137 else:
· · ·
197 # Split along class definitions
198 "\nclass ",
199 # Split along function definitions
200 "\nvoid ",
201 "\nint ",
· · ·
216 if language == Language.GO:
217 return [
218 # Split along function definitions
219 "\nfunc ",
220 "\nvar ",
· · ·
219 "\nfunc ",
220 "\nvar ",
221 "\nconst ",
· · ·
280 if language == Language.JS:
281 return [
282 # Split along function definitions
283 "\nfunction ",
284 "\nconst ",
+ 21 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.