@manager.command
def analyze(foreign_id=None):
    """Re-analyze documents in the given source (or throughout)."""
    if foreign_id:
        source = Source.by_foreign_id(foreign_id)
        if source is None:
            raise ValueError(foreign_id % "No such source: %r")
        analyze_source.delay(source.id)
    else:
        for source in Source.all():
            analyze_source.delay(source.id)
dataset/ETHPy150Open pudo/aleph/aleph/manage.py/analyze/swapped operands of `%`