Program: 44181
Project: 44181
Buggy source:
/** 
 * Given a baseline basename, a component and a view, the baseline is created.
 */
public static Baseline create(String basename,Component component,File view,LabelBehaviour labelBehaviour,boolean identical,List<Activity> activities,List<Component> depends) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException {
  if (basename.toLowerCase().startsWith("String_Node_Str")) {
    basename=basename.replaceFirst("String_Node_Str","String_Node_Str");
  }
  boolean created=false;
  String cmd="String_Node_Str" + component.getNormalizedName() + (identical ? "String_Node_Str" : "String_Node_Str");
  if (depends != null && depends.size() > 0) {
    cmd+="String_Node_Str";
    for (    Component c : depends) {
      cmd+=c.getNormalizedName() + "String_Node_Str";
    }
    cmd=cmd.substring(0,(cmd.length() - 1));
  }
  if (activities != null) {
    cmd+="String_Node_Str";
    for (    Activity a : activities) {
      cmd+="String_Node_Str" + a.getFullyQualifiedName() + "String_Node_Str";
    }
    cmd=cmd.substring(0,(cmd.length() - 1));
  }
  cmd+="String_Node_Str" + labelBehaviour.toArgument();
  cmd+="String_Node_Str" + basename;
  try {
    String out="String_Node_Str";
    if (view != null) {
      out=Cleartool.run(cmd,view).stdoutBuffer.toString();
    }
 else {
      out=Cleartool.run(cmd).stdoutBuffer.toString();
    }
    logger.fine("String_Node_Str" + out);
    created=out.matches("String_Node_Str");
  }
 catch (  AbnormalProcessTerminationException e) {
    throw new UnableToCreateEntityException(Baseline.class,e);
  }
  if (created) {
    return get(basename,component.getPVob());
  }
 else {
    throw new NothingNewException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Given a baseline basename, a component and a view, the baseline is created.
 */
public static Baseline create(String basename,Component component,File view,LabelBehaviour labelBehaviour,boolean identical,List<Activity> activities,List<Component> depends) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException {
  if (basename.toLowerCase().startsWith("String_Node_Str")) {
    basename=basename.replaceFirst("String_Node_Str","String_Node_Str");
  }
  boolean created=false;
  String cmd="String_Node_Str" + component.getNormalizedName() + (identical ? "String_Node_Str" : "String_Node_Str");
  if (depends != null && depends.size() > 0) {
    cmd+="String_Node_Str";
    for (    Component c : depends) {
      cmd+=c.getNormalizedName() + "String_Node_Str";
    }
    cmd=cmd.substring(0,(cmd.length() - 1));
  }
  if (activities != null) {
    cmd+="String_Node_Str";
    for (    Activity a : activities) {
      cmd+="String_Node_Str" + a.getFullyQualifiedName() + "String_Node_Str";
    }
    cmd=cmd.substring(0,(cmd.length() - 1));
  }
  cmd+="String_Node_Str" + labelBehaviour.toArgument();
  cmd+="String_Node_Str" + basename;
  try {
    String out="String_Node_Str";
    if (view != null) {
      out=Cleartool.run(cmd,view).stdoutBuffer.toString();
    }
 else {
      out=Cleartool.run(cmd).stdoutBuffer.toString();
    }
    logger.fine(String.format("String_Node_Str" + out));
    created=out.matches("String_Node_Str");
  }
 catch (  AbnormalProcessTerminationException e) {
    throw new UnableToCreateEntityException(Baseline.class,e);
  }
  if (created) {
    return get(basename,component.getPVob());
  }
 else {
    throw new NothingNewException("String_Node_Str");
  }
}