api-mining icon indicating copy to clipboard operation
api-mining copied to clipboard

Questions about your paper

Open zhuzhujulie opened this issue 7 years ago • 3 comments

Dear author, Can you tell me , how did you collect projects from github? Includint the libraries client classes and the libraries example classes. Also in the java file of "WildcardNamespaceCollector.java", what does the parameter "corpusFolder" represent for?

zhuzhujulie avatar Dec 28 '17 08:12 zhuzhujulie

And i also find when i run the java file of "APICallExtractor" using the Intermediate data you give, the api sequences results seem to be the sequence of MAPO, cause it contains parameters and the brunch structure are not merged to one sequence.

zhuzhujulie avatar Dec 28 '17 08:12 zhuzhujulie

Hi, In answer to your questions:

  • we used the Github Java corpus (see http://groups.inf.ed.ac.uk/cup/javaGithub/), a collection of Java project source files downloaded from GitHub, and the exact procedure is described in detail in the dataset section on p. 8 of our paper.
  • we used APICallExtractor.java to extract all the API call sequences from the source files we collected above into an .arff file. You then have to run MAPO/UPMiner/PAM on this .arff file to mine the actual API call patterns from all the API call sequences (see the README).
  • the parameter corpusFolder in WildcardNamespaceCollector.java is the folder containing the Github Java corpus described above.

Hope that helps, please let me know if you have any more questions.

jfowkes avatar Dec 28 '17 09:12 jfowkes

Yes we used the projects listed in Table 1 in the paper, these are the top ranked projects on GitHub rather than forks or clones. If you search for them on GitHub the full project name will always be the top hit, e.g. for hadoop it’s apache/hadoop etc.

On 28 Dec 2017, at 13:45, zhuzhujulie [email protected] wrote:

Dear author, I want to run the "WildcardNamespaceCollector.java" by myself in order to see how it works. but there similar projects in the java crops . For example, the project "hadoop", there are more than one "hadoop project" in the java crops, and i don't know which one to download. can you tell me those specific projects that you use in your experiment?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mast-group/api-mining/issues/2#issuecomment-354290696, or mute the thread https://github.com/notifications/unsubscribe-auth/AFU9EPmE7i6I98agfMa958QyJAAfKd5Uks5tE5t3gaJpZM4ROHhX.

jfowkes avatar Dec 28 '17 15:12 jfowkes