Skip to content

Commit 11a6eb2

Browse files
authored
Merge pull request #42 from VariantSync/cleaning_pb
Javadoc
2 parents 2f6e6fd + aa6f69d commit 11a6eb2

139 files changed

Lines changed: 3356 additions & 452 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.run/GenAutomationResults.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<component name="ProjectRunConfigurationManager">
22
<configuration default="false" name="GenAutomationResults" type="Application" factoryName="Application">
3-
<option name="MAIN_CLASS_NAME" value="org.variantsync.diffdetective.main.FindMedianCommitTime" />
3+
<option name="MAIN_CLASS_NAME" value="org.variantsync.diffdetective.validation.FindMedianCommitTime" />
44
<module name="DiffDetective" />
55
<option name="PROGRAM_PARAMETERS" value="results/difftrees" />
66
<extension name="coverage">

.run/Generate Javadoc.run.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Generate Javadoc" type="MavenRunConfiguration" factoryName="Maven">
3+
<MavenSettings>
4+
<option name="myGeneralSettings" />
5+
<option name="myRunnerSettings" />
6+
<option name="myRunnerParameters">
7+
<MavenRunnerParameters>
8+
<option name="profiles">
9+
<set />
10+
</option>
11+
<option name="goals">
12+
<list>
13+
<option value="javadoc:javadoc" />
14+
</list>
15+
</option>
16+
<option name="pomFileName" />
17+
<option name="profilesMap">
18+
<map />
19+
</option>
20+
<option name="resolveToWorkspace" value="false" />
21+
<option name="workingDirPath" value="$PROJECT_DIR$" />
22+
</MavenRunnerParameters>
23+
</option>
24+
</MavenSettings>
25+
<method v="2" />
26+
</configuration>
27+
</component>

LICENSE.LGPL3

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies
6+
of this license document, but changing it is not allowed.
7+
8+
9+
This version of the GNU Lesser General Public License incorporates
10+
the terms and conditions of version 3 of the GNU General Public
11+
License, supplemented by the additional permissions listed below.
12+
13+
0. Additional Definitions.
14+
15+
As used herein, "this License" refers to version 3 of the GNU Lesser
16+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
17+
General Public License.
18+
19+
"The Library" refers to a covered work governed by this License,
20+
other than an Application or a Combined Work as defined below.
21+
22+
An "Application" is any work that makes use of an interface provided
23+
by the Library, but which is not otherwise based on the Library.
24+
Defining a subclass of a class defined by the Library is deemed a mode
25+
of using an interface provided by the Library.
26+
27+
A "Combined Work" is a work produced by combining or linking an
28+
Application with the Library. The particular version of the Library
29+
with which the Combined Work was made is also called the "Linked
30+
Version".
31+
32+
The "Minimal Corresponding Source" for a Combined Work means the
33+
Corresponding Source for the Combined Work, excluding any source code
34+
for portions of the Combined Work that, considered in isolation, are
35+
based on the Application, and not on the Linked Version.
36+
37+
The "Corresponding Application Code" for a Combined Work means the
38+
object code and/or source code for the Application, including any data
39+
and utility programs needed for reproducing the Combined Work from the
40+
Application, but excluding the System Libraries of the Combined Work.
41+
42+
1. Exception to Section 3 of the GNU GPL.
43+
44+
You may convey a covered work under sections 3 and 4 of this License
45+
without being bound by section 3 of the GNU GPL.
46+
47+
2. Conveying Modified Versions.
48+
49+
If you modify a copy of the Library, and, in your modifications, a
50+
facility refers to a function or data to be supplied by an Application
51+
that uses the facility (other than as an argument passed when the
52+
facility is invoked), then you may convey a copy of the modified
53+
version:
54+
55+
a) under this License, provided that you make a good faith effort to
56+
ensure that, in the event an Application does not supply the
57+
function or data, the facility still operates, and performs
58+
whatever part of its purpose remains meaningful, or
59+
60+
b) under the GNU GPL, with none of the additional permissions of
61+
this License applicable to that copy.
62+
63+
3. Object Code Incorporating Material from Library Header Files.
64+
65+
The object code form of an Application may incorporate material from
66+
a header file that is part of the Library. You may convey such object
67+
code under terms of your choice, provided that, if the incorporated
68+
material is not limited to numerical parameters, data structure
69+
layouts and accessors, or small macros, inline functions and templates
70+
(ten or fewer lines in length), you do both of the following:
71+
72+
a) Give prominent notice with each copy of the object code that the
73+
Library is used in it and that the Library and its use are
74+
covered by this License.
75+
76+
b) Accompany the object code with a copy of the GNU GPL and this license
77+
document.
78+
79+
4. Combined Works.
80+
81+
You may convey a Combined Work under terms of your choice that,
82+
taken together, effectively do not restrict modification of the
83+
portions of the Library contained in the Combined Work and reverse
84+
engineering for debugging such modifications, if you also do each of
85+
the following:
86+
87+
a) Give prominent notice with each copy of the Combined Work that
88+
the Library is used in it and that the Library and its use are
89+
covered by this License.
90+
91+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
92+
document.
93+
94+
c) For a Combined Work that displays copyright notices during
95+
execution, include the copyright notice for the Library among
96+
these notices, as well as a reference directing the user to the
97+
copies of the GNU GPL and this license document.
98+
99+
d) Do one of the following:
100+
101+
0) Convey the Minimal Corresponding Source under the terms of this
102+
License, and the Corresponding Application Code in a form
103+
suitable for, and under terms that permit, the user to
104+
recombine or relink the Application with a modified version of
105+
the Linked Version to produce a modified Combined Work, in the
106+
manner specified by section 6 of the GNU GPL for conveying
107+
Corresponding Source.
108+
109+
1) Use a suitable shared library mechanism for linking with the
110+
Library. A suitable mechanism is one that (a) uses at run time
111+
a copy of the Library already present on the user's computer
112+
system, and (b) will operate properly with a modified version
113+
of the Library that is interface-compatible with the Linked
114+
Version.
115+
116+
e) Provide Installation Information, but only if you would otherwise
117+
be required to provide such information under section 6 of the
118+
GNU GPL, and only to the extent that such information is
119+
necessary to install and execute a modified version of the
120+
Combined Work produced by recombining or relinking the
121+
Application with a modified version of the Linked Version. (If
122+
you use option 4d0, the Installation Information must accompany
123+
the Minimal Corresponding Source and Corresponding Application
124+
Code. If you use option 4d1, you must provide the Installation
125+
Information in the manner specified by section 6 of the GNU GPL
126+
for conveying Corresponding Source.)
127+
128+
5. Combined Libraries.
129+
130+
You may place library facilities that are a work based on the
131+
Library side by side in a single library together with other library
132+
facilities that are not Applications and are not covered by this
133+
License, and convey such a combined library under terms of your
134+
choice, if you do both of the following:
135+
136+
a) Accompany the combined library with a copy of the same work based
137+
on the Library, uncombined with any other library facilities,
138+
conveyed under the terms of this License.
139+
140+
b) Give prominent notice with the combined library that part of it
141+
is a work based on the Library, and explaining where to find the
142+
accompanying uncombined form of the same work.
143+
144+
6. Revised Versions of the GNU Lesser General Public License.
145+
146+
The Free Software Foundation may publish revised and/or new versions
147+
of the GNU Lesser General Public License from time to time. Such new
148+
versions will be similar in spirit to the present version, but may
149+
differ in detail to address new problems or concerns.
150+
151+
Each version is given a distinguishing version number. If the
152+
Library as you received it specifies that a certain numbered version
153+
of the GNU Lesser General Public License "or any later version"
154+
applies to it, you have the option of following the terms and
155+
conditions either of that published version or of any later version
156+
published by the Free Software Foundation. If the Library as you
157+
received it does not specify a version number of the GNU Lesser
158+
General Public License, you may choose any version of the GNU Lesser
159+
General Public License ever published by the Free Software Foundation.
160+
161+
If the Library as you received it specifies that a proxy can decide
162+
whether future versions of the GNU Lesser General Public License shall
163+
apply, that proxy's public statement of acceptance of any version is
164+
permanent authorization for you to choose that version for the
165+
Library.

README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,12 @@ This is the replication package our submission _Classifying Edits to Variability
2323

2424
This replication package consists of four parts:
2525

26-
1. **Appendix**: The appendix of our paper is given in PDF format in the file [appendix.pdf](appendix.pdf).
27-
2. **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.
26+
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.
27+
2. **Appendix**: The appendix of our paper is given in PDF format in the file [appendix.pdf](appendix.pdf).
2828
3. **Haskell Formalization**: We provide an extended formalization in the Haskell programming language as described in our appendix. Its implementation can be found in the Haskell project in the [proofs](proofs) directory.
29-
4. **Dataset Overview**: We provide an overview of the 44 inspected datasets with updated links to their repositories in the file [docs/datasets.md](docs/datasets.md).
29+
4. **Dataset Overview**: We provide an overview of the 44 inspected datasets with updated links to their repositories in the file [docs/datasets.md][dataset].
3030

31-
## Appendix
32-
33-
Our appendix consists of:
34-
1. An extended formalization of our concepts in the [Haskell][haskell] programming language. The corresponding source code is also part of this replication package (see below).
35-
2. The proofs for (a) the completeness of variation tree diffs to represent edits to variation trees, and (b) the completeness and unambiguity of our elementary edit patterns.
36-
3. An inspection of edit patterns from related work to show that existing patterns are either composite patterns built from our elementary patterns or similar to our elementary patterns.
37-
4. The complete results of our validation for all 44 datasets.
38-
39-
## DiffDetective
31+
## 1. DiffDetective
4032
We offer a [Docker](https://www.docker.com/) setup to easily __replicate__ our validation with _DiffDetective_.
4133
You can find detailed information on how to install Docker and build the container in the [INSTALL](INSTALL.md) file.
4234
In the following, we provide instructions for running the replication.
@@ -51,7 +43,7 @@ To build the Docker container you can run the _build_ script corresponding to yo
5143
### 2. Start the replication
5244
To execute the replication you can run the _execute_ script corresponding to your OS with `replication` as first argument.
5345

54-
> ! The replication will at least require several hours and might require up to a few days depending on your system.
46+
> ! The replication will at least require an hour and might require up to a day depending on your system.
5547
> Therefore, we offer a short validation (5-10 minutes) which runs _DiffDetective_ on only four of the datasets.
5648
> You can run it by providing "validation" as argument instead of "replication" (i.e., ./execute.sh validation).
5749
> If you want to stop the replication, you can call the provided script for stopping the container. Note that you will have to restart the entire replication, if you stop it at any point.
@@ -65,8 +57,6 @@ To execute the replication you can run the _execute_ script corresponding to you
6557
#### Linux/Mac (bash):
6658
`./execute.sh replication`
6759

68-
69-
7060
### 3. View the results in the [results](results) directory
7161
All raw results are stored in the [results](results) directory. The aggregated results can be found in the following files:
7262
- [speed statistics](results/difftrees/speedstatistics.txt): contains information about the total runtime, median runtime, mean runtime, and more.
@@ -76,10 +66,27 @@ All raw results are stored in the [results](results) directory. The aggregated r
7666

7767
Moreover, the results comprise the (LaTeX) tables that are part of our paper and appendix.
7868

79-
## Haskell Formalization
80-
The extended formalization in Haskell is a library using the _Stack_ build system.
69+
## 2. Appendix
8170

71+
Our appendix consists of:
72+
1. An extended formalization of our concepts in the [Haskell][haskell] programming language. The corresponding source code is also part of this replication package (see below).
73+
2. The proofs for (a) the completeness of variation tree diffs to represent edits to variation trees, and (b) the completeness and unambiguity of our elementary edit patterns.
74+
3. An inspection of edit patterns from related work to show that existing patterns are either composite patterns built from our elementary patterns or similar to our elementary patterns.
75+
4. The complete results of our validation for all 44 datasets.
76+
77+
## 3. Haskell Formalization
78+
The extended formalization is a [Haskell][haskell] library in the [`proofs`](proofs) subdirectory.
79+
Since the `proofs` library is its own software project, we provide a separate documentation of requirements and installation instructions within the projects subdirectory.
8280
Instructions for manually installing Stack are given in [proofs/REQUIREMENTS.md](proofs/REQUIREMENTS.md).
8381
How to build our library and how to run the example is described in the [proofs/INSTALL.md](proofs/INSTALL.md).
8482

83+
84+
## 4. Dataset Overview
85+
86+
We provide an overview of the used 44 open-source preprocessor-based software product lines in the [docs/datasets.md][dataset] file.
87+
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.
88+
We provide updated links for each system's repository.
89+
90+
8591
[haskell]: https://www.haskell.org/
92+
[dataset]: docs/datasets.md

REQUIREMENTS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Hardware Requirements
2+
3+
None
4+
5+
## Software Requirements
6+
7+
We do not require a certain operating system or prepared environment.
8+
We tested our replication on Windows 10, WSL2, and Linux.
9+
10+
To run DiffDetective, JDK16 and Maven are required.
11+
Dependencies to other packages are documented in the maven build file ([pom.xml](pom.xml)) and are handled automatically by Maven.
12+
Alternatively, the docker container can be used on any system supporting docker.
13+
Docker will take care of all requirements and dependencies to replicate our validation.
14+
15+
The requirements to build our `proofs` Haskell library are documented in its respective [proofs/REQUIREMENTS.md](proofs/REQUIREMENTS.md) file.
16+
17+
[stack]: https://docs.haskellstack.org/en/stable/README/

STATUS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
The artifact for the paper _Classifying Edits to Variability in Source Code_ consists of four parts:
2+
3+
1. **Appendix**: The appendix of our paper is given in PDF format in the file [`appendix.pdf`][ddappendix].
4+
2. **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).
5+
3. **Haskell Formalization**: We provide an extended formalization in the Haskell programming language as described in our appendix. Its implementation can be found in the Haskell project in the [`proofs`][ddproofs] directory.
6+
4. **Dataset Overview**: We provide an overview of the 44 inspected open-source software product lines with updated links to their repositories in the file [docs/datasets.md](docs/datasets.md).
7+
8+
Our artifact has the following purposes:
9+
10+
- **Replicability**: We provide instructions based on a docker container that allow to reproduce the validation we performed in Section 5 of our paper.
11+
- **Reusability**: DiffDetective is designed as a library that offers reusable functionality.
12+
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).
13+
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 transformations of 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 within the repository.
14+
- **Extended Formal Specification**: The `proofs` Haskell project provides an extended formal specification of our theory.
15+
Its main purpose is to document our theory and its extensions and to serve as a reference for the proofs in our appendix.
16+
The project can also be used as a library to reason on variation trees and diffs in Haskell projects.
17+
The library is accompanied with a small demo application that shows an example test case for our proof for completeness, by creating a variation tree diff from two variation trees and re-projecting them.
18+
19+
We claim the **_Artifacts Available_** badge as we made our artefacts publicly available on [Github][ddgithub] and [Zenodo][ddzenodo]. (For now, the Zenodo link points to a reserved doi under which we will publish the artifacts once completed until the deadline at June 4.)
20+
21+
We claim the **_Artifacts Evaluated Reusable_** badge as we implemented DiffDetective as a reusable library (see above).
22+
Furthermore, both DiffDetective and our Haskell formalization serve as reference implementations if researchers or practitioners want to reimplement our theory in another programming language.
23+
24+
[ddgithub]: UNDEFINED
25+
[ddzenodo]: UNDEFINED
26+
[ddappendix]: UNDEFINED
27+
[ddproofs]: UNDEFINED

proofs/REQUIREMENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Dependencies to other packages are documented in the build files ([stack.yaml](s
99
We do not require specific operating systems or other environments apart from Stack.
1010
We successfully tested building the library and running the library on Windows 10 and in WSL2.
1111

12-
[stack]: https://docs.haskellstack.org/en/stable/README/
12+
[stack]: https://docs.haskellstack.org/en/stable/README/

0 commit comments

Comments
 (0)