arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1608.08219cs.PL
收藏

NoFAQ:从示例中综合命令修复

NoFAQ: Synthesizing Command Repairs from Examples

Loris D'Antoni, Rishabh Singh, Michael Vaughn

摘要:

命令行工具令人困惑,由于其神秘的错误消息和缺乏文档,新手程序员很难使用。新手用户经常求助于在线帮助论坛来寻找对他们错误命令的纠正,但是很难精确地搜索与他们的问题相关的帖子,然后将建议的解决方案应用于他们的错误命令。我们提出了一个工具,NoFAQ,它使用一组规则来建议可能的修复程序,当用户编写错误的命令,触发常见的错误。这些规则是用一种名为FixIt的语言表达的,每个规则都与用户的错误命令和相应的错误消息进行模式匹配,并使用这些输入来生成可能的固定命令。我们的主要贡献是一个算法的基础上懒惰VSA合成FixIt规则的例子,有缺陷的和修复的命令。该算法允许用户在NoFAQ中添加新规则,而无需手动编码。我们在92个基准问题上对NoFAQ进行了评估,结果表明NoFAQ能够实时的为81个基准问题即时合成规则,每个规则只使用2到5个输入输出示例。

英文摘要:

Command-line tools are confusing and hard to use for novice programmers due to their cryptic error messages and lack of documentation. Novice users often resort to online help-forums for finding corrections to their buggy commands, but have a hard time in searching precisely for posts that are relevant to their problem and then applying the suggested solutions to their buggy command. We present a tool, NoFAQ, that uses a set of rules to suggest possible fixes when users write buggy commands that trigger commonly occurring errors. The rules are expressed in a language called FixIt and each rule pattern-matches against the user's buggy command and the corresponding error message, and uses these inputs to produce a possible fixed command. Our main contribution is an algorithm based on lazy VSA for synthesizing FixIt rules from examples of buggy and repaired commands. The algorithm allows users to add new rules in NoFAQ without having to manually encode them. We present the evaluation of NoFAQ on 92 benchmark problems and show that NoFAQ is able to instantly synthesize rules for 81 benchmark problems in real time using just 2 to 5 input-output examples for each rule.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑