

def detectFileType(inFile):
    firstLine = inFile.readline()
    secondLine = inFile.readline()
    thirdLine = inFile.readline()
    inFile.seek(0)
    if ((firstLine.find('nmap') != (- 1)) and (thirdLine.find('Host:') != (- 1))):
        if ((firstLine.find('-sV') != (- 1)) or (thirdLine.find('-A') != (- 1)) or (firstLine.find('-sSV') != (- 1))):
            return 'gnmap'
        else:
            utility.Msg('Nmap version detection not used! Discovery module may miss some hosts!', LOG.INFO)
            return 'gnmap'
    else:
        return None

dataset/ETHPy150Open hatRiot/clusterd/src/module/discovery.py detectFileType/VarMisuse@91/114 `firstLine`->`thirdLine`