<filename>sponge-examples-projects/sponge-examples-project-spring-boot/sponge/sponge.py<gh_stars>1-10
"""
Sponge Knowledge Base
"""

def onInit():
    sponge.addCategories(
        CategoryMeta("spring").withLabel("Spring").withPredicate(lambda processor: processor.kb.name in ("boot", "python")),
        CategoryMeta("admin").withLabel("Admin").withPredicate(lambda processor: processor.kb.name in ("admin"))
    )

<filename>sponge-examples-projects/sponge-examples-project-spring-boot/sponge/sponge.py<gh_stars>1-10
"""
Sponge Knowledge Base
"""

def onInit():
    sponge.addCategories(
        CategoryMeta("spring").withLabel("Spring").withPredicate(lambda processor: processor.kb.name in ("boot", "python")),
        CategoryMeta("admin").withLabel("Admin").withPredicate(lambda processor: processor.kb.name in ("admin"))
    )

Sponge Knowledge Base