Unlock instant, AI-driven research and patent intelligence for your innovation.

Automatic imports and dependencies in large-scale source code repositories

A source code, qualified technology, applied in the field of automatic import and dependencies in large-scale source code repositories, which can solve the problems of time-consuming, processing large source code, etc.

Active Publication Date: 2018-03-16
GOOGLE LLC
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This process is very time consuming
Large amounts of source code simply cannot be processed in a reasonable amount of time using this approach

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
  • Automatic imports and dependencies in large-scale source code repositories
  • Automatic imports and dependencies in large-scale source code repositories
  • Automatic imports and dependencies in large-scale source code repositories

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] According to an example embodiment, in a distributed system there may be a large graph representing all source code of a certain source code repository or some source code repositories. Source code can be indexed to create graphs. In some embodiments, the graph may exist on one machine or several machines for remote access by developers, so that the graph is not run on each developer's machine, and the graph can be accessed simultaneously by multiple developers. In its simplest form, the graph can be two tables, the first mapping simple names to qualified names, and the second mapping qualified names to build system dependencies. By creating and accessing this graph in a distributed system or cloud environment, computations can be cached and reused among developers. In other embodiments, the graph may exist on the developer's own machine.

[0012] like figure 2 As shown, there are two simple names in the example source code file (201), "Bar" on line 3 and "Foo" on l...

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 system and method for finding candidates of qualified names for at least one simple name in a source code file are disclosed. A source code file may be received that has at least one simple name forwhich a corresponding qualified name is required. The source code file may be parsed to determine the simple names in the file and the qualified names in the file. For the at least one simple name for which a corresponding qualified name is required, a source code graph may be searched to find potential candidate qualified names that correspond to the at least one simple name. Upon receipt of a list of potential candidate qualified names from the source code graph, the list may be outputted to a user in order for the user to choose the appropriate qualified name. Build dependencies also be chosen for the qualified name.

Description

Background technique [0001] Developers often build complex software applications that include external code or libraries. For example, a developer may wish to include a list of people in their application. Instead of defining his own list objects, the developer may include list classes from external packages. in such as figure 1 In the example shown, a developer can include in his code a list from a standard library, such as "java.util.List". "java.util.List" is an ordered collection class publicly available through the java.util package. Once a list is imported into a developer's source code file, the developer can simply refer to the list by the simple name "List" instead of using the fully qualified name when instantiating or using the list everywhere" java.util.List". For example, in figure 1 In line 3 of , the code refers only to the simple name "List", not to the qualified name "java.util.List". [0002] While using a standard integrated development environment (I...

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/41G06F8/74
CPCG06F8/433G06F8/74G06F8/33G06F16/164G06F3/0482G06F8/70
Inventor 卡尔米·格鲁什科
Owner GOOGLE LLC
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More