

def analyse_text(text):
    rv = 0.0
    if re.search('<\\?(?!xml)', text):
        rv += 0.3
    if ('?>' in text):
        rv += 0.1
    return rv

dataset/ETHPy150Open adieu/allbuttonspressed/pygments/lexers/web.py PhpLexer.analyse_text/original