Skip to content

Commit 6ed613b

Browse files
authored
Updated rq1 experiment bash and python script to include RPKI (gousiosg#23)
1 parent 9fcbddb commit 6ed613b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

common.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,11 @@
1616
"jflex.core.unicode.CharClassesQuickcheck.addString(Ljflex/core/unicode/CharClasses;Ljava/lang/String;I)V": 'addString',
1717
"jflex.state.StateSetQuickcheck.addStateDoesNotRemove(Ljflex/state/StateSet;I)V": 'add',
1818
"jflex.state.StateSetQuickcheck.containsElements(Ljflex/state/StateSet;I)V": 'contains',
19-
"jflex.state.StateSetQuickcheck.removeAdd(Ljflex/state/StateSet;I)V": 'remove'
19+
"jflex.state.StateSetQuickcheck.removeAdd(Ljflex/state/StateSet;I)V": 'remove',
20+
"net.ripe.rpki.commons.crypto.cms.roa.RoaCMSBuilderPropertyTest.buildEncodedParseCheck(JLjava/lang/Integer;)V": 'roa',
21+
"net.ripe.rpki.commons.crypto.cms.manifest.ManifestCMSBuilderPropertyTest.buildEncodedParseCheck([BLjava/math/BigInteger;Ljava/lang/Integer;)V": 'manifest',
22+
"net.ripe.rpki.commons.crypto.cms.aspa.AspaCmsTest.should_generate_aspa(ILjava/util/List;)V": 'aspa',
23+
"net.ripe.rpki.commons.validation.X509ResourceCertificateParentChildValidatorTest.validParentChildSubResources(Ljava/util/List;I)V": 'resources',
24+
"net.ripe.rpki.commons.validation.X509ResourceCertificateParentChildValidatorTest.validParentChildOverClaiming(Ljava/util/List;ILjava/util/List;)V": 'claiming',
25+
"net.ripe.rpki.commons.validation.X509ResourceCertificateParentChildValidatorTest.validParentChildOverClaimingLooseValidation(Ljava/util/List;ILjava/util/List;)V": 'loose'
2026
}

rq1_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
('Convex', 'artifacts/experiment/rq1_convex.csv', 'artifacts/experiment/rq1_table_convex.tex'),
88
('jFlex', 'artifacts/experiment/rq1_jflex.csv', 'artifacts/experiment/rq1_table_jflex.tex'),
99
('MPH Table', 'artifacts/experiment/rq1_mph-table.csv', 'artifacts/experiment/rq1_table_mph-table.tex'),
10+
('RPKI-Commons', 'artifacts/experiment/rq1_rpki-commons.csv', 'artifacts/experiment/rq1_table_rpki-commons.tex'),
1011
]
1112

1213
byProjNameFile = 'artifacts/experiment/rq1_table_projects.tex'
@@ -61,7 +62,7 @@
6162
dataSetSum[projName] = dfSubset.copy()
6263

6364
with open(texFile, 'w') as tf:
64-
tf.write(dfSubset.to_latex(index=False, header=False))
65+
tf.write(dfSubset.style.hide(axis="index").to_latex())
6566

6667
dataSet = pd.concat([dataSet, data.copy()])
6768

@@ -126,4 +127,4 @@
126127
else:
127128
outTable += line
128129

129-
tf.write(outTable)
130+
tf.write(outTable)

run_experiment_rq1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd $JCG_HOME || exit
1010

1111
mkdir -p artifacts/experiment
1212

13-
for PROJECT in mph-table convex jflex
13+
for PROJECT in mph-table convex jflex rpki-commons
1414
do
1515
FILE=artifacts/experiment/rq1_$PROJECT.csv
1616

0 commit comments

Comments
 (0)