Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering 2014
DOI: 10.1145/2635868.2635877
|View full text |Cite
|
Sign up to set email alerts
|

Selection and presentation practices for code example summarization

Abstract: Code examples are an important source for answering questions about software libraries and applications. Many usage contexts for code examples require them to be distilled to their essence: e.g., when serving as cues to longer documents, or for reminding developers of a previously known idiom. We conducted a study to discover how code can be summarized and why. As part of the study, we collected 156 pairs of code examples and their summaries from 16 participants, along with over 26 hours of think-aloud verbali… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
9
0

Year Published

2016
2016
2023
2023

Publication Types

Select...
6
3

Relationship

1
8

Authors

Journals

citations
Cited by 28 publications
(9 citation statements)
references
References 43 publications
0
9
0
Order By: Relevance
“…Developers in our surveys wish for tools to automatically summarize the huge volume of opinions posted about APIs from developer forums. Such summaries can be different from the research conducted to produce Natural language and structural summaries of source code [21], [39], [40], [41], [42], [43], [44], [45], [46], [74], [75], [76].…”
Section: Summarization Of Software Artifactsmentioning
confidence: 99%
“…Developers in our surveys wish for tools to automatically summarize the huge volume of opinions posted about APIs from developer forums. Such summaries can be different from the research conducted to produce Natural language and structural summaries of source code [21], [39], [40], [41], [42], [43], [44], [45], [46], [74], [75], [76].…”
Section: Summarization Of Software Artifactsmentioning
confidence: 99%
“…The inclusion of thread-related features could have improvements even in recall. The query "Generate random integer" has 48 answers on goldset, and 28 of them are from the same thread 4 . It is a popular thread with several answers with high score, but CROKAGE had recommended an answer from this thread only in the 98 th position.…”
Section: State-of-the-art Limitationsmentioning
confidence: 99%
“…Developers often search for solutions on the web for their programming tasks in the form of code examples and their explanations [1], spending up to 20% of their time in this activity [2,3]. Although code search engines (e.g., GitHub, Google Code Search) can be used for such a task, finding these solutions for programming tasks is still a challenge because not all code examples returned for a query have the same quality [4]. Developers need to carefully choose appropriate keywords that represent their programming task (i.e., the query) due to the semantic gap existent between the query and the appropriate code.…”
Section: Introductionmentioning
confidence: 99%
“…This raises an interesting question: Does this level of disagreement occur because the PAM patterns are not representative of the client code they were mined from, or because the hand-written examples themselves are not fully representative of the client code? Although previous work has explored what it means for a single API example to be useful [42,34], there seems to be much less work about what it means for a set of examples to be useful, and how well example directories in popular projects reflect all of the actual common uses of an API. We can however make an initial assessment of this question by going back to the held-out test set of client code that we used in RQ1.…”
Section: Rq3: Could the Api Patterns Mined By Pam Supplement Existingmentioning
confidence: 99%