def filter_completions(self, completions):
        # On Python 2, we have to make sure all completions are unicode objects before we continue and output them.
        # Otherwise, because python disobeys the system locale encoding and uses ascii as the default encoding, it will try
        # to implicitly decode string objects using ascii, and fail.
        if USING_PYTHON2:
            for i in range(len(completions)):
                if isinstance(completions[i], bytes):
                    completions[i] = completions[i].decode(sys_encoding)

        # De-duplicate completions and remove excluded ones
        if self.exclude is None:
            self.exclude = set()
        seen = set(self.exclude)
        return [c for c in completions if c not in seen and not seen.add(c)]
Is counter
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/packages/argcomplete/__init__.py/CompletionFinder.filter_completions--crossover with--dataset/ETHPy150Open wiliamsouza/hystrix-py/hystrix/rolling_number.py/RollingNumberEvent.is_counter