def log_name(environ):
    path = environ['PATH_INFO']
    if path[0] == '/':
        path = path[1:]
    match = re.search('htmlify/(.*)', path)
    if match:
        raw = match.groups(1)[0]
        return raw

    return path
dataset/ETHPy150Open openstack-infra/os-loganalyze/os_loganalyze/generator.py/log_name/original