parameters: (source)
return_statement: return line_numbers
docstring: Return line numbers of comments that are likely code.
  
      Commented-out code is bad practice, but modifying it just adds even
      more clutter.
docstring_summary: Return line numbers of comments that are likely code.
docstring_tokens: Return line numbers of comments that are likely code .
function: def commented_out_code_lines(source):
      """Return line numbers of comments that are likely code.
  
      Commented-out code is bad practice, but modifying it just adds even
      more clutter.
  
      """
      line_numbers = []
      try:
          for t in generate_tokens(source):
              token_type = t[0]
              token_string = t[1]
              start_row = t[2][0]
              line = t[4]
  
              # Ignore inline comments.
              if not line.lstrip().startswith('#'):
                  continue
  
              if token_type == tokenize.COMMENT:
                  stripped_line = token_string.lstrip('#').strip()
                  if (
                      ' ' in stripped_line and
                      '#' not in stripped_line and
                      check_syntax(stripped_line)
                  ):
                      line_numbers.append(start_row)
      except (SyntaxError, tokenize.TokenError):
          pass
  
      return line_numbers
function_tokens: def commented_out_code_lines ( source ) : line_numbers = [ ] try : for t in generate_tokens ( source ) : token_type = t [ 0 ] token_string = t [ 1 ] start_row = t [ 2 ] [ 0 ] line = t [ 4 ] # Ignore inline comments. if not line . lstrip ( ) . startswith ( '#' ) : continue if token_type == tokenize . COMMENT : stripped_line = token_string . lstrip ( '#' ) . strip ( ) if ( ' ' in stripped_line and '#' not in stripped_line and check_syntax ( stripped_line ) ) : line_numbers . append ( start_row ) except ( SyntaxError , tokenize . TokenError ) : pass return line_numbers