Program: 38208
Project: 38208
Buggy source:
HttpHandler createHandler(){
  return new HttpHandler(){
    @Override public void handle(    HttpExchange exchange) throws IOException {
      System.out.println("String_Node_Str" + exchange.getHttpContext().getPath());
switch (exchange.getRequestMethod()) {
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
          exchange(exchange,CommandType.RETRIEVE_EXPERIMENT_COMMAND);
        break;
case "String_Node_Str":
      exchange(exchange,CommandType.GET_FILE_FROM_EXPERIMENT_COMMAND);
    break;
case "String_Node_Str":
  exchange(exchange,CommandType.SEARCH_FOR_EXPERIMENTS_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.GET_ANNOTATION_INFORMATION_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.GET_ANNOTATION_PRIVILEGES_COMMAND);
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_FILE_IN_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_USER_COMMAND);
break;
case "String_Node_Str":
System.out.println("String_Node_Str");
exchange(exchange,CommandType.PROCESS_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.RENAME_ANNOTATION_FIELD_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.RENAME_ANNOTATION_VALUE_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_ANNOTATION_PRIVILEGES_COMMAND);
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.LOGIN_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_FILE_TO_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.CREATE_USER_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_ANNOTATION_FIELD_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_ANNOTATION_VALUE_COMMAND);
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.LOGOUT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.REMOVE_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.DELETE_FILE_FROM_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.DELETE_USER_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.REMOVE_ANNOTATION_FIELD_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.DELETE_ANNOTATION_VALUE_COMMAND);
break;
}
break;
}
}
}
;
}

Fixed version (ground truth):
HttpHandler createHandler(){
  return new HttpHandler(){
    @Override public void handle(    HttpExchange exchange) throws IOException {
      System.out.println("String_Node_Str" + exchange.getHttpContext().getPath());
switch (exchange.getRequestMethod()) {
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
          exchange(exchange,CommandType.RETRIEVE_EXPERIMENT_COMMAND);
        break;
case "String_Node_Str":
      exchange(exchange,CommandType.GET_FILE_FROM_EXPERIMENT_COMMAND);
    break;
case "String_Node_Str":
  exchange(exchange,CommandType.SEARCH_FOR_EXPERIMENTS_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.GET_ANNOTATION_INFORMATION_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.GET_ANNOTATION_PRIVILEGES_COMMAND);
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_FILE_IN_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_USER_COMMAND);
break;
case "String_Node_Str":
System.out.println("String_Node_Str");
exchange(exchange,CommandType.PROCESS_COMMAND);
break;
case "String_Node_Str":
String fullPath=exchange.getRequestURI().toString();
if (fullPath.startsWith("String_Node_Str")) {
System.out.println("String_Node_Str");
exchange(exchange,CommandType.RENAME_ANNOTATION_FIELD_COMMAND);
}
 else if (fullPath.startsWith("String_Node_Str")) {
exchange(exchange,CommandType.RENAME_ANNOTATION_VALUE_COMMAND);
}
break;
case "String_Node_Str":
exchange(exchange,CommandType.UPDATE_ANNOTATION_PRIVILEGES_COMMAND);
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.LOGIN_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.ADD_FILE_TO_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.CREATE_USER_COMMAND);
break;
case "String_Node_Str":
String fullPath=exchange.getRequestURI().toString();
if (fullPath.startsWith("String_Node_Str")) {
exchange(exchange,CommandType.ADD_ANNOTATION_FIELD_COMMAND);
}
 else if (fullPath.startsWith("String_Node_Str")) {
exchange(exchange,CommandType.ADD_ANNOTATION_VALUE_COMMAND);
}
break;
}
break;
case "String_Node_Str":
switch (exchange.getHttpContext().getPath()) {
case "String_Node_Str":
exchange(exchange,CommandType.LOGOUT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.REMOVE_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.DELETE_FILE_FROM_EXPERIMENT_COMMAND);
break;
case "String_Node_Str":
exchange(exchange,CommandType.DELETE_USER_COMMAND);
break;
case "String_Node_Str":
String fullPath=exchange.getRequestURI().toString();
if (fullPath.startsWith("String_Node_Str")) {
exchange(exchange,CommandType.REMOVE_ANNOTATION_FIELD_COMMAND);
}
 else if (fullPath.startsWith("String_Node_Str")) {
exchange(exchange,CommandType.DELETE_ANNOTATION_VALUE_COMMAND);
}
break;
}
break;
}
}
}
;
}