Program: 131501
Project: 131501
Buggy source:
public void init(Iterable<SimpleAnnoSentence> cr){
  Map<String,Set<String>> predSenseSetMap=new HashMap<String,Set<String>>();
  Set<String> knownRoles=new HashSet<String>();
  Set<String> knownLinks=new HashSet<String>();
  Map<String,MutableInt> words=new HashMap<String,MutableInt>();
  Map<String,MutableInt> unks=new HashMap<String,MutableInt>();
  initialized=true;
  knownLinks.add("String_Node_Str");
  knownLinks.add("String_Node_Str");
  knownUnks.add("String_Node_Str");
  knownRoles.add(UNKNOWN_ROLE);
  knownRoles.add("String_Node_Str");
  for (  SimpleAnnoSentence sent : cr) {
    if (sent.size() > maxSentLength) {
      maxSentLength=sent.size();
    }
    for (    SrlEdge edge : sent.getSrlGraph().getEdges()) {
      String role=edge.getLabel();
      knownRoles.add(role);
      int position=edge.getPred().getPosition();
      String lemma=sent.getLemma(position);
      Set<String> senses=predSenseSetMap.get(lemma);
      if (senses == null) {
        senses=new TreeSet<String>();
        predSenseSetMap.put(lemma,senses);
      }
      senses.add(edge.getPred().getLabel());
    }
    for (int position=0; position < sent.size(); position++) {
      String wordForm=sent.getWord(position);
      String cleanWord=normalize.clean(wordForm);
      String unkWord=sig.getSignature(wordForm,position,prm.language);
      unkWord=normalize.escape(unkWord);
      words=addWord(words,cleanWord);
      unks=addWord(unks,unkWord);
      knownPostags.add(sent.getPosTag(position));
    }
  }
  knownWords=getUnigramsAboveThreshold(words,prm.cutoff);
  knownUnks=getUnigramsAboveThreshold(unks,prm.cutoff);
  this.linkStateNames=new ArrayList<String>(knownLinks);
  this.roleStateNames=new ArrayList<String>(knownRoles);
  for (  Entry<String,Set<String>> entry : predSenseSetMap.entrySet()) {
    predSenseListMap.put(entry.getKey(),new ArrayList<String>(entry.getValue()));
  }
  log.info("String_Node_Str" + roleStateNames.size());
  log.info("String_Node_Str" + roleStateNames);
  log.info("String_Node_Str" + predSenseListMap.size());
}

Fixed version (ground truth):
public void init(Iterable<SimpleAnnoSentence> cr){
  Map<String,Set<String>> predSenseSetMap=new HashMap<String,Set<String>>();
  Set<String> knownRoles=new HashSet<String>();
  Set<String> knownLinks=new HashSet<String>();
  Map<String,MutableInt> words=new HashMap<String,MutableInt>();
  Map<String,MutableInt> unks=new HashMap<String,MutableInt>();
  initialized=true;
  knownLinks.add("String_Node_Str");
  knownLinks.add("String_Node_Str");
  knownUnks.add("String_Node_Str");
  knownRoles.add(UNKNOWN_ROLE);
  knownRoles.add("String_Node_Str");
  for (  SimpleAnnoSentence sent : cr) {
    if (sent.size() > maxSentLength) {
      maxSentLength=sent.size();
    }
    for (    SrlEdge edge : sent.getSrlGraph().getEdges()) {
      String role=edge.getLabel();
      knownRoles.add(role);
    }
    for (    SrlPred pred : sent.getSrlGraph().getPreds()) {
      int position=pred.getPosition();
      String lemma=sent.getLemma(position);
      Set<String> senses=predSenseSetMap.get(lemma);
      if (senses == null) {
        senses=new TreeSet<String>();
        predSenseSetMap.put(lemma,senses);
      }
      senses.add(pred.getLabel());
    }
    for (int position=0; position < sent.size(); position++) {
      String wordForm=sent.getWord(position);
      String cleanWord=normalize.clean(wordForm);
      String unkWord=sig.getSignature(wordForm,position,prm.language);
      unkWord=normalize.escape(unkWord);
      words=addWord(words,cleanWord);
      unks=addWord(unks,unkWord);
      knownPostags.add(sent.getPosTag(position));
    }
  }
  knownWords=getUnigramsAboveThreshold(words,prm.cutoff);
  knownUnks=getUnigramsAboveThreshold(unks,prm.cutoff);
  this.linkStateNames=new ArrayList<String>(knownLinks);
  this.roleStateNames=new ArrayList<String>(knownRoles);
  for (  Entry<String,Set<String>> entry : predSenseSetMap.entrySet()) {
    predSenseListMap.put(entry.getKey(),new ArrayList<String>(entry.getValue()));
  }
  log.info("String_Node_Str" + roleStateNames.size());
  log.info("String_Node_Str" + roleStateNames);
  log.info("String_Node_Str" + predSenseListMap.size());
}