sturdy-dev / semantic-code-search

Search your codebase with natural language • CLI • No data leaves your computer
GNU Affero General Public License v3.0
297 stars 26 forks source link

support C/C++ #14

Closed adlternative closed 1 year ago

adlternative commented 1 year ago

I love this fun and crazy project, can you make it support c/c++?

krlvi commented 1 year ago

sure thing! just did in https://github.com/sturdy-dev/semantic-code-search/commit/b5ec8904e4c2c3b6f98a2687391e927abebbe32a

There's a new release https://pypi.org/project/semantic-code-search/0.2.0/ do a

pip install semantic-code-search --upgrade

to get it

adlternative commented 1 year ago

Great!

Hustcw commented 10 months ago

I am curious about the direct support for C/C++ functions. I noticed that the commit at https://github.com/sturdy-dev/semantic-code-search/commit/b5ec8904e4c2c3b6f98a2687391e927abebbe32a introduced functionality for extracting C/C++ functions. However, I am a bit puzzled since, as far as I understand, the model is trained on the code_search_net dataset, which, to my knowledge, doesn't include C/C++ datasets. Could you kindly provide some insight into how this integration was achieved?