18070015. PREDICTING AND/OR APPLYING SYMBOLIC TRANSFORMATION TEMPLATES simplified abstract (GOOGLE LLC)

From WikiPatents
Jump to navigation Jump to search

PREDICTING AND/OR APPLYING SYMBOLIC TRANSFORMATION TEMPLATES

Organization Name

GOOGLE LLC

Inventor(s)

Joey Hong of Campbell CA (US)

Rishabh Singh of San Jose CA (US)

Joel Galenson of Santa Clara CA (US)

Jonathan Malmaud of Campbell CA (US)

Manzil Zaheer of Mountain View CA (US)

PREDICTING AND/OR APPLYING SYMBOLIC TRANSFORMATION TEMPLATES - A simplified explanation of the abstract

This abstract first appeared for US patent application 18070015 titled 'PREDICTING AND/OR APPLYING SYMBOLIC TRANSFORMATION TEMPLATES

Simplified Explanation

The patent application describes a method for predicting symbolic transformation templates to automate source code transformations. Here is a simplified explanation of the abstract:

  • Predecessor and successor source code snippets are processed using a model to predict a transformation template.
  • The template includes a predecessor portion matching the predecessor snippet and a successor portion matching the successor snippet.
  • Additional predecessor snippets may be identified and bound to placeholders in the template.
  • The successor portion of the template is then applied to the bindings to generate additional successor snippets.

Potential Applications

This technology could be applied in software development tools to automate repetitive code transformations, improve code quality, and increase developer productivity.

Problems Solved

1. Manual code transformations can be time-consuming and error-prone. 2. Ensuring consistency in code transformations across a codebase can be challenging.

Benefits

1. Increased efficiency in code transformation tasks. 2. Consistent application of transformation templates. 3. Reduction in human error during code transformations.

Potential Commercial Applications

Automated code transformation tools for software development companies. Optimized code refactoring services for codebases of various sizes.

Possible Prior Art

Prior art may include existing code refactoring tools that offer automated transformation suggestions based on code patterns and structures.

Unanswered Questions

How does this technology handle complex code transformations that involve multiple source code snippets?

The technology described in the patent application focuses on predicting transformation templates for pairs of predecessor and successor snippets. It is not clear how the system would handle more complex transformations that involve multiple snippets or dependencies between different parts of the code.

What is the computational overhead of implementing this automated code transformation system in a real-world software development environment?

The patent application does not provide information on the computational resources required to implement the proposed system. It would be important to understand the performance implications of integrating this technology into existing software development workflows.


Original Abstract Submitted

Implementations are described herein for predicting symbolic transformation templates to automate source code transformations. In various implementations, pair(s) of predecessor and successor source code snippets may be processed using a symbolic transformation template prediction (STTP) model to predict a symbolic transformation template that includes a predecessor portion that matches the predecessor source code snippet(s) of the pair(s) and a successor portion that matches the successor source code snippet(s) of the pair(s). At least one additional predecessor source code snippet may be identified that matches the predecessor portion of the predicted symbolic transformation template. Placeholders of the predecessor portion of the predicted symbolic transformation template may be bound to one or more tokens of the at least one additional predecessor source code snippet to create binding(s). The successor portion of the predicted symbolic transformation template may be applied to the bindings to generate additional successor source code snippet(s).