MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / remove_comments

Function remove_comments

scripts/replace_copyright.py:151–154  ·  view source on GitHub ↗
(line, comment_strs)

Source from the content-addressed store, hash-verified

149
150
151def remove_comments(line, comment_strs):
152 for cstr in comment_strs:
153 line = line.replace(cstr, "")
154 return line
155
156
157def format_multiline_comment(text, comment_type):

Callers 1

modify_file_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected