arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.15990cs.SE
收藏

pycefr:通过代码分析确定Python能力等级

pycefr: Python Competency Level through Code Analysis

Gregorio Robles, Raula Gaikovina Kula, Chaiyong Ragkhitwetsagul, Tattiya Sakulniwat, Kenichi Matsumoto, Jesus M. Gonzalez-Barahona

摘要:

Python被认为是一种多功能语言,非常适合初学者和高级用户。语言中的某些元素比其他元素更容易理解:有些可以在任何类型的代码中找到,而另一些则只能由有经验的程序员使用。这些元素的使用导致不同的方式来编码,这取决于经验的语言和知识的元素,一般的编程能力和编程技能等,在本文中,我们提出了pycefr,一个工具,检测使用的不同元素的Python语言,有效地衡量水平的Python熟练程度所需的理解和处理的一个片段的Python代码。遵循广为人知的欧洲通用语言参考框架(CEFR),广泛用于自然语言,pycefr根据创建和理解Python代码所需的熟练程度将Python代码分为六个级别。我们还讨论了pycefr的不同用例:识别具有一定熟练度的开发人员可以理解的代码片段,在Stackoverflow和GitHub等在线资源中标记代码示例,以使其符合一定的能力水平,帮助开源软件项目中的新开发人员入职流程等https://tinyurl.com/ypdt3fwe。

英文摘要:

Python is known to be a versatile language, well suited both for beginners and advanced users. Some elements of the language are easier to understand than others: some are found in any kind of code, while some others are used only by experienced programmers. The use of these elements lead to different ways to code, depending on the experience with the language and the knowledge of its elements, the general programming competence and programming skills, etc. In this paper, we present pycefr, a tool that detects the use of the different elements of the Python language, effectively measuring the level of Python proficiency required to comprehend and deal with a fragment of Python code. Following the well-known Common European Framework of Reference for Languages (CEFR), widely used for natural languages, pycefr categorizes Python code in six levels, depending on the proficiency required to create and understand it. We also discuss different use cases for pycefr: identifying code snippets that can be understood by developers with a certain proficiency, labeling code examples in online resources such as Stackoverflow and GitHub to suit them to a certain level of competency, helping in the onboarding process of new developers in Open Source Software projects, etc. A video shows availability and usage of the tool: https://tinyurl.com/ypdt3fwe.

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

↑