<s> from firehose . model import Issue , Message , File , Location <EOL> import re <EOL> LINE_EXPR = re . compile ( r"<STR_LIT>" ) <EOL> def parse_desktop_file_validate ( lines ) : <EOL> for line in lines : <EOL> info = LINE_EXPR . match ( line ) . groupdict ( ) <EOL> path = info [ '<STR_LIT:path>' ] <EOL> message = info [ '<STR_LIT>' ] <EOL> severity = info [ '<STR_LIT>' ] <EOL> yield Issue ( cwe = None , <EOL> testid = None , <EOL> location = Location ( <EOL> file = File ( path , None ) , <EOL> function = None , <EOL> point = None ) , <EOL> severity = severity , <EOL> message = Message ( text = message ) , <EOL> notes = None , <EOL> trace = None ) </s>
