original_docstring: Replace ANSI codes and return the list of codes.
docstring: Replace ANSI codes and return the list of codes.
docstring_tokens: Replace ANSI codes and return the list of codes .
code: def rep_ansi(self, text):
          """Replace ANSI codes and return the list of codes."""
          patt = re.compile(r'({})'.format(
              '|'.join(['\{.*?\}'] + list(self.ansi.codes.keys()))))
          stext = patt.sub("{}", text)
          matches = patt.findall(text)
          return stext, matches
code_tokens: def rep_ansi ( self , text ) : patt = re . compile ( r'({})' . format ( '|' . join ( [ '\{.*?\}' ] + list ( self . ansi . codes . keys ( ) ) ) ) ) stext = patt . sub ( "{}" , text ) matches = patt . findall ( text ) return stext , matches
short_docstring: Replace ANSI codes and return the list of codes.
short_docstring_tokens: Replace ANSI codes and return the list of codes .
comment: """Replace ANSI codes and return the list of codes."""