skip to main content
10.1145/3583133.3590565acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
poster

Evolution of Editing Scripts From Examples

Published:24 July 2023Publication History

ABSTRACT

Experienced programmers use editing scripts to effectively modify selected lines and columns in a file or a set of files according to a desired editing transformation. For many non-programmers, it is, however, out of their skill sets to develop such scripts. We propose a software tool that significantly simplifies this task. The user is asked to create a snippet of the file before and after the desired edits (input and output example). The proposed tool uses these examples to evolve an editing script which is then executed on all lines of the input files to perform the expected transformation. We developed a simple programming language for file edits and a genetic programming-based system capable of evolving scripts in this language. For typical source files in which some data has to be deleted, added, or modified, the proposed system can evolve a valid script performing desired transformations in order of seconds or minutes.

Skip Supplemental Material Section

Supplemental Material

References

  1. Daniel W. Barowy, Sumit Gulwani, Ted Hart, and Benjamin Zorn. 2015. FlashRelate: Extracting Relational Data from Semi-Structured Spreadsheets Using Examples. SIGPLAN Not. 50, 6 (jun 2015), 218--228. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Marcus Brameier and Wolfgang Banzhaf. 2007. Linear genetic programming. Springer, New York.Google ScholarGoogle Scholar
  3. GFF/GTF 2023. GFF/GTF File Format. Retrieved January 20, 2023 from https://www.ensembl.org/info/website/upload/gff.htmlGoogle ScholarGoogle Scholar
  4. Luca Di Grazia and Michael Pradel. 2022. Code Search: A Survey of Techniques for Finding Code. ACM Comput. Surv. (oct 2022). Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Vu Le and Sumit Gulwani. 2014. FlashExtract: A Framework for Data Extraction by Examples. SIGPLAN Not. 49, 6 (jun 2014), 542--553. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Prose 2022. Prose framework. Retrieved January 20, 2023 from https://www.microsoft.com/en-us/research/project/prose-framework/Google ScholarGoogle Scholar

Index Terms

  1. Evolution of Editing Scripts From Examples

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        GECCO '23 Companion: Proceedings of the Companion Conference on Genetic and Evolutionary Computation
        July 2023
        2519 pages
        ISBN:9798400701207
        DOI:10.1145/3583133

        Copyright © 2023 Owner/Author(s)

        Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the owner/author(s).

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 24 July 2023

        Check for updates

        Qualifiers

        • poster

        Acceptance Rates

        Overall Acceptance Rate1,669of4,410submissions,38%

        Upcoming Conference

        GECCO '24
        Genetic and Evolutionary Computation Conference
        July 14 - 18, 2024
        Melbourne , VIC , Australia
      • Article Metrics

        • Downloads (Last 12 months)27
        • Downloads (Last 6 weeks)1

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader