def _divide_with_ceil(a, b):
    """
    Returns 'a' divded by 'b', with any remainder rounded up.
    """
    if a % b:
        return (a // b) + 1
    return a // b
dataset/ETHPy150Open tomchristie/django-rest-framework/rest_framework/pagination.py/_divide_with_ceil/original