def tagCandidateFilterCheck(word, candidate): symbols = word.split("@") if len(symbols) == 1: return CommonUtil.fileMatch(symbols[0], candidate.path) elif len(symbols) == 2: passFlag = True if symbols[0] is not "": passFlag = CommonUtil.fileMatch(symbols[0], candidate.path) if passFlag and symbols[1] is not "": passFlag = CommonUtil.wordMatch(symbols[1], candidate.codeSnip) return passFlag return True
def _candidateFilterCheck(self, word, candidate): return CommonUtil.wordMatch(word, candidate.symbol)