@register.filter
def rate_url(obj, score=1):
    return reverse('ratings_rate_object', args=(
        ContentType.objects.get_for_model(obj).pk,
        obj.pk,
        score,
    ))
Abstract validate function, that is heavily used by this class.
dataset/ETHPy150Open django-de/django-simple-ratings/ratings/templatetags/ratings_tags.py/rate_url--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/validation.py/ModuleValidator.validate