Abstract: A method to generate compilable code from uncompilable code. The method includes receiving uncompilable code. The method further includes generating compilable code by one or more of (1) identifying and correcting syntax errors in the uncompilable code and (2) using an n-gram based token prediction model. The method further includes extracting features from the compilable code. The method further includes generating a machine learning model that recognizes patterns from extracted features in the compilable code.
Abstract: The present invention provides a system and methods for extracting features from an object. The system comprises a receiver configured to receive an object comprising a set of instructions. Further, the system comprises an extraction module configured to extract one or more features of the object, wherein the one or more features comprise control-flow information, data-flow information, data-dependency information and control-dependency information. In an embodiment, the system includes an assessment module configured to assess at least one of functionality and quality of the first object, based on the features extracted and the grades corresponding to the second object.