Closed smith-co closed 2 years ago
I suggest you can use UniXcoder https://github.com/microsoft/CodeBERT/tree/master/UniXcoder#1-code-and-nl-embeddings. It can extract embeddings for JavaScript and Python code, even for incomplete snippet. For code search, you can follow this https://github.com/microsoft/CodeBERT/tree/master/UniXcoder#2-similarity-between-code-and-nl
I am looking into the following example to extract code embedding.
I have the following two questions:
a) Can I use CodeBERT to extract embedding for JavaScript and Python code? b) Can I feed incomplete code JavaScript and Python snippet to extract embedding? Or the code snippet needs to be complete? c) Have anyone used CodeBERT to perform code to code search?