Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit b3ddb38

Browse files
uuqjzNicolas-Boltz
authored andcommitted
Add class that indexes all tuhh models
1 parent 31bfe34 commit b3ddb38

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

bundles/org.dataflowanalysis.examplemodels/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Bundle-ManifestVersion: 2
33
Bundle-Name: DFA Example Models
44
Bundle-SymbolicName: org.dataflowanalysis.examplemodels
55
Bundle-Version: 3.0.0.qualifier
6-
Require-Bundle: org.eclipse.core.runtime
6+
Require-Bundle: org.eclipse.core.runtime,
7+
com.google.guava
78
Automatic-Module-Name: org.dataflowanalysis.examplemodels
89
Bundle-RequiredExecutionEnvironment: JavaSE-17
910
Export-Package: org.dataflowanalysis.examplemodels
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package org.dataflowanalysis.examplemodels;
2+
3+
import java.util.ArrayList;
4+
import java.util.HashMap;
5+
import java.util.List;
6+
import java.util.Map;
7+
8+
import com.google.common.collect.ImmutableMap;
9+
10+
public class TuhhModels {
11+
12+
private static final Map<String, List<Integer>> TUHH_MODELS = ImmutableMap.<String, List<Integer>>builder()
13+
.put("anilallewar", List.of(0, 6, 7, 8, 9, 11, 12, 18))
14+
.put("apssouza22", List.of(0, 2, 4, 6, 7, 8, 12, 18))
15+
.put("callistaenterprise", List.of(0, 2, 6, 11, 18))
16+
.put("ewolff", List.of(5, 10, 12, 18))
17+
.put("ewolff-kafka", List.of(0, 3, 4, 5, 6, 7, 8, 9, 18))
18+
.put("fernandoabcampos", List.of(18))
19+
.put("georgwittberger", List.of(0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 18))
20+
.put("jferrater", List.of(0, 2, 3, 5, 6, 7, 8, 9, 18))
21+
.put("koushikkothagal", List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 18))
22+
.put("mdeket", List.of(5))
23+
.put("mudigal-technologies", List.of(0, 2, 4, 5, 7, 8, 11, 18))
24+
.put("rohitghatol", List.of(10, 12, 18))
25+
.put("spring-petclinic", List.of(0, 2, 3, 5, 6, 7, 8, 9, 18))
26+
.put("sqshq", List.of(0, 6, 7, 8, 9, 10, 11, 12, 18))
27+
.put("yidongnan", List.of(0, 2, 3, 4, 5, 6, 7, 8, 9, 18))
28+
.build();
29+
30+
/**
31+
* Returns a deep copy of the {@code TUHH_MODELS} map.
32+
*/
33+
public static Map<String, List<Integer>> getTuhhModels() {
34+
Map<String, List<Integer>> deepCopy = new HashMap<>();
35+
36+
for (var entry : TUHH_MODELS.entrySet()) {
37+
deepCopy.put(entry.getKey(), new ArrayList<>(entry.getValue()));
38+
}
39+
40+
return deepCopy;
41+
}
42+
}

0 commit comments

Comments
 (0)