Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Code snippet extraction pipeline step #130

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 29, 2024

Adds a new pipeline step that extracts code snippets and saves them into
the context. The code snippets are just saved to the context, we don't
do anything with them yet.

Fixes: #46

def __init__(self):
"""Initialize the CodeSnippetExtractor pipeline step."""
super().__init__()
self.__logger = setup_logging()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: With the new logging we should be able to add this to the top of the file and then just use a logger in the rest of the file

import structlog

logger = structlog.get_logger("codegate")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, that's no a nit, I will rebase atop the logging patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!

Adds a new pipeline step that extracts code snippets and saves them into
the context. The code snippets are just saved to the context, we don't
do anything with them yet.

Fixes: #46
@jhrozek jhrozek merged commit db2ff1c into stacklok:main Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Snippets extraction on input
2 participants