def get_groupid(logL, tempLs):
    maxvalue = (- 1)
    for templ in tempLs:
        starnum = 0
        shot = 0
        for (idx, token) in enumerate(logL):
            if ((token == templ[1][idx]) or templ[1][idx].count('*')):
                shot += 1
            if templ[1][idx].count('*'):
                starnum += 1
        shot = (shot - starnum)
        if (shot > maxvalue):
            maxvalue = shot
            groupid = templ[0]
    return groupid
def get_groupid(logL, tempLs):
    maxvalue = (- 1)
    for templ in tempLs:
        starnum = 0
        shot = 0
        for (idx, token) in enumerate(logL):
            if ((token == templ[1][idx]) or templ[1][idx].count('*')):
                shot += 1
            if templ[1][idx].count('*'):
                starnum += 1
        shot = (shot - starnum)
        if (shot > maxvalue):
            maxvalue = shot
            groupid = templ[0]
    return groupid