def search(self, query):
        response = self.command('search -qbd', query)[0].decode(*enc)
        from re import match
        lst = {}
        desc = False
        blank = False
        for line in [l for l in response.splitlines() if not match('\*\*\*',l)]:
            if not desc and match('(.*)\((.*)\)', line):
                key, val = match('(.*)\((.*)\)', line).groups()
                lst[self.package_name(key)] = 'Version: ' + val + '\n'
                desc = True
            elif desc and not blank and not line:
                blank = True
            elif desc and line in 'Homepage:':
                lst[self.package_name(key)] += line.replace('Homepage: ', '').strip() + '\n'
            elif desc and blank and line:
                lst[self.package_name(key)] += line.strip() + ' '
            elif desc and blank and not line:
                desc = False
                blank = False
        return lst
dataset/ETHPy150Open Aeronautics/aero/aero/adapters/gem.py/Gem.search/swapped operands of `in`