import re


def get_habituation(s):
    """Get the type of maze from filename"""
    temp = re.split("_|\.|\ |\/", s.lower())
    names_part = ["habituation", "hab", "hab1", "hab2", "hab3", "hab4"]
    for name in temp:
        for parts in names_part:
            if parts in name:
                return 1
    return 0