-
Notifications
You must be signed in to change notification settings - Fork 20
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
Code or tool for pre-processing source code #2
Comments
Dear Author, We now parse the AST for each extracted function and then extract the API sequence, in which way the dependencies to other classes are missing. We find in the deep API paper chapter 4.1.1 , it's based on the whole project and use an extraction algorithm to analyze the dependencies of the whole project. Could you please share with us the code for the extraction algorithm and API sequence extraction or give us some clue? Great thanks to you. |
@ttbuffey please provide your email address. |
@guxd I want to confirm that in the Code2APIseq.zip project, the entry file is Code2APIseq.java, this project takes a function body as input and return its API sequences, right? It doesn't contain the code of analyzing the dependencies of the whole project, right? |
yes, that part is omitted. |
@guxd thanks again for sharing the project to me. I think the project dependencies is a key part in API sequence extraction, right? Could you please also help to share with me that part of code? We really come to bottleneck in improving the search performance, seeing from the code you shared with me, it's really difficult and takes tremendous time for me to implement it, especially when i'm not good at java language. I have implemented the API extraction based on each function in python language using the javalang library(https://github.com/c2nes/javalang) you shared with us before, but the javalang library doesn't support project dependencies analysis. Sincerely hope you can help again. |
The code for dependency analysis is included in the package. (see Line 73 at ObjSeqBuilder.java). We just modified the main function. |
thanks for your confirmation |
@guxd I have read the code, I have two questions addressed as below. It will be appreciated if you could give me some guidance.
Thanks very much. I have tried to understand the code with my limited knowledge.🤦♀️ |
@guxd |
@guxd 可以简单说一下main函数中解析整个项目依赖的关键过程吗?project信息是以什么方式传送到整个代码的实现中呢? |
Hello, did you get the point on how to do the dependency analysis? |
@JiyangZhang We follow the GrouMiner and their code for the project dependency analysis. |
Thank you very much for reply! |
The link works in my network. Yes, it contains all code for extracting API sequence. |
great thanks. |
Could you check whether the APIs in the example is included in the JDKAPI.java? |
Hi, could you share the code you used to extract the api sequence? |
The raw code is not at hand now. The demo code is very close to the code that DeepAPI used. |
Hello! |
Can you also provide the code or tool for pre-processing source code?
(parsing source code, and extracting api sequences etc.)
Thanks!
The text was updated successfully, but these errors were encountered: