Skip to content

Add functions to create fingerprints from stemmed code, highlight code snippet matches from matchcode#1656

Merged
tdruez merged 9 commits into
mainfrom
snippet-matching-demo
Apr 28, 2025
Merged

Add functions to create fingerprints from stemmed code, highlight code snippet matches from matchcode#1656
tdruez merged 9 commits into
mainfrom
snippet-matching-demo

Conversation

@JonoYang
Copy link
Copy Markdown
Member

This PR adds MatchCode specific functions to create fingerprints from stemmed code (aboutcode-org/ai-gen-code-search#6). The CodebaseResource detail viewer has also been updated to highlight snippet matches from MatchCode. Snippet detection data is stored in the CodebaseResource.extra_data field and is queried and processed in the view.

keshav-space and others added 8 commits April 24, 2025 16:12
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
    * there is a bug in the code stemming function

Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
    * Update test js file

Signed-off-by: Jono Yang <jyang@nexb.com>
@tdruez
Copy link
Copy Markdown
Contributor

tdruez commented Apr 25, 2025

@JonoYang Is this ready for merge?

Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang
Copy link
Copy Markdown
Member Author

@tdruez Yes, I've also updated the changelog

@tdruez tdruez merged commit 77988dc into main Apr 28, 2025
13 checks passed
@tdruez tdruez deleted the snippet-matching-demo branch April 28, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants