@@ -0,0 +1,1752 @@
+package reciter.algorithm.cluster.similarity.clusteringstrategy.article;%0A%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.Set;%0Aimport java.util.Map.Entry;%0A%0Aimport reciter.algorithm.cluster.clusteringstrategy.article.AbstractClusteringStrategy;%0Aimport reciter.algorithm.cluster.model.ReCiterCluster;%0Aimport reciter.model.article.ReCiterArticle;%0A%0A%0A/**%0A * @author szd2013%0A * This class assigns each individual article to its own cluster with articles retrieved from eSearchResults%0A *%0A */%0Apublic class BaselineClusteringStrategy extends AbstractClusteringStrategy %7B%0A%09%0A%09%0A%09/**%0A%09 * Select the first article from the list. Iterate through the remaining%0A%09 * articles and assign article based on target author name match.%0A%09 */%0A%09@Override%0A%09public Map%3CLong, ReCiterCluster%3E cluster(List%3CReCiterArticle%3E reCiterArticles) %7B%0A%09%09%0A%09%09// Reset ReCiterCluster's static id counter to 0, so that subsequent calls%0A%09%09// to cluster method has ReCiterCluster id starts with 0.%0A%09%09ReCiterCluster.getClusterIDCounter().set(0);%0A%09%09%0A%09%09Map%3CLong, ReCiterCluster%3E clusters = new HashMap%3C%3E();%0A%0A%09%09reCiterArticles.forEach(article -%3E %7B%0A%09%09%09// create its own cluster.%0A%09%09%09ReCiterCluster newReCiterCluster = new ReCiterCluster();%0A%09%09%09//newReCiterCluster.setClusterOriginator(article.getArticleId());%0A%09%09%09newReCiterCluster.add(article);%0A%09%09%09clusters.put(newReCiterCluster.getClusterID(), newReCiterCluster);%0A%09%09%7D);%0A%09%09return clusters;%0A%09%7D%0A%0A%0A%0A%09@Override%0A%09public Map%3CLong, ReCiterCluster%3E cluster(List%3CReCiterArticle%3E reCiterArticles, Set%3CLong%3E seedPmids) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%0A%0A%09@Override%0A%09public Map%3CLong, ReCiterCluster%3E cluster(Map%3CLong, ReCiterCluster%3E clusters) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%7D%0A

Change nanme to baseline