跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:1907.07803 (cs)
[提交于 2019年7月17日]

标题:Syntax and Stack Overflow: A methodology for extracting a corpus of syntax errors and fixes

作者:Alexander William Wong, Amir Salimi, Shaiful Chowdhury, Abram Hindle
查看论文《Syntax and Stack Overflow: A methodology for extracting a corpus of syntax errors and fixes》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:One problem when studying how to find and fix syntax errors is how to get natural and representative examples of syntax errors. Most syntax error datasets are not free, open, and public, or they are extracted from novice programmers and do not represent syntax errors that the general population of developers would make. Programmers of all skill levels post questions and answers to Stack Overflow which may contain snippets of source code along with corresponding text and tags. Many snippets do not parse, thus they are ripe for forming a corpus of syntax errors and corrections. Our primary contribution is an approach for extracting natural syntax errors and their corresponding human made fixes to help syntax error research. A Python abstract syntax tree parser is used to determine preliminary errors and corrections on code blocks extracted from the SOTorrent data set. We further analyzed our code by executing the corrections in a Python interpreter. We applied our methodology to produce a public data set of 62,965 Python Stack Overflow code snippets with corresponding tags, errors, and stack traces. We found that errors made by Stack Overflow users do not match errors made by student developers or random mutations, implying there is a serious representativeness risk within the field. Finally we share our dataset openly so that future researchers can re-use and extend our syntax errors and fixes.
评论: 5 pages, ICSME 2019
主题: 软件工程 (cs.SE)
引用方式: arXiv:1907.07803 [cs.SE]
  (或者 arXiv:1907.07803v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.1907.07803

提交历史

来自:Alexander W. Wong
[v1] 2019年7月17日 星期三 22:57:30 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2019-07
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站