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]
   if (not line.lstrip().startswith(u'#')):
    continue
   if (token_type == tokenize.COMMENT):
    stripped_line = token_string.lstrip(u'#').strip()
    if ((u' ' in stripped_line) and (u'#' not in stripped_line) and check_syntax(stripped_line)):
     line_numbers.append(start_row)
 except (SyntaxError, tokenize.TokenError):
  pass
 return line_numbers

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 ] if ( not line . lstrip ( ) . startswith ( u'#' ) ) : continue if ( token_type == tokenize . COMMENT ) : stripped_line = token_string . lstrip ( u'#' ) . strip ( ) if ( ( u' ' in stripped_line ) and ( u'#' not in stripped_line ) and check_syntax ( stripped_line ) ) : line_numbers . append ( start_row ) except ( SyntaxError , tokenize . TokenError ) : pass return line_numbers
return line numbers of comments that are likely code .