Skip to content

Commit

Permalink
Merge pull request #49 from VariantSync/esecfse22-merge
Browse files Browse the repository at this point in the history
Make names in esecfse22 branch consistent with paper
  • Loading branch information
pmbittner committed Sep 24, 2022
2 parents 4d0b383 + 56f385a commit 8978a01
Show file tree
Hide file tree
Showing 667 changed files with 9,667 additions and 5,193 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ name: Java CI with Maven

on:
push:
branches: [ "main" ]
branches: [ "main", "develop" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "develop" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Install Graphviz
run: sudo apt-get install -y graphviz
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Classifying Edits to Variability in Source Code

<img padding="10" align="right" src="https://www.acm.org/binaries/content/gallery/acm/publications/artifact-review-v1_1-badges/artifacts_evaluated_reusable_v1_1.png" alt="ACM Artifacts Evaluated Reusable" width="114" height="113"/>

![Maven](https://github.com/VariantSync/DiffDetective/actions/workflows/maven.yml/badge.svg)
Expand All @@ -10,6 +8,8 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6818140.svg)](https://doi.org/10.5281/zenodo.6818140)
[![Status](https://img.shields.io/badge/ESEC%2FFSE'22-Badge%20Application-blue)](STATUS.md)

# Classifying Edits to Variability in Source Code

This is the replication package for our paper _Classifying Edits to Variability in Source Code_ accepted at the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE 2022).

This replication package consists of four parts:
Expand Down Expand Up @@ -72,7 +72,7 @@ Moreover, the results comprise the (LaTeX) tables that are part of our paper and
DiffDetective is documented with javadoc. The documentation can be accessed on this [website][documentation]. Notable classes of our library are:
- [DiffTree](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/diff/difftree/DiffTree.html) and [DiffNode](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/diff/difftree/DiffNode.html) implement variation diffs from our paper. A variation diff is represented by an instance of the `DiffTree` class. It stores the root node of the diff and offers various methods to parse, traverse, and analyze variation diffs. `DiffNode`s represent individual nodes within a variation diff.
- [Validation](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/validation/Validation.html) contains the main method for our validation.
- [ProposedElementaryPatterns](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/pattern/elementary/proposed/ProposedElementaryPatterns.html) holds the catalog of the nine edit classes we proposed in our paper. It implements the interface [ElementaryPatternCatalogue](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/pattern/elementary/ElementaryPatternCatalogue.html), which allows to define custom edit classifications.
- [ProposedEditClasses](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/editclass/proposed/ProposedEditClasses.html) holds the catalog of the nine edit classes we proposed in our paper. It implements the interface [EditClassCatalogue](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/editclass/EditClassCatalogue.html), which allows to define custom edit classifications.
- [BooleanAbstraction](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/feature/BooleanAbstraction.html) contains data and methods for boolean abstraction of higher-order logic formulas. We use this for macro parsing.
- [GitDiffer](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/diff/GitDiffer.html) may parse the history of a git repository to variation diffs.
- The [datasets](https://variantsync.github.io/DiffDetective/docs/javadoc/org/variantsync/diffdetective/datasets/package-summary.html) package contains various classes for describing and loading datasets.
Expand All @@ -95,7 +95,7 @@ How to build our library and how to run the example is described in the [proofs/
## 4. Dataset Overview
### 4.1 Open-Source Repositories
We provide an overview of the used 44 open-source preprocessor-based software product lines in the [docs/datasets.md][dataset] file.
As described in our paper in Section 5.1 this list contains all systems that were studied by Liebig et al., extended by four new subject systems (Busybox, Marlin, LibSSH, Godot).
As described in our paper in Section 5.1, this list contains all systems that were studied by Liebig et al., extended by four new subject systems (Busybox, Marlin, LibSSH, Godot).
We provide updated links for each system's repository.

### 4.2 Forked Repositories for Replication
Expand Down
2 changes: 1 addition & 1 deletion REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ None
## Software Requirements

We do not require a certain operating system or prepared environment.
We tested our setup on Windows 10, WSL2, and Manjaro.
The setup is tested on Windows 10, WSL2, Manjaro, Ubuntu, and MacOS Monterey.

To run DiffDetective, JDK16, and Maven are required.
Dependencies to other packages are documented in the maven build file ([pom.xml](pom.xml)) and are handled automatically by Maven.
Expand Down
8 changes: 4 additions & 4 deletions STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The artifact for the paper _Classifying Edits to Variability in Source Code_ consists of four parts:

1. **DiffDetective**: For our validation, we built DiffDetective, a java library and command-line tool to classify edits to variability in git histories of preprocessor-based software product lines.
DiffDetective is the main artifact used to replicate the validation for our paper (see Section 5).
DiffDetective is the main artifact used to replicate the validation of our paper (see Section 5).
DiffDetective is self-contained in that it does not require or depend on in-depth knowledge on the theoretical foundation of our work.
Practitioners and researches are free to ignore the appendix as well as the haskell formalization and may use DiffDetective out-of-the-box.
2. **Appendix**: The appendix of our paper is given in PDF format in the file [`appendix.pdf`][ddappendix].
Expand All @@ -22,18 +22,18 @@ DiffDetective is designed as a library that offers reusable functionality.
Researchers and practitioners can use our DiffDetective library to build on our theory and results (e.g., for future prototypes to study the evolution of variability in source code).

DiffDetective offers various features, including but not limited to:
parsing variation tree diffs from unix diffs, obtaining variation tree diffs for certain patches and commits, matching elementary edit patterns on variation tree diffs, defining custom classifications, rendering, traversing, and transforming variation tree diffs, various de-/serialization methods, and running analyses for the git histories of C preprocessor-based software product lines. We documented each part of the library and provide a [javadoc website][dddocumentation] within the repository.
parsing variation diffs from unix diffs, obtaining variation diffs for certain patches and commits, classifying edits in variation diffs, defining custom classifications, rendering, traversing, and transforming variation diffs, various de-/serialization methods, and running analyses for the git histories of C preprocessor-based software product lines. We documented each part of the library and provide a [javadoc website][dddocumentation] within the repository.
Moreover, our validation (see _replicability_ above) may also be run on any custom dataset as described in our [README.md][ddreadme].

### **Extended Formal Specification**
The [`proofs`][ddproofs] Haskell project provides an extended formal specification of our theory.
Its main purpose is to document the theory and its extensions to serve as a reference for the proofs in our appendix.
Yet, the project can also be used as a library to reason on variation trees and diffs in Haskell projects.
The library is accompanied by a small demo application that shows an example test case for our proof of completeness by creating a variation tree diff from two variation trees and re-projecting them.
The library is accompanied by a small demo application that shows an example test case for our proof of completeness by creating a variation diff from two variation trees and re-projecting them.
The `proofs` project is described in detail in our appendix.

## Claims
We claim the _Artifacts Available_ badge as we made our artefacts publicly available on [Github][ddgithub] and [Zenodo][ddzenodo] with an [open-source license][ddlicense]. All [44 input datasets][ddforks] are open-source projects and publicly available.
We claim the _Artifacts Available_ badge as we made our artifacts publicly available on [Github][ddgithub] and [Zenodo][ddzenodo] with an [open-source license][ddlicense]. All [44 input datasets][ddforks] are open-source projects and publicly available.

We claim the _Artifacts Evaluated Reusable_ badge as we implemented DiffDetective as a reusable library (see above).
Furthermore, both DiffDetective and our Haskell formalization serve as reference implementations if researchers or practitioners want to reimplement our theory in other programming languages.
Expand Down
Loading

0 comments on commit 8978a01

Please sign in to comment.