nus-yam/ex-repair huggingface dataset:
Program: 35979
Project: 35979
Buggy source:
public void serveDescription(RestServiceRequest rsr){
  rsr.startDoc();
  if (rsr.getResponseContentType() == ResponseType.HTML)   rsr.write("String_Node_Str").write(getName()).write("String_Node_Str");
  rsr.datawriter.object().key("String_Node_Str").value(getName()).key("String_Node_Str").value(description).key("String_Node_Str").value(RestServices.getServiceUrl(getName())).key("String_Node_Str").value(JSONSchemaBuilder.build(Utils.getFirstArgumentType(microflowname))).key("String_Node_Str").value(isFileSource).key("String_Node_Str").value(isFileTarget ? RestServices.CONTENTTYPE_OCTET + "String_Node_Str" : JSONSchemaBuilder.build(Core.getReturnType(microflowname))).endObject();
  rsr.endDoc();
}

Fixed version (ground truth):
public void serveDescription(RestServiceRequest rsr){
  rsr.startDoc();
  if (rsr.getResponseContentType() == ResponseType.HTML)   rsr.write("String_Node_Str").write(getName()).write("String_Node_Str");
  rsr.datawriter.object().key("String_Node_Str").value(getName()).key("String_Node_Str").value(description).key("String_Node_Str").value(RestServices.getServiceUrl(getName())).key("String_Node_Str").value(hasArgument ? JSONSchemaBuilder.build(Utils.getFirstArgumentType(microflowname)) : null).key("String_Node_Str").value(isFileSource).key("String_Node_Str").value(isFileTarget ? RestServices.CONTENTTYPE_OCTET + "String_Node_Str" : JSONSchemaBuilder.build(Core.getReturnType(microflowname))).endObject();
  rsr.endDoc();
}
Program: 35980
Project: 35980
Buggy source:
public static Long getFileSize(IContext context,IMendixObject document){
  final int BUFFER_SIZE=4096;
  long size=0;
  if (context != null) {
    InputStream inputStream=null;
    byte[] buffer=new byte[BUFFER_SIZE];
    int bytesRead=0;
    try {
      inputStream=Core.getFileDocumentContent(context,document);
      while ((bytesRead=inputStream.read(buffer)) != BUFFER_SIZE) {
        size+=bytesRead;
      }
      size+=bytesRead;
    }
 catch (    IOException e) {
      Core.getLogger("String_Node_Str").error("String_Node_Str" + document.getId());
    }
 finally {
      IOUtils.closeQuietly(inputStream);
    }
  }
  return size;
}

Fixed version (ground truth):
public static Long getFileSize(IContext context,IMendixObject document){
  final int BUFFER_SIZE=4096;
  long size=0;
  if (context != null) {
    InputStream inputStream=null;
    byte[] buffer=new byte[BUFFER_SIZE];
    try {
      inputStream=Core.getFileDocumentContent(context,document);
      int i;
      while ((i=inputStream.read(buffer)) != -1)       size+=i;
    }
 catch (    IOException e) {
      Core.getLogger("String_Node_Str").error("String_Node_Str" + document.getId());
    }
 finally {
      IOUtils.closeQuietly(inputStream);
    }
  }
  return size;
}
Program: 35981
Project: 35981
Buggy source:
private boolean writeChanges(final RestServiceRequest rsr,IContext c,long since) throws CoreException {
  if (since < 0)   throw new IllegalArgumentException("String_Node_Str");
  final AtomicBoolean something=new AtomicBoolean(false);
  XPath.create(c,ObjectState.class).eq(ObjectState.MemberNames.ObjectState_ServiceObjectIndex,this.getServiceObjectIndex()).compare(ObjectState.MemberNames.revision,"String_Node_Str",since).addSortingAsc(ObjectState.MemberNames.revision).batch(RestServices.BATCHSIZE,new IBatchProcessor<ObjectState>(){
    @Override public void onItem(    ObjectState item,    long offset,    long total) throws Exception {
      rsr.datawriter.value(writeObjectStateToJson(item));
      something.set(true);
    }
  }
);
  return something.get();
}

Fixed version (ground truth):
private ObjectState writeChanges(final RestServiceRequest rsr,IContext c,long since) throws CoreException {
  if (since < 0)   throw new IllegalArgumentException("String_Node_Str");
  final AtomicReference<ObjectState> lastWrittenRevision=new AtomicReference<ObjectState>();
  XPath.create(c,ObjectState.class).eq(ObjectState.MemberNames.ObjectState_ServiceObjectIndex,this.getServiceObjectIndex()).compare(ObjectState.MemberNames.revision,"String_Node_Str",since).addSortingAsc(ObjectState.MemberNames.revision).batch(RestServices.BATCHSIZE,new IBatchProcessor<ObjectState>(){
    @Override public void onItem(    ObjectState item,    long offset,    long total) throws Exception {
      rsr.datawriter.value(writeObjectStateToJson(item));
      lastWrittenRevision.set(item);
    }
  }
);
  return lastWrittenRevision.get();
}
Program: 35983
Project: 35983
Buggy source:
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.deleteObject(getContext(),resourceUrl,optEtag).getMendixObject();
}

Fixed version (ground truth):
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.deleteObject(getContext(),resourceUrl,null).getMendixObject();
}
Program: 35984
Project: 35984
Buggy source:
public delete(String resourceUrl,String optEtag){
  super();
  this.resourceUrl=resourceUrl;
  this.optEtag=optEtag;
}

Fixed version (ground truth):
public delete(String resourceUrl){
  super();
  this.resourceUrl=resourceUrl;
}
Program: 35985
Project: 35985
Buggy source:
public get(String url,IMendixObject stub,String optEtag){
  super();
  this.url=url;
  this.stub=stub;
  this.optEtag=optEtag;
}

Fixed version (ground truth):
public get(String url,IMendixObject stub){
  super();
  this.url=url;
  this.stub=stub;
}
Program: 35986
Project: 35986
Buggy source:
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.getObject(getContext(),url,optEtag,stub).getMendixObject();
}

Fixed version (ground truth):
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.getObject(getContext(),url,null,stub).getMendixObject();
}
Program: 35987
Project: 35987
Buggy source:
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.putObject(getContext(),url,dataObject,optEtag).getMendixObject();
}

Fixed version (ground truth):
@Override public IMendixObject executeAction() throws Exception {
  return RestConsumer.putObject(getContext(),url,dataObject,null).getMendixObject();
}
Program: 35988
Project: 35988
Buggy source:
public put(String url,IMendixObject dataObject,String optEtag){
  super();
  this.url=url;
  this.dataObject=dataObject;
  this.optEtag=optEtag;
}

Fixed version (ground truth):
public put(String url,IMendixObject dataObject){
  super();
  this.url=url;
  this.dataObject=dataObject;
}
Program: 35989
Project: 35989
Buggy source:
private void processUpdate(String key,String jsonString,String eTag,boolean deleted) throws Exception {
  IContext context=Core.createSystemContext();
  ServiceObjectIndex sState=getServiceObjectIndex();
  ObjectState objectState=XPath.create(context,ObjectState.class).eq(ObjectState.MemberNames.key,key).eq(ObjectState.MemberNames.ObjectState_ServiceObjectIndex,sState).first();
  if (objectState == null) {
    if (deleted)     return;
    objectState=new ObjectState(context);
    objectState.setkey(key);
    objectState.setObjectState_ServiceObjectIndex(sState);
    storeUpdate(objectState,eTag,jsonString,deleted);
  }
 else   if (objectState.getetag().equals(eTag) && objectState.getdeleted() != deleted)   return;
 else   storeUpdate(objectState,eTag,jsonString,deleted);
}

Fixed version (ground truth):
private void processUpdate(String key,String jsonString,String eTag,boolean deleted) throws Exception {
  IContext context=Core.createSystemContext();
  ServiceObjectIndex sState=getServiceObjectIndex();
  ObjectState objectState=XPath.create(context,ObjectState.class).eq(ObjectState.MemberNames.key,key).eq(ObjectState.MemberNames.ObjectState_ServiceObjectIndex,sState).first();
  if (objectState == null) {
    if (deleted)     return;
    objectState=new ObjectState(context);
    objectState.setkey(key);
    objectState.setObjectState_ServiceObjectIndex(sState);
    storeUpdate(objectState,eTag,jsonString,deleted);
  }
 else   if (deleted && objectState.getdeleted())   return;
 else   if (!deleted && !objectState.getdeleted() && eTag != null && eTag.equals(objectState.getetag()))   return;
 else   storeUpdate(objectState,eTag,jsonString,deleted);
}
Program: 35990
Project: 35990
Buggy source:
public boolean identifierInConstraint(IContext c,IMendixIdentifier id) throws CoreException {
  if (this.getConstraint(c).isEmpty())   return true;
  return Core.retrieveXPathQueryAggregate(c,"String_Node_Str" + getSourceEntity() + "String_Node_Str"+ id.toLong()+ "String_Node_Str"+ this.getConstraint(c)) == 1;
}

Fixed version (ground truth):
public boolean identifierInConstraint(IContext c,IMendixIdentifier id) throws CoreException {
  if (this.getConstraint(c).isEmpty())   return true;
  return Core.retrieveXPathQueryAggregate(c,"String_Node_Str" + getSourceEntity() + "String_Node_Str"+ id.toLong()+ "String_Node_Str"+ this.getConstraint(c)+ "String_Node_Str") == 1;
}
Program: 35992
Project: 35992
Buggy source:
private void publishTask(IContext c,Task t,boolean delete) throws CoreException {
  if (delete) {
    ChangeManager.publishDelete(c,t.getMendixObject());
    t.delete();
  }
 else {
    ChangeManager.publishUpdate(c,t.getMendixObject());
    t.commit();
  }
}

Fixed version (ground truth):
private void publishTask(IContext c,Task t,boolean delete) throws CoreException {
  if (delete) {
    t.delete();
    ChangeManager.publishDelete(c,t.getMendixObject());
  }
 else {
    t.commit();
    ChangeManager.publishUpdate(c,t.getMendixObject());
  }
}
Program: 35993
Project: 35993
Buggy source:
/** 
 * Retreives a url. Returns if statuscode is 200 OK, 304 NOT MODIFIED or 404 NOT FOUND. Exception otherwise. 
 */
public static HttpResponseData doRequest(String method,String url,String etag,String body) throws Exception {
  if (RestServices.LOG.isDebugEnabled())   RestServices.LOG.debug("String_Node_Str" + url + "String_Node_Str"+ etag+ "String_Node_Str");
  HttpMethodBase request;
  if ("String_Node_Str".equals(method))   request=new GetMethod(url);
 else   if ("String_Node_Str".equals(method))   request=new DeleteMethod(url);
 else   if ("String_Node_Str".equals(method)) {
    request=new PostMethod(url);
    ((PostMethod)request).setRequestEntity(new StringRequestEntity(body,RestServices.TEXTJSON,RestServices.UTF8));
  }
 else   if ("String_Node_Str".equals(method)) {
    request=new PutMethod(url);
    ((PutMethod)request).setRequestEntity(new StringRequestEntity(body,RestServices.TEXTJSON,RestServices.UTF8));
  }
 else   throw new IllegalStateException("String_Node_Str" + method);
  request.setRequestHeader(RestServices.ACCEPT_HEADER,RestServices.TEXTJSON);
  if (etag != null && !etag.isEmpty())   request.setRequestHeader(RestServices.IFNONEMATCH_HEADER,etag);
  try {
    int status=client.executeMethod(request);
    HttpResponseData response=new HttpResponseData(method,url,status,request.getResponseBodyAsString(),request.getResponseHeader(RestServices.ETAG_HEADER).getValue());
    RestServices.LOG.info(response);
    return response;
  }
  finally {
    request.releaseConnection();
  }
}

Fixed version (ground truth):
/** 
 * Retreives a url. Returns if statuscode is 200 OK, 304 NOT MODIFIED or 404 NOT FOUND. Exception otherwise. 
 */
public static HttpResponseData doRequest(String method,String url,String etag,String body) throws Exception {
  if (RestServices.LOG.isDebugEnabled())   RestServices.LOG.debug("String_Node_Str" + url + "String_Node_Str"+ etag+ "String_Node_Str");
  HttpMethodBase request;
  if ("String_Node_Str".equals(method))   request=new GetMethod(url);
 else   if ("String_Node_Str".equals(method))   request=new DeleteMethod(url);
 else   if ("String_Node_Str".equals(method)) {
    request=new PostMethod(url);
    ((PostMethod)request).setRequestEntity(new StringRequestEntity(body,RestServices.TEXTJSON,RestServices.UTF8));
  }
 else   if ("String_Node_Str".equals(method)) {
    request=new PutMethod(url);
    ((PutMethod)request).setRequestEntity(new StringRequestEntity(body,RestServices.TEXTJSON,RestServices.UTF8));
  }
 else   throw new IllegalStateException("String_Node_Str" + method);
  request.setRequestHeader(RestServices.ACCEPT_HEADER,RestServices.TEXTJSON);
  if (etag != null && !etag.isEmpty())   request.setRequestHeader(RestServices.IFNONEMATCH_HEADER,etag);
  try {
    int status=client.executeMethod(request);
    Header responseEtag=request.getResponseHeader(RestServices.ETAG_HEADER);
    HttpResponseData response=new HttpResponseData(method,url,status,request.getResponseBodyAsString(),responseEtag == null ? null : responseEtag.getValue());
    RestServices.LOG.info(response);
    return response;
  }
  finally {
    request.releaseConnection();
  }
}
Program: 35994
Project: 35994
Buggy source:
public static void readJsonObjectStream(String url,Predicate<Object> onObject) throws Exception, IOException {
  GetMethod request=new GetMethod(url);
  request.setRequestHeader(RestServices.ACCEPT_HEADER,RestServices.TEXTJSON);
  try {
    int status=client.executeMethod(request);
    if (status != 200)     throw new IllegalStateException("String_Node_Str" + status + "String_Node_Str"+ url);
    JSONTokener x=new JSONTokener(request.getResponseBodyAsStream());
    if (x.nextClean() != '[')     throw x.syntaxError("String_Node_Str");
    for (; ; ) {
switch (x.nextClean()) {
case ',':
        continue;
case ']':
      return;
default :
    onObject.apply(x.nextValue());
}
}
}
  finally {
request.releaseConnection();
}
}

Fixed version (ground truth):
public static void readJsonObjectStream(String url,Predicate<Object> onObject) throws Exception, IOException {
  GetMethod request=new GetMethod(url);
  request.setRequestHeader(RestServices.ACCEPT_HEADER,RestServices.TEXTJSON);
  try {
    int status=client.executeMethod(request);
    if (status != 200)     throw new IllegalStateException("String_Node_Str" + status + "String_Node_Str"+ url);
    JSONTokener x=new JSONTokener(request.getResponseBodyAsStream());
    if (x.nextClean() != '[')     throw x.syntaxError("String_Node_Str");
    for (; ; ) {
switch (x.nextClean()) {
case ',':
        continue;
case ']':
      return;
case '{':
    x.back();
  onObject.apply(new JSONObject(x));
break;
case '[':
throw new RuntimeException("String_Node_Str");
default :
onObject.apply(x.nextValue());
}
}
}
  finally {
request.releaseConnection();
}
}
Program: 35995
Project: 35995
Buggy source:
private ChangeFeedListener(String collectionUrl,String onUpdateMF,String onDeleteMF) throws Exception {
  this.url=collectionUrl;
  this.onUpdateMF=onUpdateMF;
  this.onDeleteMF=onDeleteMF;
  if (activeListeners.containsKey(url))   throw new IllegalStateException("String_Node_Str" + url);
  activeListeners.put(url,this);
  this.state=XPath.create(Core.createSystemContext(),CollectionFollowState.class).findOrCreate(CollectionFollowState.MemberNames.CollectionUrl,url);
  restartConnection();
}

Fixed version (ground truth):
private ChangeFeedListener(String collectionUrl,String onUpdateMF,String onDeleteMF) throws Exception {
  this.url=collectionUrl;
  this.onUpdateMF=onUpdateMF;
  this.onDeleteMF=onDeleteMF;
  if (activeListeners.containsKey(url))   throw new IllegalStateException("String_Node_Str" + url);
  activeListeners.put(url,this);
  this.state=XPath.create(Core.createSystemContext(),FollowChangesState.class).findOrCreate(FollowChangesState.MemberNames.CollectionUrl,url);
  restartConnection();
}
Program: 35996
Project: 35996
Buggy source:
@Override public Boolean executeAction() throws Exception {
  XPath.create(Core.createSystemContext(),CollectionFollowState.class).eq(CollectionFollowState.MemberNames.CollectionUrl).deleteAll();
  return true;
}

Fixed version (ground truth):
@Override public Boolean executeAction() throws Exception {
  XPath.create(Core.createSystemContext(),FollowChangesState.class).eq(FollowChangesState.MemberNames.CollectionUrl).deleteAll();
  return true;
}
Program: 35997
Project: 35997
Buggy source:
@Override public Boolean executeAction() throws Exception {
  throw new com.mendix.systemwideinterfaces.MendixRuntimeException("String_Node_Str");
}

Fixed version (ground truth):
@Override public Boolean executeAction() throws Exception {
  ChangeFeedListener.unfollow(collectionUrl);
  return true;
}
Program: 35998
Project: 35998
Buggy source:
public String toString(){
  return name.get("String_Node_Str");
}

Fixed version (ground truth):
public String toString(){
  if (name != null)   return name.get("String_Node_Str");
  return "String_Node_Str";
}
Program: 35999
Project: 35999
Buggy source:
protected void init(URL uri,String user,String password){
  this._host=uri;
  this.username=user;
  this.password=password;
  final char[] pwd=password.toCharArray();
  Authenticator.setDefault(new Authenticator(){
    protected PasswordAuthentication getPasswordAuthentication(){
      return new PasswordAuthentication(username,pwd);
    }
  }
);
}

Fixed version (ground truth):
protected void init(URL uri,String user,String password){
  this._host=uri;
  this.username=user;
  this.password=password;
  this.authString="String_Node_Str" + DatatypeConverter.printBase64Binary((this.username + "String_Node_Str" + this.password).getBytes());
}
Program: 36000
Project: 36000
Buggy source:
protected String issueGet(String path) throws java.io.IOException, java.net.MalformedURLException {
  URL url=new URL(this._host.getProtocol(),this._host.getHost(),path);
  HttpURLConnection conn=initializeConnection(url);
  try {
    return readFromConnection(conn);
  }
  finally {
    conn.disconnect();
  }
}

Fixed version (ground truth):
protected String issueGet(String path) throws java.io.IOException, java.net.MalformedURLException {
  URL url=new URL(this._host.getProtocol(),this._host.getHost(),path);
  HttpURLConnection conn=initializeConnection(url);
  try {
    return readFromConnection(conn);
  }
 catch (  IOException ex) {
    InputStream s=conn.getErrorStream();
    InputStreamReader isr=new InputStreamReader(s);
    BufferedReader br=new BufferedReader(isr);
    try {
      String line="String_Node_Str";
      while ((line=br.readLine()) != null) {
        System.out.print(line);
      }
      System.out.println();
    }
  finally {
      s.close();
    }
    throw ex;
  }
 finally {
    conn.disconnect();
  }
}
Program: 36001
Project: 36001
Buggy source:
protected HttpURLConnection initializeConnection(URL url) throws IOException {
  HttpURLConnection conn=(HttpURLConnection)url.openConnection();
  conn.setDoInput(true);
  conn.addRequestProperty("String_Node_Str","String_Node_Str");
  conn.setRequestProperty("String_Node_Str","String_Node_Str");
  return conn;
}

Fixed version (ground truth):
protected HttpURLConnection initializeConnection(URL url) throws IOException {
  HttpURLConnection conn=(HttpURLConnection)url.openConnection();
  conn.setDoInput(true);
  conn.addRequestProperty("String_Node_Str","String_Node_Str");
  conn.setRequestProperty("String_Node_Str","String_Node_Str");
  conn.setRequestProperty("String_Node_Str",this.authString);
  return conn;
}
Program: 36002
Project: 36002
Buggy source:
public StatementResult getStatements() throws java.io.IOException {
  StringBuilder query=new StringBuilder();
  query.append("String_Node_Str");
  if (this.filters != null && !this.filters.isEmpty()) {
    query.append("String_Node_Str");
    for (    Entry<String,String> item : this.filters.entrySet()) {
      query.append(item.getKey());
      query.append("String_Node_Str");
      query.append(item.getValue());
      query.append("String_Node_Str");
    }
    this.filters.clear();
  }
  String result=this.issueGet(query.toString());
  return this.getDecoder().fromJson(result,StatementResult.class);
}

Fixed version (ground truth):
public StatementResult getStatements() throws java.io.IOException {
  StringBuilder query=new StringBuilder();
  query.append("String_Node_Str");
  if (this.filters != null && !this.filters.isEmpty()) {
    query.append("String_Node_Str");
    for (    Entry<String,String> item : this.filters.entrySet()) {
      query.append(item.getKey());
      query.append("String_Node_Str");
      query.append(item.getValue());
      query.append("String_Node_Str");
    }
    query.deleteCharAt(query.length() - 1);
    this.filters.clear();
  }
  String result=this.issueGet(query.toString());
  return this.getDecoder().fromJson(result,StatementResult.class);
}
Program: 36003
Project: 36003
Buggy source:
@Override public Actor deserialize(JsonElement json,Type typeOfT,JsonDeserializationContext context) throws JsonParseException {
  JsonObject obj=json.getAsJsonObject();
  Class<?> klass=null;
  try {
    String objectType=obj.get(OBJECT_TYPE).getAsJsonPrimitive().getAsString().toLowerCase();
    if (objectType.equals(Agent.AGENT.toLowerCase())) {
      klass=Class.forName(Agent.class.getCanonicalName());
    }
 else     if (objectType.equals(Group.GROUP.toLowerCase())) {
      klass=Class.forName(Group.class.getCanonicalName());
    }
  }
 catch (  ClassNotFoundException e) {
    throw new JsonParseException(e.getMessage());
  }
  return context.deserialize(json,klass);
}

Fixed version (ground truth):
@Override public Actor deserialize(JsonElement json,Type typeOfT,JsonDeserializationContext context) throws JsonParseException {
  JsonObject obj=json.getAsJsonObject();
  Class<?> klass=null;
  try {
    if (obj.has(OBJECT_TYPE)) {
      String objectType=obj.get(OBJECT_TYPE).getAsJsonPrimitive().getAsString().toLowerCase();
      if (objectType.equals(Agent.AGENT.toLowerCase())) {
        klass=Class.forName(Agent.class.getCanonicalName());
      }
 else       if (objectType.equals(Group.GROUP.toLowerCase())) {
        klass=Class.forName(Group.class.getCanonicalName());
      }
    }
 else {
      klass=Class.forName(Agent.class.getCanonicalName());
    }
  }
 catch (  ClassNotFoundException e) {
    throw new JsonParseException(e.getMessage());
  }
  return context.deserialize(json,klass);
}
Program: 36004
Project: 36004
Buggy source:
private synchronized TestInfo getTestInfo(final TestCase testCase){
  final Class<? extends TestCase> clazz=testCase.getClass();
  final Package thePackage=clazz.getPackage();
  final String name=testCase.getName();
  TestCaseInfo caseInfo=caseMap.get(thePackage);
  if (caseInfo == null) {
    caseInfo=new TestCaseInfo();
    caseInfo.testCaseClass=testCase.getClass();
    caseInfo.thePackage=thePackage;
    caseMap.put(thePackage,caseInfo);
  }
  TestInfo ti=caseInfo.testMap.get(name);
  if (ti == null) {
    ti=new TestInfo();
    ti.name=name;
    ti.testCase=testCase.getClass();
    ti.thePackage=thePackage;
    caseInfo.testMap.put(name,ti);
  }
  return ti;
}

Fixed version (ground truth):
private synchronized TestInfo getTestInfo(final TestCase testCase){
  final Class<? extends TestCase> clazz=testCase.getClass();
  final Package thePackage=clazz.getPackage();
  final String name=testCase.getName();
  StringBuilder sb=new StringBuilder();
  sb.append(thePackage).append("String_Node_Str").append(clazz.getSimpleName()).append("String_Node_Str").append(name);
  final String mapKey=sb.toString();
  TestCaseInfo caseInfo=caseMap.get(thePackage);
  if (caseInfo == null) {
    caseInfo=new TestCaseInfo();
    caseInfo.testCaseClass=testCase.getClass();
    caseInfo.thePackage=thePackage;
    caseMap.put(thePackage,caseInfo);
  }
  TestInfo ti=caseInfo.testMap.get(mapKey);
  if (ti == null) {
    ti=new TestInfo();
    ti.name=name;
    ti.testCase=testCase.getClass();
    ti.thePackage=thePackage;
    caseInfo.testMap.put(mapKey,ti);
  }
  return ti;
}
Program: 36005
Project: 36005
Buggy source:
@Override public void onCreate(final Bundle arguments){
  Log.d(TAG,"String_Node_Str" + arguments.keySet());
  if (arguments != null) {
    junitOutputEnabled=getBooleanArgument(arguments,"String_Node_Str",true);
    junitOutputDirectory=arguments.getString("String_Node_Str");
    junitOutputFilePostfix=arguments.getString("String_Node_Str");
    junitNoPackagePrefix=arguments.getString("String_Node_Str");
    junitSplitLevel=arguments.getString("String_Node_Str");
    junitSingleFileName=arguments.getString("String_Node_Str");
    justCount=getBooleanArgument(arguments,"String_Node_Str",false);
    logOnly=getBooleanArgument(arguments,"String_Node_Str",false);
  }
  setDefaultParameters();
  logParameters();
  deleteOldFiles();
  super.onCreate(arguments);
}

Fixed version (ground truth):
@Override public void onCreate(final Bundle arguments){
  Log.d(TAG,"String_Node_Str" + arguments.keySet());
  if (arguments != null) {
    junitOutputEnabled=getBooleanArgument(arguments,"String_Node_Str",true);
    junitOutputDirectory=arguments.getString("String_Node_Str");
    junitOutputFilePostfix=arguments.getString("String_Node_Str");
    junitNoPackagePrefix=arguments.getString("String_Node_Str");
    junitSplitLevel=arguments.getString("String_Node_Str");
    junitSingleFileName=arguments.getString("String_Node_Str");
    justCount=getBooleanArgument(arguments,"String_Node_Str",false);
    logOnly=getBooleanArgument(arguments,"String_Node_Str",false);
  }
  setDefaultParameters();
  logParameters();
  createDirectoryIfNotExist();
  deleteOldFiles();
  super.onCreate(arguments);
}
Program: 36006
Project: 36006
Buggy source:
private void deleteOldFiles(){
  Log.d(TAG,"String_Node_Str");
  final File[] filesToDelete=new File(junitOutputDirectory).listFiles(new FilenameFilter(){
    @Override public boolean accept(    final File dir,    final String filename){
      return filename.endsWith(junitOutputFilePostfix) || filename.equals(junitSingleFileName);
    }
  }
);
  Log.d(TAG,"String_Node_Str" + Arrays.toString(filesToDelete));
  for (  final File f : filesToDelete) {
    f.delete();
  }
}

Fixed version (ground truth):
private void deleteOldFiles(){
  Log.d(TAG,"String_Node_Str");
  final File[] filesToDelete=new File(junitOutputDirectory).listFiles(new FilenameFilter(){
    @Override public boolean accept(    final File dir,    final String filename){
      return filename.endsWith(junitOutputFilePostfix) || filename.equals(junitSingleFileName);
    }
  }
);
  if (filesToDelete != null) {
    Log.d(TAG,"String_Node_Str" + Arrays.toString(filesToDelete));
    for (    final File f : filesToDelete) {
      f.delete();
    }
  }
}
Program: 36007
Project: 36007
Buggy source:
@Override protected void updateItem(Object item,boolean empty){
  super.updateItem(item,empty);
  if (empty) {
    return;
  }
  Property valProp=(Property)getTableColumn().getCellObservableValue(getIndex());
  Node node;
  if (item == null) {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof Boolean) {
    node=new CheckBox();
    ((CheckBox)node).selectedProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof HeapStatsMBean.LogLevel) {
    node=new ChoiceBox(FXCollections.observableArrayList(HeapStatsMBean.LogLevel.values()));
    ((ChoiceBox<HeapStatsMBean.LogLevel>)node).valueProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof HeapStatsMBean.RankOrder) {
    node=new ChoiceBox(FXCollections.observableArrayList(HeapStatsMBean.RankOrder.values()));
    ((ChoiceBox<HeapStatsMBean.RankOrder>)node).valueProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof Long) {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional((Property<Long>)valProp,new LongStringConverter());
  }
 else {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional(valProp);
  }
  setGraphic(node);
}

Fixed version (ground truth):
@Override protected void updateItem(Object item,boolean empty){
  super.updateItem(item,empty);
  if (empty) {
    return;
  }
  Property valProp=(Property)getTableColumn().getCellObservableValue(getIndex());
  Node node;
  if (item == null) {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof Boolean) {
    node=new CheckBox();
    ((CheckBox)node).selectedProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof HeapStatsMBean.LogLevel) {
    node=new ChoiceBox(FXCollections.observableArrayList(HeapStatsMBean.LogLevel.values()));
    ((ChoiceBox<HeapStatsMBean.LogLevel>)node).valueProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof HeapStatsMBean.RankOrder) {
    node=new ChoiceBox(FXCollections.observableArrayList(HeapStatsMBean.RankOrder.values()));
    ((ChoiceBox<HeapStatsMBean.RankOrder>)node).valueProperty().bindBidirectional(valProp);
  }
 else   if (item instanceof Integer) {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional((Property<Integer>)valProp,new IntegerStringConverter());
  }
 else   if (item instanceof Long) {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional((Property<Long>)valProp,new LongStringConverter());
  }
 else {
    node=new TextField();
    ((TextField)node).textProperty().bindBidirectional(valProp);
  }
  setGraphic(node);
}
Program: 36009
Project: 36009
Buggy source:
private void configure(){
  String rootH2h=System.getProperty(H2H_CONFIG);
  if (rootH2h == null) {
    throw new RuntimeException("String_Node_Str");
  }
  if ("String_Node_Str".equals(rootH2h)) {
    throw new RuntimeException("String_Node_Str");
  }
  parseConfig(rootH2h);
  if (config.getOutputSystem() == OutputSystem.REMOTE && config.getToken() != null) {
    ThunderExporterService.getInstance().registerAppInThunder();
  }
 else {
    ThunderExporterService.getInstance().setToken(config.getToken());
    LOGGER.info("String_Node_Str",config.getToken(),config.getNameApplication());
  }
}

Fixed version (ground truth):
private void configure(){
  String rootH2h=System.getProperty(H2H_CONFIG);
  if (rootH2h == null) {
    throw new RuntimeException("String_Node_Str");
  }
  if ("String_Node_Str".equals(rootH2h)) {
    throw new RuntimeException("String_Node_Str");
  }
  parseConfig(rootH2h);
  if (config.getOutputSystem() == OutputSystem.REMOTE && config.getToken() == null) {
    ThunderExporterService.getInstance().registerAppInThunder();
  }
 else {
    LOGGER.info("String_Node_Str",config.getToken(),config.getNameApplication());
  }
}
Program: 36010
Project: 36010
Buggy source:
public void enableEntryPointCoverage() throws ClassNotFoundException, UnmodifiableClassException {
  LOGGER.info("String_Node_Str");
  Instrumentation instrumentation=InstrumentationHolder.getInstance().getInst();
  if (instrumentation != null) {
    TransformerService ts=new TransformerService();
    Map<String,List<EntryPathData>> mapConvert=ts.transformDataFromLeechPluginForTransformation(leechPluginRegistry.values());
    LOGGER.error("String_Node_Str");
    if (config.getOutputSystem() == OutputSystem.REMOTE && config.getToken() != null) {
      ThunderExporterService.getInstance().initRemoteApp();
    }
    instrumentation.addTransformer(new EntryPointTransformer(mapConvert),true);
    ts.transformAllClassScanByH2h(instrumentation,mapConvert.keySet());
  }
 else {
    LOGGER.error("String_Node_Str");
  }
}

Fixed version (ground truth):
public void enableEntryPointCoverage() throws ClassNotFoundException, UnmodifiableClassException {
  LOGGER.info("String_Node_Str");
  Instrumentation instrumentation=InstrumentationHolder.getInstance().getInst();
  if (instrumentation != null) {
    TransformerService ts=new TransformerService();
    Map<String,List<EntryPathData>> mapConvert=ts.transformDataFromLeechPluginForTransformation(leechPluginRegistry.values());
    if (config.getOutputSystem() == OutputSystem.REMOTE && config.getToken() != null) {
      ThunderExporterService.getInstance().initRemoteApp();
    }
    instrumentation.addTransformer(new EntryPointTransformer(mapConvert),true);
    ts.transformAllClassScanByH2h(instrumentation,mapConvert.keySet());
  }
 else {
    LOGGER.error("String_Node_Str");
  }
}
Program: 36011
Project: 36011
Buggy source:
public void sendRemotePerformance(String fullMethodName,long timeExec){
  MessageMetrics msg=new MessageMetrics();
  msg.setPathClassMethodName(fullMethodName);
  msg.setToken(token);
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date date=new Date();
  msg.setDateIncoming(sdf.format(date));
  msg.setTimeExec(timeExec);
  queueRemotePerformance.add(msg);
}

Fixed version (ground truth):
public void sendRemotePerformance(String fullMethodName,long timeExec){
  MessageMetrics msg=new MessageMetrics();
  msg.setPathClassMethodName(fullMethodName);
  msg.setToken(CoreEngine.getInstance().getConfig().getToken());
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date date=new Date();
  msg.setDateIncoming(sdf.format(date));
  msg.setTimeExec(timeExec);
  queueRemotePerformance.add(msg);
}
Program: 36012
Project: 36012
Buggy source:
public void initRemoteApp(){
  TransformerService ts=new TransformerService();
  List<EntryPathData> res=ts.collectBreakerDataFromLeechPlugin(CoreEngine.getInstance().getLeechServiceRegistered());
  MessageThunderApp msg=new MessageThunderApp();
  msg.setListentryPathData(res);
  msg.setToken(token);
  sendDataHTTP("String_Node_Str",msg);
}

Fixed version (ground truth):
public void initRemoteApp(){
  LOGGER.info("String_Node_Str");
  TransformerService ts=new TransformerService();
  List<EntryPathData> res=ts.collectBreakerDataFromLeechPlugin(CoreEngine.getInstance().getLeechServiceRegistered());
  MessageThunderApp msg=new MessageThunderApp();
  msg.setListentryPathData(res);
  msg.setToken(CoreEngine.getInstance().getConfig().getToken());
  sendDataHTTP("String_Node_Str",msg);
}
Program: 36013
Project: 36013
Buggy source:
public void registerAppInThunder(){
  this.token=sendDataHTTP("String_Node_Str",CoreEngine.getInstance().getConfig());
  LOGGER.info("String_Node_Str",token,CoreEngine.getInstance().getConfig().getNameApplication());
}

Fixed version (ground truth):
public void registerAppInThunder(){
  String token=sendDataHTTP("String_Node_Str",CoreEngine.getInstance().getConfig());
  CoreEngine.getInstance().getConfig().setToken(token);
  LOGGER.info("String_Node_Str",token,CoreEngine.getInstance().getConfig().getNameApplication());
}
Program: 36014
Project: 36014
Buggy source:
public void sendRemoteBreaker(String pathClassMethodName){
  MessageBreaker msg=new MessageBreaker();
  msg.setPathClassMethodName(pathClassMethodName);
  msg.setToken(token);
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date date=new Date();
  msg.setDateIncoming(sdf.format(date));
  queueRemoteBreaker.add(msg);
}

Fixed version (ground truth):
public void sendRemoteBreaker(String pathClassMethodName){
  MessageBreaker msg=new MessageBreaker();
  msg.setPathClassMethodName(pathClassMethodName);
  msg.setToken(CoreEngine.getInstance().getConfig().getToken());
  SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
  Date date=new Date();
  msg.setDateIncoming(sdf.format(date));
  queueRemoteBreaker.add(msg);
}
Program: 36015
Project: 36015
Buggy source:
public Map<String,List<EntryPathData>> transformDataFromLeechPluginForTransformation(Collection<LeechService> leechService){
  Map<String,List<EntryPathData>> mapToTransform=new HashMap<String,List<EntryPathData>>();
  for (  LeechService leech : leechService) {
    for (    EntryPathData entryPath : leech.getFrameworkInformations().getListEntryPath()) {
      if (entryPath.getMethodName() != null) {
switch (entryPath.getTypePath()) {
case SERVLET:
          createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
        createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
      createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
    break;
case FILTER:
  createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
break;
default :
createRegistrerBreakerData(entryPath,mapToTransform,entryPath.getMethodName(),entryPath.getSignatureName());
break;
}
}
}
}
return mapToTransform;
}

Fixed version (ground truth):
public Map<String,List<EntryPathData>> transformDataFromLeechPluginForTransformation(Collection<LeechService> leechService){
  Map<String,List<EntryPathData>> mapToTransform=new HashMap<String,List<EntryPathData>>();
  for (  LeechService leech : leechService) {
    for (    EntryPathData entryPath : leech.getFrameworkInformations().getListEntryPath()) {
      if (entryPath.getMethodName() != null && !"String_Node_Str".equals(entryPath.getClassName())) {
switch (entryPath.getTypePath()) {
case SERVLET:
          createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
        createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
      createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
    break;
case FILTER:
  createRegistrerBreakerData(entryPath,mapToTransform,"String_Node_Str","String_Node_Str");
break;
default :
createRegistrerBreakerData(entryPath,mapToTransform,entryPath.getMethodName(),entryPath.getSignatureName());
break;
}
}
}
}
return mapToTransform;
}
Program: 36016
Project: 36016
Buggy source:
private void findAllClassAndMethod(ActionConfig action){
  try {
    Class<?> c=Class.forName(action.getClassName());
    for (    Method m : c.getDeclaredMethods()) {
      EntryPathData entry=new EntryPathData();
      entry.setTypePath(TypePath.DYNAMIC);
      entry.setMethodEntry(action.getClassName());
      entry.setClassName(m.getName());
      entry.setUri(action.getName());
      entry.setListEntryPathData(searchParameterMethod(m.getParameterTypes()));
      entry.setSignatureName(getInternalSignature(m));
      addEntryPath(entry);
    }
  }
 catch (  ClassNotFoundException e) {
    LOGGER.error("String_Node_Str" + Struts2Service.class.getCanonicalName() + "String_Node_Str"+ action.getClassName()+ "String_Node_Str"+ e.getMessage());
  }
}

Fixed version (ground truth):
private void findAllClassAndMethod(ActionConfig action){
  try {
    Class<?> c=Class.forName(action.getClassName());
    for (    Method m : c.getDeclaredMethods()) {
      EntryPathData entry=new EntryPathData();
      entry.setTypePath(TypePath.DYNAMIC);
      entry.setClassName(action.getClassName());
      entry.setMethodEntry(m.getName());
      entry.setUri(action.getName());
      entry.setListEntryPathData(searchParameterMethod(m.getParameterTypes()));
      entry.setSignatureName(getInternalSignature(m));
      addEntryPath(entry);
    }
  }
 catch (  ClassNotFoundException e) {
    LOGGER.error("String_Node_Str" + Struts2Service.class.getCanonicalName() + "String_Node_Str"+ action.getClassName()+ "String_Node_Str"+ e.getMessage());
  }
}
Program: 36017
Project: 36017
Buggy source:
@Override public void report(FrameworkInformations frameworkInformations){
  if (frameworkInformations.hasEntryPaths()) {
    LOG.info("String_Node_Str",frameworkInformations.getFrameworkEnum(),frameworkInformations.getVersion());
    LOG.info("String_Node_Str",frameworkInformations.getListEntryPath().size());
    if (LOG.isDebugEnabled()) {
      Gson gson=new Gson();
      LOG.debug("String_Node_Str" + gson.toJson(frameworkInformations.getListEntryPath()));
    }
  }
}

Fixed version (ground truth):
@Override public void report(FrameworkInformations frameworkInformations){
  if (frameworkInformations.hasEntryPaths()) {
    LOG.info("String_Node_Str",frameworkInformations.getFrameworkName(),frameworkInformations.getVersion());
    LOG.info("String_Node_Str",frameworkInformations.getListEntryPath().size());
    if (LOG.isDebugEnabled()) {
      Gson gson=new Gson();
      LOG.debug("String_Node_Str" + gson.toJson(frameworkInformations.getListEntryPath()));
    }
  }
}
Program: 36018
Project: 36018
Buggy source:
private void autoDiscoverLeechPlugins(){
  Reflections reflections=new Reflections();
  Set<Class<? extends LeechService>> pluginsAvailable=reflections.getSubTypesOf(LeechService.class);
  for (  Class<? extends LeechService> plugin : pluginsAvailable) {
    try {
      LOGGER.info("String_Node_Str",plugin.getCanonicalName());
      LeechService leechService=plugin.newInstance();
      leechPluginRegistry.put(leechService.getFrameworkInformations().getFrameworkEnum(),leechService);
    }
 catch (    InstantiationException e) {
      LOGGER.error("String_Node_Str" + plugin.getCanonicalName(),e);
    }
catch (    IllegalAccessException e) {
      LOGGER.error("String_Node_Str" + plugin.getCanonicalName(),e);
    }
  }
}

Fixed version (ground truth):
private void autoDiscoverLeechPlugins(){
  Reflections reflections=new Reflections("String_Node_Str");
  Set<Class<? extends LeechService>> pluginsAvailable=reflections.getSubTypesOf(LeechService.class);
  for (  Class<? extends LeechService> plugin : pluginsAvailable) {
    try {
      LOGGER.info("String_Node_Str",plugin.getCanonicalName());
      LeechService leechService=plugin.newInstance();
      leechPluginRegistry.put(leechService.getFrameworkInformations().getFrameworkEnum(),leechService);
    }
 catch (    InstantiationException e) {
      LOGGER.error("String_Node_Str" + plugin.getCanonicalName(),e);
    }
catch (    IllegalAccessException e) {
      LOGGER.error("String_Node_Str" + plugin.getCanonicalName(),e);
    }
  }
}
Program: 36019
Project: 36019
Buggy source:
@Override protected void onResume(){
  super.onResume();
  BusProvider.get().register(this);
  if (restaurant == null) {
    progressDialog=new ProgressDialog(ref);
    progressDialog.setTitle("String_Node_Str");
    progressDialog.setMessage("String_Node_Str");
    progressDialog.show();
    BusProvider.get().post(new GetOneRestaurantEvent(mID));
  }
}

Fixed version (ground truth):
@Override protected void onResume(){
  super.onResume();
  BusProvider.get().register(this);
  if (restaurant == null) {
    progressDialog=new ProgressDialog(this);
    progressDialog.setTitle("String_Node_Str");
    progressDialog.setMessage("String_Node_Str");
    progressDialog.show();
    BusProvider.get().post(new GetOneRestaurantEvent(mID));
  }
}
Program: 36020
Project: 36020
Buggy source:
@Subscribe public void onGetLocalRestaurantEvent(GetLocalRestaurantEvent e){
  new AsyncTask<Void,Void,List<Restaurant>>(){
    private String TAG="String_Node_Str";
    protected List<Restaurant> doInBackground(    Void... voids){
      try {
        List<Restaurant> rest=RESTrepository.listRestaurants("String_Node_Str","String_Node_Str");
        return rest;
      }
 catch (      Exception e) {
        if (e instanceof SocketTimeoutException) {
          Log.e(TAG,"String_Node_Str");
        }
 else {
          Log.e(TAG,"String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getMessage());
        }
        e.getStackTrace();
      }
      return null;
    }
    protected void onProgressUpdate(){
    }
    protected void onPostExecute(    List<Restaurant> rest){
      BusProvider.get().post(new LocalRestaurantReceivedEvent(rest));
    }
  }
.execute();
}

Fixed version (ground truth):
@Subscribe public void onGetLocalRestaurantEvent(GetLocalRestaurantEvent e){
  new AsyncTask<Void,Void,List<Restaurant>>(){
    private String TAG="String_Node_Str";
    protected List<Restaurant> doInBackground(    Void... voids){
      try {
        List<Restaurant> rest=RESTrepository.listRestaurants();
        return rest;
      }
 catch (      Exception e) {
        if (e instanceof SocketTimeoutException) {
          Log.e(TAG,"String_Node_Str");
        }
 else {
          Log.e(TAG,"String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getMessage());
        }
        e.getStackTrace();
      }
      return null;
    }
    protected void onProgressUpdate(){
    }
    protected void onPostExecute(    List<Restaurant> rest){
      BusProvider.get().post(new LocalRestaurantReceivedEvent(rest));
    }
  }
.execute();
}
Program: 36021
Project: 36021
Buggy source:
public static List<Restaurant> listRestaurants(String lat,String lon){
  return restService.listRestaurants(lat,lon);
}

Fixed version (ground truth):
public static List<Restaurant> listRestaurants(){
  return restService.listRestaurants(getLat(),getLong());
}
Program: 36022
Project: 36022
Buggy source:
public static List<Restaurant> searchRestaurant(String search){
  return restService.searchRestaurant(search);
}

Fixed version (ground truth):
public static List<Restaurant> searchRestaurant(String search){
  return restService.searchRestaurant(search,getLat(),getLong());
}
Program: 36023
Project: 36023
Buggy source:
public static Restaurant getRestaurant(int id){
  return restService.GetRestaurant(id);
}

Fixed version (ground truth):
public static Restaurant getRestaurant(int id){
  return restService.GetRestaurant(id,getLat(),getLong());
}
Program: 36024
Project: 36024
Buggy source:
@GET("String_Node_Str") Restaurant GetRestaurant(@Path("String_Node_Str") int id);

Fixed version (ground truth):
@GET("String_Node_Str") Restaurant GetRestaurant(@Path("String_Node_Str") int id,@Query("String_Node_Str") String latitude,@Query("String_Node_Str") String longitude);
Program: 36025
Project: 36025
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View rowView=inflater.inflate(R.layout.invitation_item_list,parent,false);
  TextView nameTextView=(TextView)rowView.findViewById(R.id.EventName);
  TextView text1TextView=(TextView)rowView.findViewById(R.id.EventText1);
  TextView text2TextView=(TextView)rowView.findViewById(R.id.EventText2);
  nameTextView.setText(values.get(position).getOrder().getRestaurant().getName());
  try {
    Date date=(new SimpleDateFormat("String_Node_Str")).parse(values.get(position).getOrder().getRequest_date().replaceAll("String_Node_Str","String_Node_Str"));
    String dateString=new SimpleDateFormat("String_Node_Str").format(date);
    text1TextView.setText(dateString);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  String userList="String_Node_Str";
  List<User> ul=values.get(position).getParticipants();
  for (int i=0; i < ul.size(); ++i) {
    userList+=ul.get(i).getName();
    if (i < ul.size() - 1) {
      userList+="String_Node_Str";
    }
  }
  text2TextView.setText(userList);
  return rowView;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View rowView=inflater.inflate(R.layout.invitation_item_list,parent,false);
  TextView nameTextView=(TextView)rowView.findViewById(R.id.EventName);
  TextView text1TextView=(TextView)rowView.findViewById(R.id.EventText1);
  TextView text2TextView=(TextView)rowView.findViewById(R.id.EventText2);
  nameTextView.setText(values.get(position).getOrder().getRestaurant().getName());
  text1TextView.setText(values.get(position).getOrder().getRequest_date());
  String userList="String_Node_Str";
  List<User> ul=values.get(position).getParticipants();
  for (int i=0; i < ul.size(); ++i) {
    userList+=ul.get(i).getName();
    if (i < ul.size() - 1) {
      userList+="String_Node_Str";
    }
  }
  text2TextView.setText(userList);
  return rowView;
}
Program: 36027
Project: 36027
Buggy source:
public String getFormatDate(){
  String date=request_date.substring(0,10);
  date+="String_Node_Str" + start_time + "String_Node_Str";
  return date;
}

Fixed version (ground truth):
public String getFormatDate(){
  String dateString="String_Node_Str";
  try {
    Date date=(new SimpleDateFormat("String_Node_Str")).parse(request_date.replaceAll("String_Node_Str","String_Node_Str"));
    dateString=new SimpleDateFormat("String_Node_Str").format(date);
  }
 catch (  ParseException e) {
    e.printStackTrace();
  }
  return dateString;
}
Program: 36029
Project: 36029
Buggy source:
@Override public void onDateChanged(DatePicker datePicker,int i,int i2,int i3){
  order.setRequest_date(i + "String_Node_Str" + i2+ "String_Node_Str"+ i3);
  System.out.println("String_Node_Str" + i + "String_Node_Str"+ (i2 + 1)+ "String_Node_Str"+ i3);
}

Fixed version (ground truth):
@Override public void onDateChanged(DatePicker datePicker,int i,int i2,int i3){
  order.setRequest_date(i + "String_Node_Str" + (i2 + 1)+ "String_Node_Str"+ i3);
}