def process_token(self, tok):
if(tok[<NUM_LIT:0>].__str__() in ('<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>')):<EOL><INDENT>self.comments += tok[<NUM_LIT:1>].count('<STR_LIT:\n>')+<NUM_LIT:1><EOL><DEDENT>elif(tok[<NUM_LIT:0>].__str__() in ('<STR_LIT>')):<EOL><INDENT>self.comments += <NUM_LIT:1><EOL><DEDENT>elif(self.contains_code and tok[<NUM_LIT:0>].__str__().startswith('<STR_LIT>')<EOL>and tok[<NUM_LIT:1>].count(u'<STR_LIT:\n>')):<EOL><INDENT>self.contains_code = False<EOL>self.sloc += <NUM_LIT:1><EOL><DEDENT>elif(tok[<NUM_LIT:0>].__str__() == '<STR_LIT>' and<EOL>tok[<NUM_LIT:1>].count(u'<STR_LIT:\n>')):<EOL><INDENT>self.contains_code = False<EOL>self.sloc += <NUM_LIT:1><EOL><DEDENT>elif(tok[<NUM_LIT:0>][<NUM_LIT:0>] in token_types):<EOL><INDENT>self.contains_code = True<EOL><DEDENT>
count comments and non-empty lines that contain code