Automated Generalization and Refinement of Code Templates with Ekeko/X. Molderez, T. & De Roover, C. In Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016), pages 669–672, 2016. IEEE Computer Society Press. abstract bibtex Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.
@inproceedings{9439cbd58d6a4aed8c2fb281595a8417,
title = "Automated Generalization and Refinement of Code Templates with Ekeko/X",
abstract = "Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.",
keywords = "program search and transformation tools, source code templates, search-based software engineering, genetic algorithms",
author = "Tim Molderez and {De Roover}, Coen",
year = "2016",
language = "English",
isbn = "978-1-5090-1855-0",
pages = "669--672",
booktitle = "Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016)",
publisher = "IEEE Computer Society Press",
}
Downloads: 0
{"_id":"Yt4HED9WRPtiznaYA","bibbaseid":"molderez-deroover-automatedgeneralizationandrefinementofcodetemplateswithekekox-2016","author_short":["Molderez, T.","De Roover, C."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","title":"Automated Generalization and Refinement of Code Templates with Ekeko/X","abstract":"Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.","keywords":"program search and transformation tools, source code templates, search-based software engineering, genetic algorithms","author":[{"firstnames":["Tim"],"propositions":[],"lastnames":["Molderez"],"suffixes":[]},{"propositions":[],"lastnames":["De Roover"],"firstnames":["Coen"],"suffixes":[]}],"year":"2016","language":"English","isbn":"978-1-5090-1855-0","pages":"669–672","booktitle":"Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016)","publisher":"IEEE Computer Society Press","bibtex":"@inproceedings{9439cbd58d6a4aed8c2fb281595a8417,\n title = \"Automated Generalization and Refinement of Code Templates with Ekeko/X\",\n abstract = \"Code templates are a convenient means to specify source code snippets of interest. However, despite a low learning curve, it may not always be evident to write templates that produce only the desired matches. A template may be too general and result in false positives, or too specific and produce false negatives. We assist the users of Ekeko/X, our template-based search and transformation tool for Java using a two-component approach: First, we present a suite of mutation operators to simplify editing templates. Some operators only modify a single component of a template, whereas others can automate high-level operations involving multiple components, such as abstracting away the declaration of a method and all calls to it using metavariables. Second, we introduce a genetic search algorithm that uses our suite of mutation operators and can recommend a sequence of changes to a template, such that it matches with a desired set of code snippets. The approach is evaluated by letting it infer a template that matches all instances of a design pattern, given one instance as a starting template.\",\n keywords = \"program search and transformation tools, source code templates, search-based software engineering, genetic algorithms\",\n author = \"Tim Molderez and {De Roover}, Coen\",\n year = \"2016\",\n language = \"English\",\n isbn = \"978-1-5090-1855-0\",\n pages = \"669--672\",\n booktitle = \"Proceedings of the 23rd IEEE International Conference on Software Analysis, Evolution, and Reengineering (SANER2016)\",\n publisher = \"IEEE Computer Society Press\",\n}","author_short":["Molderez, T.","De Roover, C."],"key":"9439cbd58d6a4aed8c2fb281595a8417","id":"9439cbd58d6a4aed8c2fb281595a8417","bibbaseid":"molderez-deroover-automatedgeneralizationandrefinementofcodetemplateswithekekox-2016","role":"author","urls":{},"keyword":["program search and transformation tools","source code templates","search-based software engineering","genetic algorithms"],"metadata":{"authorlinks":{}}},"bibtype":"inproceedings","biburl":"http://soft.vub.ac.be/~cderoove/works.bib","dataSources":["abyQtmN3vDJoFXPPD"],"keywords":["program search and transformation tools","source code templates","search-based software engineering","genetic algorithms"],"search_terms":["automated","generalization","refinement","code","templates","ekeko","molderez","de roover"],"title":"Automated Generalization and Refinement of Code Templates with Ekeko/X","year":2016}