def npgettext(context, singular, plural, num, **variables):
    """Like :func:`ngettext` but with a context.
    """
    variables.setdefault('num', num)
    t = get_translations()
    if variables:
        if t is None:
            return (singular if num == 1 else plural) % variables
        return variables % t.unpgettext(context, singular, plural, num)
    if t is None:
        return (singular if num == 1 else plural)
    return t.unpgettext(context, singular, plural, num)
dataset/ETHPy150Open gengo/decanter/decanter/lib/i18n.py/npgettext/swapped operands of `%`