def METHOD_NAME(project_with_creation_date, with_injection) -> Generator[RenkuProject, None, None]:
    """A project with runs."""
    from renku.domain_model.provenance.activity import Activity
    from renku.infrastructure.gateway.activity_gateway import ActivityGateway
    def create_activity(plan, date, index) -> Activity:
        """Create an activity with id /activities/index."""
        return Activity.from_plan(
            plan=plan,
            repository=project_with_creation_date.repository,
            id=Activity.generate_id(str(index)),
            started_at_time=date,
            ended_at_time=date + timedelta(seconds=1),
        )
    date_1 = datetime(2022, 5, 20, 0, 42, 0, tzinfo=timezone.utc)
    date_2 = datetime(2022, 5, 20, 0, 43, 0, tzinfo=timezone.utc)
    plan_1 = create_dummy_plan(
        command="command-1",
        date_created=date_1,
        description="First plan",
        index=1,
        inputs=["input"],
        keywords=["plans", "1"],
        name="plan-1",
        outputs=[("intermediate", "stdout")],
        parameters=[("parameter-1", "42", "-n ")],
        success_codes=[0, 1],
    )
    plan_2 = create_dummy_plan(
        command="command-2",
        date_created=date_2,
        description="Second plan",
        index=2,
        inputs=["intermediate"],
        keywords=["plans", "2"],
        name="plan-2",
        outputs=[("output", "stdout")],
        parameters=[("int-parameter", 43, "-n "), ("str-parameter", "some value", None)],
    )
    with with_injection():
        activity_1 = create_activity(plan_1, date_1, index=1)
        activity_2 = create_activity(plan_2, date_2, index=2)
        activity_gateway = ActivityGateway()
        activity_gateway.add(activity_1)
        activity_gateway.add(activity_2)
    project_with_creation_date.repository.add(all=True)
    project_with_creation_date.repository.commit("Add runs")
    yield project_with_creation_date