-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application to real case study #176
Comments
Hey @Avv22 , Our repository supports only Java and C#. https://arxiv.org/pdf/2202.13169.pdf Best, |
Thank you. I mean if we have a big software of source code in Java. What would be your strategy you decompose the software and give it to your tool please? |
Sorry, I don't understand you're question. |
Thank you for your quick reply. I just meant that if we have a complete system. How we can decompose it and pass if to your model so that it predicts the names of blocks inside the system? Do you suggest decomposing the system method-wise and then try to predict a name for each method? I was trying to use your tool to generate a script (name to tell what software does). |
Yes, this is basically what our preprocessing pipeline does automatically. |
Thank you very much. You split the code method-based, but can you please show (reference) where you do that in your code? Did you do it by yourself or you used a tool for that? |
First, our code goes through all files in the directory: Then, I used JavaParser to parse each file in the project, and traverse the resulting AST and extract "method nodes": But that's a very Java-specific pipeline, I wouldn't use the same code for JavaScript. |
@urialon. Thank you. Appreciate it. Would you recommend a similar PythonPraser for Python please to extract the method node if possible? |
Yes, Best, |
Thanks. The Python extractor you developed works similarily to how JavaParser works by extracting method node form python AST source code, please? |
It was contributed from the community, so it might be a little different. I think that by default, it was designed to process a specific dataset. However its logic is the same and its output fits the code2seq model. Best, |
Hello Code2Vec team,
Could you please give some hints giving a whole software of code written in different programming languages, how it's possible to apply your tool on it?
The text was updated successfully, but these errors were encountered: