API recommendation method based on hierarchical context

A recommendation method and context technology, applied in the field of API recommendation, to achieve the effect of reducing false positive rate, simple method and stable recommendation results

Active Publication Date: 2019-10-01
SOUTHEAST UNIV
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A big challenge for software developers is learning and remembering how to use APIs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • API recommendation method based on hierarchical context
  • API recommendation method based on hierarchical context
  • API recommendation method based on hierarchical context

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Embodiment 1: see figure 1 , an API recommendation method based on hierarchical context. The present invention provides a method for automatically generating effective API sequence sets by using information of different calling levels by statically analyzing the API calling relationship in the program context. The method of API recommendation based on the algorithm of the context inference model improves the effectiveness of the API sequence set and improves the accuracy of the recommendation results.

[0035] Architecture: figure 1 The architecture of API recommendation method based on hierarchical context is given, and the specific description of several main parts is given below.

[0036]1 Analyze the calling relationship components:

[0037] The main function of this component is to obtain the call relationship graph and project information by statically analyzing the bytecode of the java program. The project information includes the project name, the name of the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an API (Application Programming Interface) recommendation method based on a hierarchical context. The API recommendation method comprises the following steps: recommending an application program interface (API) according to the hierarchical context; automatically generating an API sequence library through an API calling relation in a static analysis method, and then using amethod based on a hierarchical context inference model to recommend an appropriate API. According to the method, the API association relationships of different calling levels in the program context are fully mined, the effectiveness of the API sequence library is improved, and the accuracy of the recommendation result is improved.

Description

technical field [0001] The invention relates to an evaluation method, in particular to an API recommendation method based on hierarchical context, and belongs to the technical field of API recommendation. Background technique [0002] API is a set of accessible interfaces provided by the software library. The software library provides external services through the API. Developers use the API to realize code reuse and improve production efficiency. Today's programs make extensive use of application programming interfaces (APIs): even "Hello World" programs call API methods. A huge challenge for software developers is learning and remembering how to use APIs. As the size and complexity of software systems increase dramatically, the cost of software development and maintenance continues to increase. API recommendation technology can analyze and mine rules for large-scale programs, reduce the workload of developers to find, understand, combine, and debug code, and reduce manua...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/70
CPCG06F8/70
Inventor 李必信谢仁松王璐璐孔祥龙廖力周颖
Owner SOUTHEAST UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products