Program: 50175
Project: 50175
Buggy source:
@Description("String_Node_Str") @PluginTarget(GraphDatabaseService.class) public Representation about(@Source GraphDatabaseService graphDb) throws TaxonNotFoundException, MultipleHitsException {
  GraphDatabaseAgent gdb=new GraphDatabaseAgent(graphDb);
  GraphExplorer ge=new GraphExplorer(gdb);
  HashMap<String,Object> draftTreeInfo=null;
  try {
    Node meta=ge.getSynthesisMetaNode();
    if (meta != null) {
      String[] sourceList=(String[])meta.getProperty("String_Node_Str");
      Node startNode=gdb.getNodeById((Long)gdb.getGraphProperty("String_Node_Str"));
      Integer numMRCA=((long[])startNode.getProperty(NodeProperty.MRCA.propertyName)).length;
      Integer numStudies=sourceList.length;
      draftTreeInfo=new HashMap<String,Object>();
      draftTreeInfo.put("String_Node_Str",meta.getProperty("String_Node_Str"));
      draftTreeInfo.put("String_Node_Str",meta.getProperty("String_Node_Str"));
      draftTreeInfo.put("String_Node_Str",ge.getTaxonomyVersion());
      draftTreeInfo.put("String_Node_Str",startNode.getId());
      draftTreeInfo.put("String_Node_Str",String.valueOf(startNode.getProperty(NodeProperty.NAME.propertyName)));
      draftTreeInfo.put("String_Node_Str",Long.valueOf((String)startNode.getProperty(NodeProperty.TAX_UID.propertyName)));
      draftTreeInfo.put("String_Node_Str",numMRCA);
      draftTreeInfo.put("String_Node_Str",numStudies);
      draftTreeInfo.put("String_Node_Str",sourceList);
    }
 else {
      draftTreeInfo=new HashMap<String,Object>();
      draftTreeInfo.put("String_Node_Str","String_Node_Str");
      return OTRepresentationConverter.convert(draftTreeInfo);
    }
  }
  finally {
    ge.shutdownDB();
  }
  return OTRepresentationConverter.convert(draftTreeInfo);
}

Fixed version (ground truth):
@Description("String_Node_Str") @PluginTarget(GraphDatabaseService.class) public Representation about(@Source GraphDatabaseService graphDb) throws TaxonNotFoundException, MultipleHitsException {
  GraphDatabaseAgent gdb=new GraphDatabaseAgent(graphDb);
  GraphExplorer ge=new GraphExplorer(gdb);
  HashMap<String,Object> draftTreeInfo=null;
  try {
    Node meta=ge.getSynthesisMetaNode();
    if (meta != null) {
      ArrayList<String> sourceList=ge.getSynthesisSourceList();
      Node startNode=gdb.getNodeById((Long)gdb.getGraphProperty("String_Node_Str"));
      Integer numMRCA=((long[])startNode.getProperty(NodeProperty.MRCA.propertyName)).length;
      Integer numStudies=sourceList.size();
      draftTreeInfo=new HashMap<String,Object>();
      draftTreeInfo.put("String_Node_Str",meta.getProperty("String_Node_Str"));
      draftTreeInfo.put("String_Node_Str",meta.getProperty("String_Node_Str"));
      draftTreeInfo.put("String_Node_Str",ge.getTaxonomyVersion());
      draftTreeInfo.put("String_Node_Str",startNode.getId());
      draftTreeInfo.put("String_Node_Str",String.valueOf(startNode.getProperty(NodeProperty.NAME.propertyName)));
      draftTreeInfo.put("String_Node_Str",Long.valueOf((String)startNode.getProperty(NodeProperty.TAX_UID.propertyName)));
      draftTreeInfo.put("String_Node_Str",numMRCA);
      draftTreeInfo.put("String_Node_Str",numStudies);
      draftTreeInfo.put("String_Node_Str",sourceList);
    }
 else {
      draftTreeInfo=new HashMap<String,Object>();
      draftTreeInfo.put("String_Node_Str","String_Node_Str");
      return OTRepresentationConverter.convert(draftTreeInfo);
    }
  }
  finally {
    ge.shutdownDB();
  }
  return OTRepresentationConverter.convert(draftTreeInfo);
}