GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UCLA-SEAL/ExampleCheck: Are Code Examples on an Online Q&A Forum Reliable? A Study of API Misuse on Stack Overflow (ICSE 2018) Augmenting Stack Overflow with API Usage Patterns Mined from GitHub (FSE 2018 Demo)

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
code
code
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

ExampleCheck

Are Code Examples on an Online Q&A Forum Reliable? A Study of API Misuse on Stack Overflow (ICSE 2018) Augmenting Stack Overflow with API Usage Patterns Mined from GitHub (FSE 2018 Demo)

Summary of ExampleCheck

Programmers often consult an online Q&A forum such as Stack Overflow to learn new APIs. This paper presents an empirical study on the prevalence and severity of API misuse on Stack Overflow. To reduce manual assessment effort, we design ExampleCheck, an API usage mining framework that extracts patterns from over 380K Java repositories on GitHub and subsequently reports potential API usage violations in Stack Overflow posts. We analyze 217,818 Stack Overflow posts using ExampleCheck and find that 31% may have potential API usage violations that could produce unexpected behavior such as program crashes and resource leaks. Such API misuse is caused by three main reasons---missing control constructs, missing or incorrect order of API calls, and incorrect guard conditions. Even the posts that are accepted as correct answers or upvoted by other programmers are not necessarily more reliable than other posts in terms of API misuse. This study result calls for a new approach to augment Stack Overflow with alternative API usage details that are not typically shown in curated examples.

Team

This project is developed by Professor Miryung Kim's Software Engineering and Analysis Laboratory at UCLA. If you encounter any problems, please open an issue or feel free to contact us:

Tianyi Zhang: PhD student and now an assistant professor at Purdue; [email protected]

Ganesha Upadhyaya: PhD student and now a research engineer at Harmony

Anastasia Reinhardt: Undergraduate student and now a graduate student at UW

Hridesh Rajan: Professor at Iowa State University

Miryung Kim: Professor at UCLA; [email protected]

How to cite

Please refer to our ICSE'18 paper, Are code examples on an online Q&A forum reliable?: a study of API misuse on stack overflow for more details.

Bibtex

@inproceedings{10.1145/3180155.3180260, author = {Zhang, Tianyi and Upadhyaya, Ganesha and Reinhardt, Anastasia and Rajan, Hridesh and Kim, Miryung}, title = {Are Code Examples on an Online Q&A Forum Reliable? A Study of API Misuse on Stack Overflow}, year = {2018}, isbn = {9781450356381}, publisher = {Association for Computing Machinery}, address = {New York, NY, USA}, url = {https://doi.org/10.1145/3180155.3180260}, doi = {10.1145/3180155.3180260}, booktitle = {Proceedings of the 40th International Conference on Software Engineering}, pages = {886–896}, numpages = {11}, keywords = {online Q&A forum, API usage pattern, code example assessment}, location = {Gothenburg, Sweden}, series = {ICSE '18} } DOI Link

Slides

You can find ICSE 2018 presentation slides here.

Tool Demonstration Video and Tutorial

You can find our tool demo video from FSE 2018 here.

You can find ExampleCheck tutorials from our FSE 2019 tool demonstration paper and slides.

About

Are Code Examples on an Online Q&A Forum Reliable? A Study of API Misuse on Stack Overflow (ICSE 2018) Augmenting Stack Overflow with API Usage Patterns Mined from GitHub (FSE 2018 Demo)

Topics

api-usage-miningchrome-extensioncode-example-search

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.