def _is_anything_modified():
    MODIFICATION_FLAG = False
    CHECKED_STAT = []
    REMOVED_STAT = []
    exclude = ('assets', 'db', 'migrations')
    
    for dirpath, dirnames, filenames in os.walk('./applications', topdown=True):
        del dirnames
        dirpart = dirpath.split('/')
        if len(dirpart)>3 and dirpart[3] in exclude:
            continue
        for filename in filenames:
            absolute_filename = os.path.join(dirpath, filename)
            if not os.path.exists(absolute_filename):
                continue
            last_change = _get_modification_date(absolute_filename)
            # check if there are some added or edited files
            if (FILE_STAT not in absolute_filename) or (FILE_STAT[absolute_filename] != last_change):
                FILE_STAT[absolute_filename] = last_change
                MODIFICATION_FLAG = True
            CHECKED_STAT.append(absolute_filename)
    # check if there are some deleted files
    for absolute_filename in FILE_STAT:
        if absolute_filename not in CHECKED_STAT:
            REMOVED_STAT.append(absolute_filename)
            MODIFICATION_FLAG = True
    # delete it from FILE_STAT
    for absolute_filename in REMOVED_STAT:
        FILE_STAT.pop(absolute_filename,None)
    return MODIFICATION_FLAG
dataset/ETHPy150Open goFrendiAsgard/kokoropy/rossian.py/_is_anything_modified/swapped operands of `not in`