Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code recommendation

A technology of codes and code segments, applied in the field of code recommendation, which can solve the problems of insufficient accuracy, utility and/or user-friendliness, inability to remember API methods, etc.

Active Publication Date: 2017-02-22
MICROSOFT TECH LICENSING LLC
View PDF5 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, he / she is often not able to remember the exact API method or how to use it
Traditional solutions for code recommendation and code completion often suffer from insufficient accuracy, utility, and / or user-friendliness

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
  • Code recommendation
  • Code recommendation
  • Code recommendation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The subject matter described herein will now be discussed with reference to a few example embodiments. It should be understood that these embodiments are discussed only for the purpose of enabling those skilled in the art to better understand and thus implement the subject matter described herein, without implying any limitation on the scope of the subject matter.

[0018] As used herein, the term "comprising" and variations thereof are to be read as open-ended terms meaning "including but not limited to". The term "or" is to be read as "and / or" unless the context clearly dictates otherwise. The term "based on" is to be read as "based at least in part on". The terms "one embodiment" and "an embodiment" are to be read as "at least one embodiment." The term "another embodiment" is to be read as "at least one other embodiment". The following may contain other definitions, either explicit or implicit.

[0019] figure 1 Illustrated is an example of a computing environme...

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

A method generally relates to code recommendation. In the method, code snippets (220 1, 220 2, ...220 n) may be extracted using an invocation-centered code slicing process and then grouped according to the method usages. For each method usage, a representative code snippet may be selected and stored in the knowledge base (210) in association with metadata (230 1, 230 2, ...230 n). The programming context may be obtained and used to query the knowledge base (210) to retrieve one or more code snippets for recommendation. The recommended code snippets may be ranked to improve the utility and user friendliness, and the metadata (230 1, 230 2,...230 n) may be used to provide variation points and possibly other auxiliary information to improve the operation efficiency and user experience.

Description

Background technique [0001] Code reuse can improve the efficiency of software development. For example, many application programming interface (API) methods can be called and used in various programming contexts to accomplish corresponding tasks. As is known, third-party API libraries may contain hundreds or even thousands of API methods or functions. In addition, in software development projects, software engineers usually design and implement a large number of methods as internal APIs for later calling. As a result, the number of project-specific API methods can also be enormous. [0002] In practice, unfortunately, knowledge about API methods and their uses is often not well documented. When using API methods, there is a barrier caused by insufficient or lacking resources for learning those API methods. A software engineer knows that there are creation API methods that may help in accomplishing his / her task. However, he / she often cannot remember the exact API method or...

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): G06F9/44
CPCG06F8/33G06F8/36G06F8/20G06F8/30
Inventor 党映农钟成霖吴倩尹涵N·施瓦兹张冬梅
Owner MICROSOFT TECH LICENSING LLC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products