MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_indent

Function get_indent

diffusers/utils/check_copies.py:86–93  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

84
85
86def get_indent(code):
87 lines = code.split("\n")
88 idx = 0
89 while idx < len(lines) and len(lines[idx]) == 0:
90 idx += 1
91 if idx < len(lines):
92 return re.search(r"^(\s*)\S", lines[idx]).groups()[0]
93 return ""
94
95
96def run_ruff(code):

Callers 2

stylifyFunction · 0.70
is_copy_consistentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected