def validate(self, event, event_params):
        def is_integer(value):
            try:
                int(value)
                return True
            except __HOLE__:
                return False

        result = EventHandler.validate(self, event, event_params)
        result &= is_integer(event_params.get('platformId', ''))
        result &= is_integer(event_params.get('applicationVersion', ''))
        return result
dataset/ETHPy150Open Nordeus/pushkin/pushkin/request/event_handlers.py/LoginEventHandler.validate