Program: 57742
Project: 57742
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private void createRankedVisBricksViews(){
  List<DataContainer> fixedDataContainers=new ArrayList<DataContainer>();
  for (  DimensionGroup dimGroup : dimGroupManager.getDimensionGroups()) {
    if (!dataContainers.contains(dimGroup.getDataContainer()))     fixedDataContainers.add(dimGroup.getDataContainer());
  }
  hashVisBricks2DataContainerChoice.clear();
  List<Pair<Float,DataContainer>> score2DataContainerList=new ArrayList<Pair<Float,DataContainer>>();
  for (  DataContainer referenceDataContainer : dataContainers) {
    float scoreSum=0;
    int scoreCount=0;
    for (    DataContainer fixedDataContainer : fixedDataContainers) {
      scoreSum+=referenceDataContainer.getContainerStatistics().adjustedRandIndex().getScore(fixedDataContainer,false);
      scoreCount++;
    }
    score2DataContainerList.add(new Pair(scoreSum / scoreCount,referenceDataContainer));
  }
  Collections.sort(score2DataContainerList);
  int rank=score2DataContainerList.size();
  for (  Pair<Float,DataContainer> score2DataContainer : score2DataContainerList) {
    DataContainer dataContainer=score2DataContainer.getSecond();
    Row vendingMachineElementLayout=new Row("String_Node_Str");
    vendingMachineElementLayout.setGrabY(true);
    ElementLayout rankElementLayout=new ElementLayout("String_Node_Str");
    rankElementLayout.setPixelSizeX(70);
    RankNumberRenderer rankNumberRenderer=new RankNumberRenderer("String_Node_Str" + rank--,getTextRenderer());
    rankElementLayout.setRenderer(rankNumberRenderer);
    ElementLayout visBricksElementLayout=new ElementLayout("String_Node_Str");
    GLVisBricks visBricks=createVisBricks(visBricksElementLayout);
    visBricks.setDataContainer(dataContainer);
    visBricksStack.add(0,visBricks);
    hashVisBricks2DataContainerChoice.put(visBricks,dataContainer);
    if (visBricksStack.size() == score2DataContainerList.size()) {
      selectedVisBricksChoice=visBricksStack.get(0);
      vendingMachineElementLayout.addBackgroundRenderer(new ColorRenderer(new float[]{1,1,0,1}));
    }
    if (fixedDataContainers != null && fixedDataContainers.size() > 0)     visBricks.addDimensionGroups(fixedDataContainers,null);
    uninitializedVisBrickViews.add(visBricks);
    vendingMachineElementLayout.append(rankElementLayout);
    vendingMachineElementLayout.append(visBricksElementLayout);
    mainColumn.add(0,vendingMachineElementLayout);
  }
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private void createRankedVisBricksViews(){
  List<DataContainer> fixedDataContainers=new ArrayList<DataContainer>();
  for (  DimensionGroup dimGroup : dimGroupManager.getDimensionGroups()) {
    if (!dataContainers.contains(dimGroup.getDataContainer()))     fixedDataContainers.add(dimGroup.getDataContainer());
  }
  hashVisBricks2DataContainerChoice.clear();
  List<Pair<Float,DataContainer>> score2DataContainerList=new ArrayList<Pair<Float,DataContainer>>();
  for (  DataContainer referenceDataContainer : dataContainers) {
    float scoreSum=0;
    int scoreCount=0;
    for (    DataContainer fixedDataContainer : fixedDataContainers) {
      scoreSum+=referenceDataContainer.getContainerStatistics().adjustedRandIndex().getScore(fixedDataContainer,false);
      scoreCount++;
    }
    score2DataContainerList.add(new Pair(scoreSum / scoreCount,referenceDataContainer));
  }
  Collections.sort(score2DataContainerList);
  int rank=score2DataContainerList.size();
  for (  Pair<Float,DataContainer> score2DataContainer : score2DataContainerList) {
    DataContainer dataContainer=score2DataContainer.getSecond();
    Row vendingMachineElementLayout=new Row("String_Node_Str");
    vendingMachineElementLayout.setGrabY(true);
    ElementLayout rankElementLayout=new ElementLayout("String_Node_Str");
    rankElementLayout.setPixelSizeX(70);
    RankNumberRenderer rankNumberRenderer=new RankNumberRenderer("String_Node_Str" + rank--,getTextRenderer());
    rankElementLayout.setRenderer(rankNumberRenderer);
    ElementLayout visBricksElementLayout=new ElementLayout("String_Node_Str");
    GLVisBricks visBricks=createVisBricks(visBricksElementLayout);
    visBricks.setDataContainer(dataContainer);
    visBricksStack.add(0,visBricks);
    hashVisBricks2DataContainerChoice.put(visBricks,dataContainer);
    if (visBricksStack.size() == score2DataContainerList.size()) {
      selectedVisBricksChoice=visBricksStack.get(0);
      vendingMachineElementLayout.addBackgroundRenderer(new ColorRenderer(new float[]{1,1,0,1}));
    }
    if (fixedDataContainers != null && fixedDataContainers.size() > 0)     visBricks.addDataContainers(fixedDataContainers,null);
    uninitializedVisBrickViews.add(visBricks);
    vendingMachineElementLayout.append(rankElementLayout);
    vendingMachineElementLayout.append(visBricksElementLayout);
    mainColumn.add(0,vendingMachineElementLayout);
  }
}