def in_repo(self, filepath):
filepath = set(filepath.replace('<STR_LIT:\\>', '<STR_LIT:/>').split('<STR_LIT:/>'))<EOL>for p in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>if p in filepath:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
This excludes repository directories because they cause some exceptions
occationally.