File tree Expand file tree Collapse file tree
src/main/java/org/variantsync/diffdetective/validation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,13 +127,27 @@ public static void main(String[] args) throws IOException {
127127// setupLogger(Level.INFO);
128128// setupLogger(Level.DEBUG);
129129
130+ final Path datasetsFile ;
131+ if (args .length < 1 ) {
132+ datasetsFile = DefaultDatasets .DEFAULT_DATASETS_FILE ;
133+ } else if (args .length > 1 ) {
134+ System .err .println ("Error: Expected exactly one argument but got " + args .length + "! Expected a path to a datasets markdown file." );
135+ return ;
136+ } else {
137+ datasetsFile = Path .of (args [0 ]);
138+ }
139+
130140 final ParseOptions .DiffStoragePolicy diffStoragePolicy = ParseOptions .DiffStoragePolicy .DO_NOT_REMEMBER ;
131141
132142 final Path inputDir = Paths .get (".." , "DiffDetectiveMining" );
143+ Logger .info ("Reading and cloning git repositories from/to: " + inputDir );
144+
133145 final Path outputDir = Paths .get ("results" , "validation" , "current" );
146+ Logger .info ("Writing output to: " + outputDir );
134147
148+ Logger .info ("Loading datasets file: " + datasetsFile );
135149 final List <Repository > repos ;
136- final List <DatasetDescription > datasets = DefaultDatasets .loadDefaultDatasets ( );
150+ final List <DatasetDescription > datasets = DefaultDatasets .loadDatasets ( datasetsFile );
137151
138152// if (PRINT_LATEX_TABLE) {
139153// printLaTeXTableFor(datasets);
You can’t perform that action at this time.
0 commit comments