MCPcopy
hub / github.com/huggingface/transformers / _should_continue

Function _should_continue

utils/check_copies.py:185–188  ·  view source on GitHub ↗
(line: str, indent: str)

Source from the content-addressed store, hash-verified

183
184
185def _should_continue(line: str, indent: str) -> bool:
186 # Helper function. Returns `True` if `line` is empty, starts with the `indent` or is the end parenthesis of a
187 # class/function definition
188 return line.startswith(indent) or len(line.strip()) == 0 or _is_definition_header_ending_line(line)
189
190
191def _sanity_check_splits(splits_1, splits_2, is_class, filename):

Callers 2

find_block_endFunction · 0.85
is_copy_consistentFunction · 0.85

Calls 1

Tested by

no test coverage detected