def get_candidate_or_assignee(commentators, assignee):
    """If assignee post comments. At least half of most common commentator, return assignee.
    Most common otherwise."""

    most_common, count = commentators.most_common(1)[0]
    if commentators[assignee] / count >= 0.5:
        return assignee
    return most_common