paper-with-me

Papers

Learning Deep Semantics for Test Completion

2023-02-20 · Pengyu Nie, Rahul Banerjee, Junyi Jessy Li, Raymond J. Mooney, Milos Gligoric

Writing tests is a time-consuming yet essential task during software development. We propose to leverage recent advances in deep learning for text and code generation to assist developers in writing tests. We formalize the novel task of test completion to automatically complete the next statement in a test method based on the context of prior statements and the code under test. We develop TeCo -- a deep learning model using code semantics for test completion. The key insight underlying TeCo is that predicting the next statement in a test method requires reasoning about code execution, which is hard to do with only syntax-level data that existing code completion models use. TeCo extracts and uses six kinds of code semantics data, including the execution result of prior statements and the execution context of the test method. To provide a testbed for this new task, as well as to evaluate TeCo, we collect a corpus of 130,934 test methods from 1,270 open-source Java projects. Our results show that TeCo achieves an exact-match accuracy of 18, which is 29% higher than the best baseline using syntax-level data only. When measuring functional correctness of generated next statement, TeCo can generate runnable code in 29% of the cases compared to 18% obtained by the best baseline. Moreover, TeCo is significantly better than prior work on test oracle generation.

📄 PDF Abstract BibTeX arXiv:2302.10166

Code (1)

engineeringsoftware/teco 공식 구현 pytorch

Tasks

Code CompletionCode Generation

Methods 이 논문이 사용한 방법론

Test 설명 없음

Similar Papers 제목 키워드 기반

Semantics-aware Test-time Adaptation for 3D Human Pose Estimation

2025-02-15 · Qiuxia Lin, Rongyu Chen, Kerui Gu, Angela Yao

This work highlights a semantics misalignment in 3D human pose estimation. For the task of test-time adaptation, the misalignment manifests as overly smoothed and unguided predictions. The smoothing settles predictions t…

3D human pose and shape estimation3D Human Pose Estimation3D Pose Estimationmotion prediction+4

Incorporating Both Distributional and Relational Semantics in Word Representations

2014-12-18 · Daniel Fried, Kevin Duh

We investigate the hypothesis that word representations ought to incorporate both distributional and relational semantics. To this end, we employ the Alternating Direction Method of Multipliers (ADMM), which flexibly opt…

Knowledge Base Completion

Incorporating Both Distributional and Relational Semantics in Word Representations

2014-12-14 · Daniel Fried, Kevin Duh

We investigate the hypothesis that word representations ought to incorporate both distributional and relational semantics. To this end, we employ the Alternating Direction Method of Multipliers (ADMM), which flexibly opt…

Knowledge Base Completion

On the Relation between Weak Completion Semantics and Answer Set Semantics

2019-10-16 · Emmanuelle-Anna Dietz Saldanha, Jorge Fandinno

The Weak Completion Semantics (WCS) is a computational cognitive theory that has shown to be successful in modeling episodes of human reasoning. As the WCS is a recently developed logic programming approach, this paper i…

RelationTranslation

PointSSC: A Cooperative Vehicle-Infrastructure Point Cloud Benchmark for Semantic Scene Completion

2023-09-22 · Yuxiang Yan, Boda Liu, Jianfei Ai, Qinbu Li 외

Semantic Scene Completion (SSC) aims to jointly generate space occupancies and semantic labels for complex 3D scenes. Most existing SSC models focus on volumetric representations, which are memory-inefficient for large o…

Point Cloud CompletionSegmentation