def remove_comments(text):
def _replacer(match):<EOL><INDENT>if match.group(<NUM_LIT:2>) is not None:<EOL><INDENT>return "<STR_LIT>"  <EOL><DEDENT>else:  <EOL><INDENT>return match.group(<NUM_LIT:1>)  <EOL><DEDENT><DEDENT>return COMMENT_PATTERN.sub(_replacer, text)<EOL>
Remove C and Javascript style comments like // [...] and /* [...] */ from
    the given text.