Skip to content

Commit

Permalink
Added main method for running JedAI through command line. Fixed minor…
Browse files Browse the repository at this point in the history
… bugs.
  • Loading branch information
gpapadis committed Mar 9, 2018
1 parent b602d84 commit baa0961
Show file tree
Hide file tree
Showing 10 changed files with 371 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected void printOriginalStatistics(List<AbstractBlock> inputBlocks) {
comparisons+= block.getNoOfComparisons();
}

Log.info("Original blocks\t:\t{0}" + inputBlocks.size());
Log.info("Original blocks\t:\t" + inputBlocks.size());
Log.info("Original comparisons\t:\t" + comparisons);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public List<AbstractBlock> refineBlocks(List<AbstractBlock> blocks) {
final Iterator<AbstractBlock> blocksIterator = blocks.iterator();
while (blocksIterator.hasNext()) {
AbstractBlock aBlock = blocksIterator.next();
if (satisfiesThreshold(aBlock)) {
if (!satisfiesThreshold(aBlock)) {
noOfPurgedBlocks++;
blocksIterator.remove();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private void setComparisonsCardinality() {

public void setStatistics() {
if (blocks.isEmpty()) {
Log.warn("Empty set of equivalence clusters given as input!");
Log.warn("Empty set of blocks was given as input!");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public enum BlockBuildingMethod {
EXTENDED_SUFFIX_ARRAYS,
Q_GRAMS_BLOCKING,
SORTED_NEIGHBORHOOD,
SUFFIX_ARRAYS,
STANDARD_BLOCKING;
STANDARD_BLOCKING,
SUFFIX_ARRAYS;

public static IBlockBuilding getDefaultConfiguration(BlockBuildingMethod blbuMethod) {
switch (blbuMethod) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright [2016-2017] [George Papadakis ([email protected])]
* Copyright [2016-2018] [George Papadakis ([email protected])]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright [2016-2017] [George Papadakis ([email protected])]
* Copyright [2016-2018] [George Papadakis ([email protected])]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright [2016-2017] [George Papadakis ([email protected])]
* Copyright [2016-2018] [George Papadakis ([email protected])]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright [2016-2017] [George Papadakis ([email protected])]
* Copyright [2016-2018] [George Papadakis ([email protected])]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright [2016-2017] [George Papadakis ([email protected])]
* Copyright [2016-2018] [George Papadakis ([email protected])]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit baa0961

Please sign in to comment.