|
7 | 7 | import de.jplag.clustering.ClusteringOptions;
|
8 | 8 | import de.jplag.clustering.algorithm.InterClusterSimilarity;
|
9 | 9 | import de.jplag.java.JavaLanguage;
|
| 10 | +import de.jplag.merging.MergingOptions; |
10 | 11 | import de.jplag.options.JPlagOptions;
|
11 | 12 | import de.jplag.options.SimilarityMetric;
|
12 | 13 |
|
@@ -116,14 +117,15 @@ public static class ClusteringEnabled {
|
116 | 117 | }
|
117 | 118 |
|
118 | 119 | public static class Merging {
|
119 |
| - @Option(names = {"--match-merging"}, description = "Enables match merging (default: false)%n") |
120 |
| - public boolean enabled; |
| 120 | + @Option(names = {"--match-merging"}, description = "Enables match merging (default: ${DEFAULT-VALUE})%n") |
| 121 | + public boolean enabled = MergingOptions.DEFAULT_ENABLED; |
121 | 122 |
|
122 |
| - @Option(names = {"--neighbor-length"}, description = "Defines how short a match can be, to be considered (default: 2)%n") |
123 |
| - public int minimumNeighborLength; |
| 123 | + @Option(names = {"--neighbor-length"}, description = "Defines how short a match can be, to be considered (default: ${DEFAULT-VALUE})%n") |
| 124 | + public int minimumNeighborLength = MergingOptions.DEFAULT_NEIGHBOR_LENGTH; |
124 | 125 |
|
125 |
| - @Option(names = {"--gap-size"}, description = "Defines how many token there can be between two neighboring matches (default: 6)%n") |
126 |
| - public int maximumGapSize; |
| 126 | + @Option(names = { |
| 127 | + "--gap-size"}, description = "Defines how many token there can be between two neighboring matches (default: ${DEFAULT-VALUE})%n") |
| 128 | + public int maximumGapSize = MergingOptions.DEFAULT_GAP_SIZE; |
127 | 129 |
|
128 | 130 | }
|
129 | 131 |
|
|
0 commit comments