AUTOMATIC GENERATION OF DOCUMENTATION AND AGGREGATION OF COMMUNITY CONTENT
First Claim
1. A computer-implemented method comprising:
- retrieving a portion of source code, the portion of source code including a function;
automatically generating a docstring for the function using a machine learning model;
inserting the generated docstring in the source code.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method may provide assistance to programmers related to the creation of documentation. In some aspects, the system may automatically generate documentation-related text in source code. In other aspects, the system may automatically detect the need for the programmer to edit long-from documentation when changes are detected in code. Moreover, the system may provide for the aggregation or creation of documentation content based on one or more data sources, such as by embedding links to those data sources into documentation. In some aspects, some components of the system are based on machine learning methods and are trained on collected data.
8 Citations
19 Claims
-
1. A computer-implemented method comprising:
-
retrieving a portion of source code, the portion of source code including a function; automatically generating a docstring for the function using a machine learning model; inserting the generated docstring in the source code. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-implemented method comprising:
-
retrieving a portion of source code; receiving edits at a cursor location in a code editor from a user; updating source code at the cursor location in response to the edits received from the user; detecting changes to one or more code entities in the portion of source code; identifying documentation corresponding to the changed code entities; automatically loading the documentation and displaying the documentation to the user; receiving one or more edits from the user to the documentation; storing the one or more edits from the user. - View Dependent Claims (9, 10, 11, 12)
-
-
13. A computer-implemented method comprising:
-
retrieving a portion of source code; receiving edits at a cursor location in a code editor from a user; updating source code at the cursor location in response to the edits received from the user; detecting changes to one or more code entities in the portion of source code; identifying one or more code examples corresponding to the changed code entities; automatically loading the code examples and displaying the code examples to the user; receiving one or more edits from the user to the code examples; storing the one or more edits from the user. - View Dependent Claims (14)
-
-
15. A computer-implemented method comprising:
-
providing documentation for a code entity of a software package; embedding in a section of the documentation for the code entity a plurality of references to online data sources, the online data sources including content related to the code entity; displaying the documentation; during display of the documentation, loading the content from the online data sources based on the plurality of references. - View Dependent Claims (16, 17, 18, 19)
-
Specification