Patent ID: 9280322
Filing Date: 2016-03-08
CPC Classification: G06F

Claim Text:
1. A method, executed by a processor, for generating source code comprising: generating a weighted data structure by combining similar source code samples identified using natural language processing; generating a set of semantic rules for the source code by performing semantic natural language process analysis on the similar previously identified source code samples, the set of semantic rules indicating programming language syntax rules for the source code being generated; generating the source code based on the weighted data structure and the set of semantic rules; receiving a set of initialization values, wherein the set of initialization values comprises a set of input values and a set of output values; executing the source code with the set of input values; detecting an output of the source code; selecting a cost function to detect an accuracy of the source code; calculating a statistical value with the cost function based at least in part on the output of the source code and the set of output values; determining the accuracy of the source code is above a threshold based at least in part on the set of initialization values, the statistical value, and an output value from the source code, the accuracy indicating that the output value corresponds to an expected value in the set of initialization values; and returning the source code based on the set of initialization values in response to determining that the accuracy of the source code is above the threshold.