def METHOD_NAME(self, song):
    if song is not None:
        ups = int(song("~#wins") or 0)
        downs = int(song("~#losses") or 0)
        # Handle case where there's no score but user has a defined rating.
        if (ups + downs == 0) and (song.get("~#rating")):
            percent = song["~#rating"]
            ups = int(percent * 10)
            downs = int((1.0 - percent) * 10.0)
            song["~#wins"] = ups
            song["~#losses"] = downs
        elif song.get("~#rating") and \
            abs((ups / max((ups + downs), 2)) - song["~#rating"]) > \
                self.score_point_threshold:
            # Cases where rating and points are not in alignment.
            total = max(ups + downs, 10)
            percent = song["~#rating"]
            ups = int(percent * total)
            downs = int((1.0 - percent) * total)
            song["~#wins"] = ups
            song["~#losses"] = downs
        self.rating_box.set_current_score(ups, downs)
        self.rating_box.set_current_title(song("~artist~title"))