Program: 97265
Project: 97265
Buggy source:
/** 
 * Perform a branch query based on the input query parameters
 * @param branchUuids comma separated list of branch uuids
 * @param branchTypes comma separated list of {@link org.eclipse.osee.framework.core.enums.BranchType BranchType}
 * @param branchStates comma separated list of {@link org.eclipse.osee.framework.core.enums.BranchState BranchState}
 * @param deleted to include deleted branches in the search
 * @param archived to include archived branches in the search
 * @param childOf branch uuid of the parent to search children of
 * @param ancestorOf branch uuid of ancestor to search decendents of
 * @param pretty if the returned JSON should be pretty printed
 * @return JSON representation of the branch query results
 */
@Path("String_Node_Str") @GET @Produces(MediaType.APPLICATION_JSON) public Response searchBranchesFromQuery(@QueryParam("String_Node_Str") String branchUuids,@QueryParam("String_Node_Str") String branchTypes,@QueryParam("String_Node_Str") String branchStates,@QueryParam("String_Node_Str") boolean deleted,@QueryParam("String_Node_Str") boolean archived,@QueryParam("String_Node_Str") String nameEquals,@QueryParam("String_Node_Str") String namePattern,@QueryParam("String_Node_Str") Long childOf,@QueryParam("String_Node_Str") Long ancestorOf,@QueryParam("String_Node_Str") boolean pretty){
  BranchQueryOptions options=new BranchQueryOptions();
  if (Strings.isValid(branchUuids)) {
    List<Long> branchUuidVals=new LinkedList<Long>();
    for (    String branchUuid : branchUuids.split("String_Node_Str")) {
      branchUuidVals.add(Long.parseLong(branchUuid));
    }
    options.setBranchIds(branchUuidVals);
  }
  if (Strings.isValid(branchTypes)) {
    List<BranchType> branchTypeVals=new LinkedList<BranchType>();
    for (    String branchType : branchTypes.split("String_Node_Str")) {
      branchTypeVals.add(BranchType.valueOf(branchType.toUpperCase()));
    }
    options.setBranchTypes(branchTypeVals);
  }
  if (Strings.isValid(branchStates)) {
    List<BranchState> branchStateVals=new LinkedList<BranchState>();
    for (    String branchState : branchStates.split("String_Node_Str")) {
      branchStateVals.add(BranchState.valueOf(branchState.toUpperCase()));
    }
    options.setBranchStates(branchStateVals);
  }
  options.setIncludeDeleted(deleted);
  options.setIncludeArchived(archived);
  if (Strings.isValid(nameEquals)) {
    options.setNameEquals(nameEquals);
  }
  if (Strings.isValid(namePattern)) {
    options.setNamePattern(namePattern);
  }
  if (childOf != null) {
    options.setIsChildOf(childOf);
  }
  if (ancestorOf != null) {
    options.setIsAncestorOf(ancestorOf);
  }
  List<BranchReadable> results=getResultsFromOptions(options);
  Gson gson=pretty ? prettyG : plainG;
  return Response.ok(gson.toJson(results)).build();
}

Fixed version (ground truth):
/** 
 * Perform a branch query based on the input query parameters
 * @param branchUuids comma separated list of branch uuids
 * @param branchTypes comma separated list of {@link org.eclipse.osee.framework.core.enums.BranchType BranchType}
 * @param branchStates comma separated list of {@link org.eclipse.osee.framework.core.enums.BranchState BranchState}
 * @param deleted to include deleted branches in the search
 * @param archived to include archived branches in the search
 * @param childOf branch uuid of the parent to search children of
 * @param ancestorOf branch uuid of ancestor to search decendents of
 * @param pretty if the returned JSON should be pretty printed
 * @return JSON representation of the branch query results
 */
@GET @Produces(MediaType.APPLICATION_JSON) public Response searchBranchesFromQuery(@QueryParam("String_Node_Str") String branchUuids,@QueryParam("String_Node_Str") String branchTypes,@QueryParam("String_Node_Str") String branchStates,@QueryParam("String_Node_Str") boolean deleted,@QueryParam("String_Node_Str") boolean archived,@QueryParam("String_Node_Str") String nameEquals,@QueryParam("String_Node_Str") String namePattern,@QueryParam("String_Node_Str") Long childOf,@QueryParam("String_Node_Str") Long ancestorOf,@QueryParam("String_Node_Str") boolean pretty){
  BranchQueryOptions options=new BranchQueryOptions();
  if (Strings.isValid(branchUuids)) {
    List<Long> branchUuidVals=new LinkedList<Long>();
    for (    String branchUuid : branchUuids.split("String_Node_Str")) {
      branchUuidVals.add(Long.parseLong(branchUuid));
    }
    options.setBranchIds(branchUuidVals);
  }
  if (Strings.isValid(branchTypes)) {
    List<BranchType> branchTypeVals=new LinkedList<BranchType>();
    for (    String branchType : branchTypes.split("String_Node_Str")) {
      branchTypeVals.add(BranchType.valueOf(branchType.toUpperCase()));
    }
    options.setBranchTypes(branchTypeVals);
  }
  if (Strings.isValid(branchStates)) {
    List<BranchState> branchStateVals=new LinkedList<BranchState>();
    for (    String branchState : branchStates.split("String_Node_Str")) {
      branchStateVals.add(BranchState.valueOf(branchState.toUpperCase()));
    }
    options.setBranchStates(branchStateVals);
  }
  options.setIncludeDeleted(deleted);
  options.setIncludeArchived(archived);
  if (Strings.isValid(nameEquals)) {
    options.setNameEquals(nameEquals);
  }
  if (Strings.isValid(namePattern)) {
    options.setNamePattern(namePattern);
  }
  if (childOf != null) {
    options.setIsChildOf(childOf);
  }
  if (ancestorOf != null) {
    options.setIsAncestorOf(ancestorOf);
  }
  List<BranchReadable> results=getResultsFromOptions(options);
  Gson gson=pretty ? prettyG : plainG;
  return Response.ok(gson.toJson(results)).build();
}