{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,16]],"date-time":"2026-09-16T02:16:27Z","timestamp":1789524987010,"version":"build-2803163510"},"reference-count":24,"publisher":"MDPI AG","issue":"4","license":[{"start":{"date-parts":[[2017,11,17]],"date-time":"2017-11-17T00:00:00Z","timestamp":1510876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100006108","name":"Kult\u00farna a Eduka\u010dn\u00e1 Grantov\u00e1 Agent\u00fara M\u0160VVa\u0160 SR","doi-asserted-by":"publisher","award":["047TUKE-4\/2016"],"award-info":[{"award-number":["047TUKE-4\/2016"]}],"id":[{"id":"10.13039\/501100006108","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Information"],"abstract":"<jats:p>Automated source code documentation approaches often describe methods in abstract terms, using the words contained in the static source code or code excerpts from repositories. In this paper, we describe DynamiDoc: a simple automated documentation generator based on dynamic analysis. Our representation-based approach traces the program being executed and records string representations of concrete argument values, a return value and a target object state before and after each method execution. Then, for each method, it generates documentation sentences with examples, such as \u201cWhen called on [3, 1.2] with element = 3, the object changed to [1.2]\u201d. Advantages and shortcomings of the approach are listed. We also found out that the generated sentences are substantially shorter than the methods they describe. According to our small-scale study, the majority of objects in the generated documentation have their string representations overridden, which further confirms the potential usefulness of our approach. Finally, we propose an alternative, variable-based approach that describes the values of individual member variables, rather than the state of an object as a whole.<\/jats:p>","DOI":"10.3390\/info8040148","type":"journal-article","created":{"date-parts":[[2017,11,17]],"date-time":"2017-11-17T12:00:20Z","timestamp":1510920020000},"page":"148","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Source Code Documentation Generation Using Program Execution"],"prefix":"10.3390","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-2221-9225","authenticated-orcid":false,"given":"Mat\u00fa\u0161","family":"Sul\u00edr","sequence":"first","affiliation":[{"name":"Department of Computers and Informatics, Faculty of Electrical Engineering and Informatics, Technical University of Ko\u0161ice, Letn\u00e1 9, 042 00 Ko\u0161ice, Slovakia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jaroslav","family":"Porub\u00e4n","sequence":"additional","affiliation":[{"name":"Department of Computers and Informatics, Faculty of Electrical Engineering and Informatics, Technical University of Ko\u0161ice, Letn\u00e1 9, 042 00 Ko\u0161ice, Slovakia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2017,11,17]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Kramer, D. (1999, January 12\u201314). API Documentation from Source Code Comments: A Case Study of Javadoc. Proceedings of the 17th Annual International Conference on Computer Documentation, SIGDOC\u201999, New Orleans, LA, USA.","DOI":"10.1145\/318372.318577"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"68","DOI":"10.1109\/MS.2014.80","article-title":"How API Documentation Fails","volume":"32","author":"Uddin","year":"2015","journal-title":"IEEE Softw."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"883","DOI":"10.1007\/s11390-016-1671-1","article-title":"Summarizing Software Artifacts: A Literature Review","volume":"31","author":"Nazar","year":"2016","journal-title":"J. Comput. Sci. Technol."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Sridhara, G., Pollock, L., and Vijay-Shanker, K. (2011, January 21\u201328). Automatically Detecting and Describing High Level Actions Within Methods. Proceedings of the 33rd International Conference on Software Engineering, ICSE \u201911, Waikiki, Honolulu, HI, USA.","DOI":"10.1145\/1985793.1985808"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"McBurney, P.W., and McMillan, C. (2014, January 2\u20133). Automatic Documentation Generation via Source Code Summarization of Method Context. Proceedings of the 22nd International Conference on Program Comprehension, ICPC 2014, Hyderabad, India.","DOI":"10.1145\/2597008.2597149"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Kim, J., Lee, S., Hwang, S.W., and Kim, S. (2009, January 16\u201320). Adding Examples into Java Documents. Proceedings of the 2009 IEEE\/ACM International Conference on Automated Software Engineering, ASE \u201909, Auckland, New Zealand.","DOI":"10.1109\/ASE.2009.39"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Lo, D., and Maoz, S. (2010, January 20\u201324). Scenario-based and Value-based Specification Mining: Better Together. Proceedings of the IEEE\/ACM International Conference on Automated Software Engineering, ASE \u201910, Antwerp, Belgium.","DOI":"10.1145\/1858996.1859081"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Lefebvre, G., Cully, B., Head, C., Spear, M., Hutchinson, N., Feeley, M., and Warfield, A. (2012, January 3\u20134). Execution Mining. Proceedings of the 8th ACM SIGPLAN\/SIGOPS Conference on Virtual Execution Environments, VEE \u201912, London, UK.","DOI":"10.1145\/2151024.2151044"},{"key":"ref_9","first-page":"3:1","article-title":"Generating Method Documentation Using Concrete Values from Executions","volume":"Volume 56","year":"2017","journal-title":"OpenAccess Series in Informatics (OASIcs), Proceedings of the 6th Symposium on Languages, Applications and Technologies (SLATE\u201917), Vila do Conde, Portugal, 26\u201327 June 2017"},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Sridhara, G., Hill, E., Muppaneni, D., Pollock, L., and Vijay-Shanker, K. (2010, January 20\u201324). Towards Automatically Generating Summary Comments for Java Methods. Proceedings of the IEEE\/ACM International Conference on Automated Software Engineering, ASE \u201910, Antwerp, Belgium.","DOI":"10.1145\/1858996.1859006"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Sridhara, G., Pollock, L., and Vijay-Shanker, K. (2011, January 20\u201324). Generating Parameter Comments and Integrating with Method Summaries. Proceedings of the 2011 IEEE 19th International Conference on Program Comprehension, ICPC \u201911, Kingston, ON, Canada.","DOI":"10.1109\/ICPC.2011.28"},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Buse, R.P., and Weimer, W.R. (2008, January 20\u201324). Automatic Documentation Inference for Exceptions. Proceedings of the 2008 International Symposium on Software Testing and Analysis, ISSTA \u201908, Seattle, WA, USA.","DOI":"10.1145\/1390630.1390664"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Long, F., Wang, X., and Cai, Y. (2009, January 24\u201328). API Hyperlinking via Structural Overlap. Proceedings of the the 7th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, ESEC\/FSE \u201909, Amsterdam, The Netherlands.","DOI":"10.1145\/1595696.1595727"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Buse, R.P., and Weimer, W.R. (2012, January 2\u20139). Synthesizing API usage examples. Proceedings of the 2012 34th International Conference on Software Engineering (ICSE), Zurich, Switzerland.","DOI":"10.1109\/ICSE.2012.6227140"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Montandon, J.a.E., Borges, H., Felix, D., and Valente, M.T. (2013, January 14\u201317). Documenting APIs with examples: Lessons learned with the APIMiner platform. Proceedings of the 2013 20th Working Conference on Reverse Engineering (WCRE), Koblenz, Germany.","DOI":"10.1109\/WCRE.2013.6671315"},{"key":"ref_16","unstructured":"Hoffman, D., and Strooper, P. (August, January 30). Prose + Test Cases = Specifications. Proceedings of the 34th International Conference on Technology of Object-Oriented Languages and Systems, TOOLS \u201900, Santa Barbara, CA, USA."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"44","DOI":"10.1016\/j.cl.2016.07.003","article-title":"Recording concerns in source code using annotations","volume":"46","year":"2016","journal-title":"Comput. Languages, Syst. Struct."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Sul\u00edr, M., and Porub\u00e4n, J. (2015, January 18\u201320). Semi-automatic Concern Annotation Using Differential Code Coverage. Proceedings of the 2015 IEEE 13th International Scientific Conference on Informatics, Poprad, Slovakia.","DOI":"10.1109\/Informatics.2015.7377843"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Dallmeier, V., Lindig, C., Wasylkowski, A., and Zeller, A. (2006, January 23). Mining Object Behavior with ADABU. Proceedings of the 2006 International Workshop on Dynamic Systems Analysis, WODA \u201906, Shanghai, China.","DOI":"10.1145\/1138912.1138918"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Panichella, S., Panichella, A., Beller, M., Zaidman, A., and Gall, H.C. (2016, January 14\u201322). The Impact of Test Case Summaries on Bug Fixing Performance: An Empirical Investigation. Proceedings of the 38th International Conference on Software Engineering, ICSE \u201916, Austin, TX, USA.","DOI":"10.1145\/2884781.2884847"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Zhang, S., Zhang, C., and Ernst, M.D. (2011, January 6\u201310). Automated Documentation Inference to Explain Failed Tests. Proceedings of the 2011 26th IEEE\/ACM International Conference on Automated Software Engineering, ASE \u201911, Lawrence, KS, USA.","DOI":"10.1109\/ASE.2011.6100145"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Sohan, S.M., Anslow, C., and Maurer, F. (2015, January 9\u201313). SpyREST: Automated RESTful API Documentation Using an HTTP Proxy Server. Proceedings of the 2015 30th IEEE\/ACM International Conference on Automated Software Engineering (ASE), ASE \u201915, Lincoln, NE, USA.","DOI":"10.1109\/ASE.2015.52"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Tan, S.H., Marinov, D., Tan, L., and Leavens, G.T. (2012, January 17\u201321). @tComment: Testing Javadoc Comments to Detect Comment-Code Inconsistencies. Proceedings of the 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation, ICST \u201912, Montreal, QC, Canada.","DOI":"10.1109\/ICST.2012.106"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Sul\u00edr, M., and Porub\u00e4n, J. (November, January 30). RuntimeSearch: Ctrl+F for a Running Program. Proceedings of the 2017 32nd IEEE\/ACM International Conference on Automated Software Engineering (ASE), Urbana Champaign, IL, USA.","DOI":"10.1109\/ASE.2017.8115651"}],"container-title":["Information"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2078-2489\/8\/4\/148\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T18:50:01Z","timestamp":1760208601000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2078-2489\/8\/4\/148"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,11,17]]},"references-count":24,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2017,12]]}},"alternative-id":["info8040148"],"URL":"https:\/\/doi.org\/10.3390\/info8040148","relation":{},"ISSN":["2078-2489"],"issn-type":[{"value":"2078-2489","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,11,17]]}}}