{"id":{"repo_id":"rice","oai_identifier":"oai:repository.rice.edu:1911/105464"},"canonical_url":"https://search.ndltd.org/etd/rice/oai:repository.rice.edu:1911/105464","repository":{"repo_id":"rice","name":"Rice University","base_url":"https://repository.rice.edu/server/oai/request"},"display":{"title":"Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models","abstract":"A Natural API is a collection of API methods that tend to be used following certain discernible statistical patterns in real-world code. In this thesis, I present a method for learning an interpretable statistical model for such natural APIs. My model is trained on sequences of API calls produced from large software repositories through program analysis. Once trained, the model is able to recognize complex temporal dependences between methods, including methods that technically belong to different APIs, and can be used as a proxy for formal correctness specifications. Our experiments train the model on sequences of method calls generated from over 150 million lines of Android code. We evaluate the learned model by measuring accuracy in learnt specifications from the corpus, completing code with missing API calls, and searching for code that uses APIs in a way that matches a query. Our encouraging results indicate that statistical models of API calls learned from large code corpora can have broad value in software engineering.","abstract_html":"A Natural API is a collection of API methods that tend to be used following certain discernible statistical patterns in real-world code. In this thesis, I present a method for learning an interpretable statistical model for such natural APIs. My model is trained on sequences of API calls produced from large software repositories through program analysis. Once trained, the model is able to recognize complex temporal dependences between methods, including methods that technically belong to different APIs, and can be used as a proxy for formal correctness specifications. Our experiments train the model on sequences of method calls generated from over 150 million lines of Android code. We evaluate the learned model by measuring accuracy in learnt specifications from the corpus, completing code with missing API calls, and searching for code that uses APIs in a way that matches a query. Our encouraging results indicate that statistical models of API calls learned from large code corpora can have broad value in software engineering.","abstract_has_math":false,"creators":["Mukherjee, Rohan"],"institution":"Rice University","degree_name":"Master of Science","degree_level":"Masters","degree_discipline":"Engineering","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Jermaine, Christopher"],"committee_chairs":[],"committee_members":[],"year":2017,"date_issued":"2017-10-26","date_published":"2017-10-26","updated_at":"2026-11-19T09:20:59Z","subjects":["Hidden Markov Model","Topic Model","Specification Mining","API Prediction","Data Mining","Software Engineering"],"languages":["eng"],"rights":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Mukherjee, Rohan. \"Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models.\" (2017) Master’s Thesis, Rice University. <a href=\"https://hdl.handle.net/1911/105464\">https://hdl.handle.net/1911/105464</a>."],"render_values":[{"text":"Mukherjee, Rohan. \"Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models.\" (2017) Master’s Thesis, Rice University. <a href=\"https://hdl.handle.net/1911/105464\">https://hdl.handle.net/1911/105464</a>.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1911/105464","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1911/105464","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Arice%3Aoai%3Arepository.rice.edu%3A1911%2F105464","prefix":"oai_dc"},"source_record":{"url":"https://repository.rice.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepository.rice.edu%3A1911%2F105464","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Jermaine, Christopher"]},{"key":"dc:creator","label":"Author","values":["Mukherjee, Rohan"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2019-05-16T20:01:03Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2019-05-16T20:01:03Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2017-08"]},{"key":"dc:date.issued","label":"Date","values":["2017-10-26"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["August 2017"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2019-05-16T20:01:03Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","Text"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Rice University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Hidden Markov Model","Topic Model","Specification Mining","API Prediction","Data Mining","Software Engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Mukherjee, Rohan. \"Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models.\" (2017) Master’s Thesis, Rice University. <a href=\"https://hdl.handle.net/1911/105464\">https://hdl.handle.net/1911/105464</a>."]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1911/105464"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["A Natural API is a collection of API methods that tend to be used following certain discernible statistical patterns in real-world code. In this thesis, I present a method for learning an interpretable statistical model for such natural APIs. My model is trained on sequences of API calls produced from large software repositories through program analysis. Once trained, the model is able to recognize complex temporal dependences between methods, including methods that technically belong to different APIs, and can be used as a proxy for formal correctness specifications. Our experiments train the model on sequences of method calls generated from over 150 million lines of Android code. We evaluate the learned model by measuring accuracy in learnt specifications from the corpus, completing code with missing API calls, and searching for code that uses APIs in a way that matches a query. Our encouraging results indicate that statistical models of API calls learned from large code corpora can have broad value in software engineering."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Jermaine, Christopher"],"dc:creator":["Mukherjee, Rohan"],"dc:date.accessioned":["2019-05-16T20:01:03Z"],"dc:date.available":["2019-05-16T20:01:03Z"],"dc:date.created":["2017-08"],"dc:date.issued":["2017-10-26"],"dc:date.submitted":["August 2017"],"dc:date.updated":["2019-05-16T20:01:03Z"],"dc:description.abstract":["A Natural API is a collection of API methods that tend to be used following certain discernible statistical patterns in real-world code. In this thesis, I present a method for learning an interpretable statistical model for such natural APIs. My model is trained on sequences of API calls produced from large software repositories through program analysis. Once trained, the model is able to recognize complex temporal dependences between methods, including methods that technically belong to different APIs, and can be used as a proxy for formal correctness specifications. Our experiments train the model on sequences of method calls generated from over 150 million lines of Android code. We evaluate the learned model by measuring accuracy in learnt specifications from the corpus, completing code with missing API calls, and searching for code that uses APIs in a way that matches a query. Our encouraging results indicate that statistical models of API calls learned from large code corpora can have broad value in software engineering."],"dc:format.mimetype":["application/pdf"],"dc:identifier.citation":["Mukherjee, Rohan. \"Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models.\" (2017) Master’s Thesis, Rice University. <a href=\"https://hdl.handle.net/1911/105464\">https://hdl.handle.net/1911/105464</a>."],"dc:identifier.uri":["https://hdl.handle.net/1911/105464"],"dc:language.iso":["eng"],"dc:rights":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."],"dc:subject":["Hidden Markov Model","Topic Model","Specification Mining","API Prediction","Data Mining","Software Engineering"],"dc:title":["Mining Natural APIs from Large Code Corpora using a Mixture of Hidden Markov Models"],"dc:type":["Thesis","Text"],"others:access_status":["open.access"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Engineering"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Rice University"]},"updated_at":"2026-11-19T09:20:59Z"}