

def validate(self, event, event_params):

    def is_integer(value):
        try:
            int(value)
            return True
        except ValueError:
            return False
    result = EventHandler.validate(self, event, event_params)
    result &= is_integer(event.get('platformId', ''))
    result &= is_integer(event_params.get('applicationVersion', ''))
    return result

dataset/ETHPy150Open Nordeus/pushkin/pushkin/request/event_handlers.py LoginEventHandler.validate/VarMisuse@63/75 `event_params`->`event`