Source code analysis archival adapter for structured data mining
First Claim
1. A computer-implemented method for classifying source code, comprising:
- parsing the source code to identify individual classification elements, within the source code, representing separate code constructs;
comparing an individual classification element representing an individual code construct with different schema elements within a markup language schema;
applying a markup language tag to the individual code construct based upon the comparing; and
generating a markup language formatted set of code constructs corresponding to the parsed individual classification elements, wherein the markup language formatted set of code constructions includes the individual code construct with the applied markup language tag;
storing the markup language formatted set of code constructs in a source code archive;
indexing the markup language formatted set of code constructs in the source code archive;
keyword searching the indexed markup language formatted set of code constructs to locate markup language formatted code constructs;
retrieving the located markup language formatted code constructs; and
transforming the retrieved markup language formatted code constructs into source code suitable for code reuse.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present invention address deficiencies of the art in respect to code reuse management and provide a method, system and computer program product for source code archival adapter for structured data mining In one embodiment of the invention, a method for adapting archived source code for structured data mining for source code reuse can be provided. The method can include parsing source code to identify individual classification elements within the source code, generating a markup language formatted set of code constructs corresponding to the classification elements, and storing the markup language formatted set of code constructs in a source code archive.
17 Citations
6 Claims
-
1. A computer-implemented method for classifying source code, comprising:
-
parsing the source code to identify individual classification elements, within the source code, representing separate code constructs; comparing an individual classification element representing an individual code construct with different schema elements within a markup language schema; applying a markup language tag to the individual code construct based upon the comparing; and generating a markup language formatted set of code constructs corresponding to the parsed individual classification elements, wherein the markup language formatted set of code constructions includes the individual code construct with the applied markup language tag; storing the markup language formatted set of code constructs in a source code archive; indexing the markup language formatted set of code constructs in the source code archive; keyword searching the indexed markup language formatted set of code constructs to locate markup language formatted code constructs; retrieving the located markup language formatted code constructs; and transforming the retrieved markup language formatted code constructs into source code suitable for code reuse. - View Dependent Claims (2)
-
-
3. A computer hardware system configured to classify source code, comprising:
-
at least one hardware processor configured to initiate and/or perform; parsing the source code to identify individual classification elements, within the source code, representing separate code constructs; comparing an individual classification element representing an individual code construct with different schema elements within a markup language schema; applying a markup language tag to the individual code construct based upon the comparing; and generating a markup language formatted set of code constructs corresponding to the parsed individual classification elements, wherein the markup language formatted set of code constructions includes the individual code construct with the applied markup language tag; storing the markup language formatted set of code constructs in a source code archive; indexing the markup language formatted set of code constructs in the source code archive; keyword searching the indexed markup language formatted set of code constructs to locate markup language formatted code constructs; retrieving the located markup language formatted code constructs; and transforming the retrieved markup language formatted code constructs into source code suitable for code reuse. - View Dependent Claims (4)
-
-
5. A computer program product, comprising:
-
a computer readable storage medium having stored therein computer-readable program code for classifying source code, the computer-readable program code, which when executed by a computer hardware system causes the computer hardware system to perform; parsing the source code to identify individual classification elements, within the source code, representing separate code constructs; comparing an individual classification element representing an individual code construct with different schema elements within a markup language schema; applying a markup language tag to the individual code construct based upon the comparing; and generating a markup language formatted set of code constructs corresponding to the parsed individual classification elements, wherein the markup language formatted set of code constructions includes the individual code construct with the applied markup language tag; storing the markup language formatted set of code constructs in a source code archive; indexing the markup language formatted set of code constructs in the source code archive; keyword searching the indexed markup language formatted set of code constructs to locate markup language formatted code constructs; retrieving the located markup language formatted code constructs; and transforming the retrieved markup language formatted code constructs into source code suitable for code reuse, and wherein the computer readable storage medium is not a transitory, propagating signal per se. - View Dependent Claims (6)
-
Specification