Kai Lin

Kai Lin

Auto-generated profile, based on publicly available information

Kai Lin

College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, China

Research Focus & Metrics

Academic Career Length

27Years (2000-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
12 May 2022 in IEEE Transactions on Reliability
Verified
Journal Article
Closed access
CTChuanqi Tao
Chuanqi Tao
KLKai Lin
Kai Lin
ZHZhiqiu Huang
Zhiqiu Huang
XSXiaobing Sun
Xiaobing Sun
Code recommendation with programming context is to use the contextual code surrounding the missing code to automatically find that which of the code snippets would be useful to assist in the completion of the program. In this way, the developers need not take time to formulate explicit queries or write descriptions. Existing work only treats code as textual documents and use information retrieval techniques to retrieve relevant code snippets, which is difficult to capture the semantics of code adequately. The self-attention mechanism have achieved promising progress in various natural language processing tasks, especially for extracting deep semantic information from long sequences. Inspired from this, we propose a novel code recommendation with programming context based on self-attention mechanism (CRAM). The proposed approach first builds a small-scale candidate set from codebase. Then, it utilizes self-attention networks in the abstract syntax tree to capture the deep semantics of code, and finally recommend the relevant code to developers. We conduct several experiments to evaluate our approach in a large-scale codebase containing 741 148 code snippets. The experimental results show that CRAM can effectively recommend code and outperforms related work in recall, precision, and NDCG.

1 January 2000 in Electronic Notes in Theoretical Computer Science
Verified
Journal Article
Open access
JGJoseph Goguen
Joseph Goguen
KLKai Lin
Kai Lin
GRGrigore Roşu
Grigore Roşu
Behavioral rewriting differs from standard rewriting in taking account of the weaker inference rules of behavioral logic, but it shares much with standard rewriting, including notions like termination and confluence. We describe an efficient implementation of behavioral rewriting that uses standard rewriting. Circular coinductive rewriting combines behavioral rewriting with circular coinduction, giving a surprisingly powerful proof method for behavioral properties; it is implemented in the BOBJ system, which is used in our examples. These include several lazy functional stream program equivalences and a behavioral refinement

23 November 2002
Verified
Conference Paper
Closed access
JGJ. Goguen
J. Goguen
KLKai Lin
Kai Lin
AMA. Mori
A. Mori
GRG. Rosu
G. Rosu
ASAtsushi Sato
Atsushi Sato

1 August 2009
Verified
Conference Paper
Closed access
CYChong Yao
Chong Yao
KLKeqiu Li
Keqiu Li
KLKai Lin
Kai Lin
YSYanming Shen
Yanming Shen
The exchanged hypercube is an interconnection network which is obtained by systemically removing some links from a binary hypercube. In parallel systems, load balancing is a very important factor which can affect the performance of the whole system. So distributing tasks evenly on processors is essential for multiprocessor computing systems. Based on the classical DE-based algorithm, in this paper we propose a load balancing algorithm for the exchanged hypercube architecture. We also theoretically prove the correctness of the proposed algorithm. Finally, we use a case study to further explain our algorithm.