Program: 38898
Project: 38898
Buggy source:
private void writeDQVReport(Issue issue,RepositoryConnection repCon,ValueFactory f,String sdate) throws IOException, OpenRDFException {
  String ndqv="String_Node_Str";
  String nex="String_Node_Str";
  URI ptype=f.createURI("String_Node_Str");
  URI pcomputedOn=f.createURI(ndqv + "String_Node_Str");
  URI pdate=f.createURI("String_Node_Str");
  URI pvalue=f.createURI(ndqv + "String_Node_Str");
  URI pisMeasurementOf=f.createURI(ndqv + "String_Node_Str");
  String datasetName=this.computedOn.substring(this.computedOn.lastIndexOf("String_Node_Str") + 1,this.computedOn.length());
  URI measure=f.createURI(nex + datasetName + issue.getName().replace("String_Node_Str","String_Node_Str")+ sdate);
  repCon.add(measure,ptype,f.createURI(ndqv + "String_Node_Str"));
  if (this.computedOn.startsWith("String_Node_Str"))   repCon.add(measure,pcomputedOn,f.createURI(this.computedOn));
 else {
    Value datasetPath=new LiteralImpl(this.computedOn,XMLSchema.STRING);
    repCon.add(measure,pcomputedOn,datasetPath);
  }
  Value ldate=new LiteralImpl(sdate,XMLSchema.DATE);
  repCon.add(measure,pdate,ldate);
  int i=new Integer(0);
  String res;
  if (issue.getResult().isProblematic())   res=Long.toString(issue.getResult().occurrenceCount());
 else   res="String_Node_Str";
  Value lval=new LiteralImpl(res,XMLSchema.INTEGER);
  repCon.add(measure,pvalue,lval);
  URI uriDimension=f.createURI(nex + "String_Node_Str" + issue.getName().replace("String_Node_Str","String_Node_Str"));
  repCon.add(measure,pisMeasurementOf,uriDimension);
}

Fixed version (ground truth):
private void writeDQVReport(Issue issue,RepositoryConnection repCon,ValueFactory f,String sdate) throws IOException, OpenRDFException {
  String ndqv="String_Node_Str";
  String nex="String_Node_Str";
  URI ptype=f.createURI("String_Node_Str");
  URI pcomputedOn=f.createURI(ndqv + "String_Node_Str");
  URI pdate=f.createURI("String_Node_Str");
  URI pvalue=f.createURI(ndqv + "String_Node_Str");
  URI pisMeasurementOf=f.createURI(ndqv + "String_Node_Str");
  String datasetName=this.computedOn.substring(this.computedOn.lastIndexOf("String_Node_Str") + 1,this.computedOn.length());
  URI measure=f.createURI(nex + datasetName + issue.getName().replace("String_Node_Str","String_Node_Str")+ sdate);
  repCon.add(measure,ptype,f.createURI(ndqv + "String_Node_Str"));
  if (this.computedOn.startsWith("String_Node_Str"))   repCon.add(measure,pcomputedOn,f.createURI(this.computedOn));
 else {
    Value datasetPath=new LiteralImpl(this.computedOn,XMLSchema.STRING);
    repCon.add(measure,pcomputedOn,datasetPath);
  }
  Value ldate=new LiteralImpl(sdate,XMLSchema.DATE);
  repCon.add(measure,pdate,ldate);
  int i=new Integer(0);
  String res;
  Value lval;
  try {
    long r=issue.getResult().occurrenceCount();
    if (issue.getResult().isProblematic())     res=Long.toString(issue.getResult().occurrenceCount());
 else     res="String_Node_Str";
    lval=new LiteralImpl(res,XMLSchema.INTEGER);
  }
 catch (  java.lang.UnsupportedOperationException e) {
    if (issue.getResult().isProblematic())     lval=new LiteralImpl("String_Node_Str",XMLSchema.BOOLEAN);
 else     lval=new LiteralImpl("String_Node_Str",XMLSchema.BOOLEAN);
  }
  repCon.add(measure,pvalue,lval);
  URI uriDimension=f.createURI(nex + "String_Node_Str" + issue.getName().replace("String_Node_Str","String_Node_Str"));
  repCon.add(measure,pisMeasurementOf,uriDimension);
}