Code summarization aims to facilitate code comprehension by automatically generating brief and informative summaries for source code. In software development, different projects often exhibit distinct characteristics....
详细信息
ISBN:
(纸本)9798350395693;9798350395686
Code summarization aims to facilitate code comprehension by automatically generating brief and informative summaries for source code. In software development, different projects often exhibit distinct characteristics. However, existing research frequently overlooks such project-specific knowledge, which may result in sub-optimal summarization performance. In this paper, we propose PRECOS, a retrieval-based method that leverages the historical examples within the project (i.e., internal corpus) for generating better code summaries. First we construct the internal corpus as a datastore, and extend the datastore by retrieving the most relevant examples for the current project from a large-scale external corpus based on the internal corpus. then during generation, we retrieve the nearest neighbors from the datastore at each decoding step to interpolate the vanilla target-token distribution. For the retrieved neighbors, we introduce a novel locality-aware distance calibration mechanism, which calibrates the retrieval distance based on the locality of the nearest neighbors, thereby providing more accurate predictions. Experimental results demonstrate that PRECOS achieves a substantial improvement of up to 8.5 BLEU scores compared to the model before project-specific enhancement, and can generate better code summaries than other comparison methods while maintaining satisfactory results in additional storage, time overhead, and prediction speed(1).
Supply chain reasoning refers to the analysis and inference of supply chain-related data to understand the behavior of potential entities and relationships within the supply chain. By fully exploring latent informatio...
详细信息
the proceedings contain 9 papers. the topics discussed include: WasmCFuzz: structure-aware fuzzing for Wasm compilers;mitigating security issues in Github actions;trust in software supply chains: blockchain-enabled SB...
ISBN:
(纸本)9798400705656
the proceedings contain 9 papers. the topics discussed include: WasmCFuzz: structure-aware fuzzing for Wasm compilers;mitigating security issues in Github actions;trust in software supply chains: blockchain-enabled SBOM and the AIBOM future;interplay of digital twins and cyber deception: unraveling paths for technological advancements;building a cybersecurity knowledge graph with CyberGraph;training developers to code securely: theory and practice;on DevSecOps and risk management in critical infrastructures: practitioners’ insights on needs and goals;cyber-incident response in industrial control systems: practices and challenges in the petroleum industry;and cybersecurity and medical devices: a bull in a China shop.
Shared energy storage is an emerging energy storage system. Optimal scheduling can maximize the resources of shared ESSs, thereby improving economic efficiency. this paper explores the optimal scheduling of electricit...
详细信息
Electric vehicles (EVs) have been one of the trending technologies in recent decades, as they are expected to transform the current automotive technology and transportation systems. To this end, the scope of this stud...
详细信息
this paper proposes a Fast Harmonic Analysis (FHA) method for efficient harmonic analysis in distribution power networks with converter-interfaced distributed energy resources (CIDERs). the integration of CIDERs, such...
详细信息
As the fault characteristics in distribution feeders become increasingly complex, differential protection is believed a feasible method. When there are intermediate loads inside the distribution network feeder, existi...
详细信息
In an open electricity market environment, power generators and large users participating in bilateral transactions have to use limited information to estimate each other9;s reservation prices, to help themselves a...
详细信息
the Buck converter has a large steady state error in the output voltage obtained by the traditional dual integration sliding mode controller when the parameters are changed and the external load is perturbed, for this...
详细信息
Low frequency oscillation monitoring and modal parameters identification are crucial for the diagnosis of power system faults. this paper presents a method utilizing sparse component analysis (SCA) to identify low fre...
详细信息
暂无评论