Program: 166110
Project: 166110
Buggy source:
private static void setupWeightedRandomList(Configuration cfg){
  float rarity0=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",250.0f).getDouble();
  float rarity1=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",150.0f).getDouble();
  float rarity2=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",90.0f).getDouble();
  float rarity3=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",40.0f).getDouble();
  float rarity4=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",20.0f).getDouble();
  float rarity5=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",1.0f).getDouble();
  randomDimlets=new WeightedRandomSelector<Integer,Integer>(new Random());
  setupRarity(randomDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  randomMaterialDimlets=new WeightedRandomSelector<Integer,Integer>(new Random());
  setupRarity(randomMaterialDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  randomLiquidDimlets=new WeightedRandomSelector<Integer,Integer>(new Random());
  setupRarity(randomLiquidDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  for (  Map.Entry<Integer,DimletEntry> entry : idToDimlet.entrySet()) {
    randomDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
    if (entry.getValue().getKey().getType() == DimletType.DIMLET_MATERIAL) {
      if (idToBlock.get(entry.getKey()) != null) {
        randomMaterialDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
      }
    }
 else     if (entry.getValue().getKey().getType() == DimletType.DIMLET_LIQUID) {
      if (idToFluid.get(entry.getKey()) != null) {
        randomLiquidDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
      }
    }
  }
}

Fixed version (ground truth):
private static void setupWeightedRandomList(Configuration cfg){
  float rarity0=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",250.0f).getDouble();
  float rarity1=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",150.0f).getDouble();
  float rarity2=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",90.0f).getDouble();
  float rarity3=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",40.0f).getDouble();
  float rarity4=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",20.0f).getDouble();
  float rarity5=(float)cfg.get(CATEGORY_RARITY,"String_Node_Str",1.0f).getDouble();
  randomDimlets=new WeightedRandomSelector<Integer,Integer>();
  setupRarity(randomDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  randomMaterialDimlets=new WeightedRandomSelector<Integer,Integer>();
  setupRarity(randomMaterialDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  randomLiquidDimlets=new WeightedRandomSelector<Integer,Integer>();
  setupRarity(randomLiquidDimlets,rarity0,rarity1,rarity2,rarity3,rarity4,rarity5);
  for (  Map.Entry<Integer,DimletEntry> entry : idToDimlet.entrySet()) {
    randomDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
    if (entry.getValue().getKey().getType() == DimletType.DIMLET_MATERIAL) {
      if (idToBlock.get(entry.getKey()) != null) {
        randomMaterialDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
      }
    }
 else     if (entry.getValue().getKey().getType() == DimletType.DIMLET_LIQUID) {
      if (idToFluid.get(entry.getKey()) != null) {
        randomLiquidDimlets.addItem(entry.getValue().getRarity(),entry.getKey());
      }
    }
  }
}