original_docstring:  insertion of a line after a line
          containing a token in a list of lines
          
docstring: insertion of a line after a line
  containing a token in a list of lines
docstring_tokens: insertion of a line after a line containing a token in a list of lines
code: def insert_after(cls,token, txt, line2add) :
          """ insertion of a line after a line
          containing a token in a list of lines
          """
          pattern = re.compile(line2add)
          def find_index(p) :
              for i,l in enumerate(txt) :
                  if p.match(l) : return i+1
              return 0
          if find_index(pattern) :
              return (False,txt)
          else :
              #### match for token
              pattern = re.compile(token)
              i = find_index(pattern)
              if i != 0 : txt.insert(i,line2add)
              return (True,txt)
code_tokens: def insert_after ( cls , token , txt , line2add ) : pattern = re . compile ( line2add ) def find_index ( p ) : for i , l in enumerate ( txt ) : if p . match ( l ) : return i + 1 return 0 if find_index ( pattern ) : return ( False , txt ) else : pattern = re . compile ( token ) i = find_index ( pattern ) if i != 0 : txt . insert ( i , line2add ) return ( True , txt )
short_docstring: insertion of a line after a line
  containing a token in a list of lines
short_docstring_tokens: insertion of a line after a line containing a token in a list of lines
comment: """ insertion of a line after a line
          containing a token in a list of lines
          """$SEP$#### match for token