def get_user_data(entry):
  if "user" in entry.keys():
    return {"user_name": entry["user"]["login"],
            "avatar": "%s&s=128" % entry["user"]["avatar_url"],
            "name": get_user_name(entry["user"]["login"])}
  else:
    return {"user_name": entry["login"],
            "avatar": "%s&s=128" % entry["avatar_url"],
            "name": get_user_name(entry["login"])}
dataset/ETHPy150Open LABHR/octohatrack/octohatrack/helpers.py/get_user_data/original