original_docstring: Check if we should remove lines, then do it.
      Return the numner of lines removed.
      
docstring: Check if we should remove lines, then do it.
  Return the numner of lines removed.
docstring_tokens: Check if we should remove lines then do it . Return the numner of lines removed .
code: def add_lines(fname, entries):
      """Check if we should remove lines, then do it.
      Return the numner of lines removed.
      """
      EXPECTED_BLANK_LINES = (
          'E302',  # 'expected 2 blank limes, found 1'
          'E305')  # ìexpected 2 blank lines after class or fun definition'
      to_add = {}
      for entry in entries:
          msg, issue, lineno, pos, descr = entry
          if issue in EXPECTED_BLANK_LINES:
              howmany = 2 if descr.endswith('0') else 1
              to_add[lineno] = howmany
  
      if to_add:
          newlines = []
          for i, line in enumerate(read_lines(fname), 1):
              if i in to_add:
                  newlines.append('\n' * to_add[i])
              newlines.append(line)
          print("adding line(s) to %s" % fname)
          write_file(fname, newlines)
  
      return len(to_add)
code_tokens: def add_lines ( fname , entries ) : EXPECTED_BLANK_LINES = ( 'E302' , 'E305' ) to_add = { } for entry in entries : msg , issue , lineno , pos , descr = entry if issue in EXPECTED_BLANK_LINES : howmany = 2 if descr . endswith ( '0' ) else 1 to_add [ lineno ] = howmany if to_add : newlines = [ ] for i , line in enumerate ( read_lines ( fname ) , 1 ) : if i in to_add : newlines . append ( '\n' * to_add [ i ] ) newlines . append ( line ) print ( "adding line(s) to %s" % fname ) write_file ( fname , newlines ) return len ( to_add )
short_docstring: Check if we should remove lines, then do it.
short_docstring_tokens: Check if we should remove lines then do it .
comment: """Check if we should remove lines, then do it.
      Return the numner of lines removed.
      """$SEP$# 'expected 2 blank limes, found 1'$SEP$# ìexpected 2 blank lines after class or fun definition'