Program: 53142
Project: 53142
Buggy source:
@VisibleForTesting protected boolean isDeviceTempWritable(IDevice device,String name){
  StringBuilder loggingInfo=new StringBuilder();
  try {
    String output=null;
    try {
      output=executeCommandWithErrorChecking(device,"String_Node_Str");
      if (!(output.matches("String_Node_Str") || output.matches("String_Node_Str"))) {
        loggingInfo.append(String.format(java.util.Locale.ENGLISH,"String_Node_Str",output));
      }
      executeCommandWithErrorChecking(device,"String_Node_Str");
      output=executeCommandWithErrorChecking(device,"String_Node_Str");
      if (!output.matches("String_Node_Str")) {
        loggingInfo.append(String.format(java.util.Locale.ENGLISH,"String_Node_Str",output));
      }
      executeCommandWithErrorChecking(device,"String_Node_Str");
    }
 catch (    CommandFailedException e) {
      loggingInfo.append(String.format(java.util.Locale.ENGLISH,"String_Node_Str",e.exitCode,e.command,e.output));
    }
    if (!loggingInfo.toString().isEmpty()) {
      CollectingOutputReceiver receiver=new CollectingOutputReceiver();
      device.executeShellCommand("String_Node_Str",receiver);
      for (      String line : com.google.common.base.Splitter.on('\n').split(receiver.getOutput())) {
        if (line.contains("String_Node_Str") || line.contains("String_Node_Str")) {
          loggingInfo.append(line).append('\n');
        }
      }
    }
  }
 catch (  AdbCommandRejectedException|ShellCommandUnresponsiveException|TimeoutException|IOException e) {
    console.printBuildFailure(String.format("String_Node_Str",name));
    e.printStackTrace(console.getStdErr());
    return false;
  }
  String logMessage=loggingInfo.toString();
  if (!logMessage.isEmpty()) {
    StringBuilder fullMessage=new StringBuilder();
    fullMessage.append("String_Node_Str");
    fullMessage.append('\n');
    fullMessage.append("String_Node_Str");
    fullMessage.append('\n');
    fullMessage.append("String_Node_Str");
    fullMessage.append("String_Node_Str");
    fullMessage.append(logMessage);
    fullMessage.append("String_Node_Str");
    console.getStdErr().println(fullMessage.toString());
  }
  return true;
}

Fixed version (ground truth):
@VisibleForTesting protected boolean isDeviceTempWritable(IDevice device,String name){
  StringBuilder loggingInfo=new StringBuilder();
  try {
    String output=null;
    try {
      output=executeCommandWithErrorChecking(device,"String_Node_Str");
      if (!(output.matches("String_Node_Str") || output.matches("String_Node_Str"))) {
        loggingInfo.append(String.format(Locale.ENGLISH,"String_Node_Str",output));
      }
      executeCommandWithErrorChecking(device,"String_Node_Str");
      output=executeCommandWithErrorChecking(device,"String_Node_Str");
      if (!output.matches("String_Node_Str")) {
        loggingInfo.append(String.format(Locale.ENGLISH,"String_Node_Str",output));
      }
      executeCommandWithErrorChecking(device,"String_Node_Str");
    }
 catch (    CommandFailedException e) {
      loggingInfo.append(String.format(Locale.ENGLISH,"String_Node_Str",e.exitCode,e.command,e.output));
    }
    if (!loggingInfo.toString().isEmpty()) {
      CollectingOutputReceiver receiver=new CollectingOutputReceiver();
      device.executeShellCommand("String_Node_Str",receiver);
      for (      String line : com.google.common.base.Splitter.on('\n').split(receiver.getOutput())) {
        if (line.contains("String_Node_Str") || line.contains("String_Node_Str")) {
          loggingInfo.append(line).append('\n');
        }
      }
    }
  }
 catch (  AdbCommandRejectedException|ShellCommandUnresponsiveException|TimeoutException|IOException e) {
    console.printBuildFailure(String.format("String_Node_Str",name));
    e.printStackTrace(console.getStdErr());
    return false;
  }
  String logMessage=loggingInfo.toString();
  if (!logMessage.isEmpty()) {
    StringBuilder fullMessage=new StringBuilder();
    fullMessage.append("String_Node_Str");
    fullMessage.append('\n');
    fullMessage.append("String_Node_Str");
    fullMessage.append('\n');
    fullMessage.append("String_Node_Str");
    fullMessage.append("String_Node_Str");
    fullMessage.append(logMessage);
    fullMessage.append("String_Node_Str");
    console.getStdErr().println(fullMessage.toString());
  }
  return true;
}