期刊文献+
共找到2篇文章
< 1 >
每页显示 20 50 100
Discovering API Directives from API Specifications with Text Classification
1
作者 Jing-Xuan Zhang Chuan-Qi Tao +1 位作者 Zhi-Qiu Huang Xin Chen 《Journal of Computer Science & Technology》 SCIE EI CSCD 2021年第4期922-943,共22页
Application programming interface(API)libraries are extensively used by developers.To correctly program with APIs and avoid bugs,developers shall pay attention to API directives,which illustrate the constraints of API... Application programming interface(API)libraries are extensively used by developers.To correctly program with APIs and avoid bugs,developers shall pay attention to API directives,which illustrate the constraints of APIs.Unfortunately,API directives usually have diverse morphologies,making it time-consuming and error-prone for developers to discover all the relevant API directives.In this paper,we propose an approach leveraging text classification to discover API directives from API specifications.Specifically,given a set of training sentences in API specifications,our approach first characterizes each sentence by three groups of features.Then,to deal with the unequal distribution between API directives and non-directives,our approach employs an under-sampling strategy to split the imbalanced training set into several subsets and trains several classifiers.Given a new sentence in an API specification,our approach synthesizes the trained classifiers to predict whether it is an API directive.We have evaluated our approach over a publicly available annotated API directive corpus.The experimental results reveal that our approach achieves an F-measure value of up to 82.08%.In addition,our approach statistically outperforms the state-of-the-art approach by up to 29.67%in terms of F-measure. 展开更多
关键词 Application programming interface(API)directive API specification imbalanced learning text classification
原文传递
A Resource-Fair Protocol for Two-Party Coin Toss
2
作者 RUAN Ou ZHOU Jing +1 位作者 CUI Guohua CHEN Jing 《Wuhan University Journal of Natural Sciences》 CAS 2013年第3期254-258,共5页
Coin-flipping protocols allow mutually distrustful parties to generate a random bit with uniform distribution.Minimizing bias and keeping fairness are two key requirements in designing such protocols.However,the best ... Coin-flipping protocols allow mutually distrustful parties to generate a random bit with uniform distribution.Minimizing bias and keeping fairness are two key requirements in designing such protocols.However,the best previously known fair coin-flipping protocol only guarantees with bias Ο(1 /r).In the paper,we introduce a new approach for fair coin-flipping protocol construction by using Garay et al’s "resource fairness" technique and propose a resource-fair two-party coin-flipping protocol according to the standard real/ideal simulation paradigm.Compared with the other coin-flipping protocols,our protocol enjoys an important advantage that its bias is 0. 展开更多
关键词 coin-flipping resource fairness secure multi-party computation
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部