def printProblem(m, extras, project, out):
    fileName = os.path.basename(m[0])
    message = m[3] + extras
    
    if m[2] == "error":
        rowType = "primary"
    else:
        rowType = "secondary"
        
    out << Block("problemBox problem-%s" % m[2]) \
            << Span("problemMessage") << message << Close \
            << FileLink("problemLink", basePath=project.path, path=m[0], lineNo=m[1], rowType=rowType) \
                << "%s (line %s)" % (fileName, m[1]) \
            << Close \
        << Close
dataset/ETHPy150Open joehewitt/devon/devon/parsers/gcc.py/printProblem/original