Program: 48828
Project: 48828
Buggy source:
protected void handleCommand(String command){
  if (command.contains("String_Node_Str")) {
    namespace=command.split("String_Node_Str")[0];
    command=command.substring(command.indexOf("String_Node_Str") + 2);
  }
  if (echo) {
    if (Thread.currentThread().getName().toLowerCase().indexOf("String_Node_Str") < 0)     println("String_Node_Str" + Thread.currentThread().getName() + "String_Node_Str"+ command);
 else     println(command);
  }
  if (command == null || command.startsWith("String_Node_Str"))   return;
  command=command.trim();
  if (command == null || command.length() == 0) {
    return;
  }
  String first=command;
  int spaceIndex=command.indexOf(' ');
  String[] argsSplit=command.split("String_Node_Str");
  String[] args=new String[argsSplit.length];
  for (int i=0; i < argsSplit.length; i++) {
    args[i]=argsSplit[i].trim();
  }
  if (spaceIndex != -1) {
    first=args[0];
  }
  if (command.startsWith("String_Node_Str")) {
    handleHelp(command);
  }
 else   if (first.startsWith("String_Node_Str") && first.length() > 1) {
    int repeat=Integer.parseInt(first.substring(1));
    long t0=Clock.currentTimeMillis();
    for (int i=0; i < repeat; i++) {
      handleCommand(command.substring(first.length()).replaceAll("String_Node_Str","String_Node_Str" + i));
    }
    println("String_Node_Str" + repeat * 1000 / (Clock.currentTimeMillis() - t0));
    return;
  }
 else   if (first.startsWith("String_Node_Str") && first.length() > 1) {
    final int fork=Integer.parseInt(first.substring(1));
    ExecutorService pool=Executors.newFixedThreadPool(fork);
    final String threadCommand=command.substring(first.length());
    for (int i=0; i < fork; i++) {
      final int threadID=i;
      pool.submit(new Runnable(){
        public void run(){
          String command=threadCommand;
          String[] threadArgs=command.replaceAll("String_Node_Str","String_Node_Str" + threadID).trim().split("String_Node_Str");
          if ("String_Node_Str".equals(threadArgs[0]) || "String_Node_Str".equals(threadArgs[0])) {
            if (threadArgs.length < 4) {
              command+="String_Node_Str" + Integer.parseInt(threadArgs[1]) * threadID;
            }
          }
          handleCommand(command);
        }
      }
);
    }
    pool.shutdown();
    try {
      pool.awaitTermination(60 * 60,TimeUnit.SECONDS);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
 else   if (first.startsWith("String_Node_Str")) {
    if (first.length() == 1) {
      println("String_Node_Str");
      return;
    }
    File f=new File(first.substring(1));
    println("String_Node_Str" + f.getAbsolutePath());
    if (f.exists()) {
      try {
        BufferedReader br=new BufferedReader(new FileReader(f));
        String l=br.readLine();
        while (l != null) {
          handleCommand(l);
          l=br.readLine();
        }
        br.close();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
 else {
      println("String_Node_Str" + f.getAbsolutePath());
    }
  }
 else   if (command.indexOf(';') != -1) {
    StringTokenizer st=new StringTokenizer(command,"String_Node_Str");
    while (st.hasMoreTokens()) {
      handleCommand(st.nextToken());
    }
    return;
  }
 else   if ("String_Node_Str".equals(first)) {
    silent=Boolean.parseBoolean(args[1]);
  }
 else   if ("String_Node_Str".equals(first)) {
    hazelcast.getLifecycleService().shutdown();
  }
 else   if ("String_Node_Str".equals(first)) {
    echo=Boolean.parseBoolean(args[1]);
    println("String_Node_Str" + echo);
  }
 else   if ("String_Node_Str".equals(first)) {
    if (args.length > 1) {
      namespace=args[1];
      println("String_Node_Str" + namespace);
    }
  }
 else   if ("String_Node_Str".equals(first)) {
    println(hazelcast.getCluster().getLocalMember());
  }
 else   if ("String_Node_Str".equals(first)) {
    StringBuilder sb=new StringBuilder("String_Node_Str");
    final Collection<Member> members=hazelcast.getCluster().getMembers();
    sb.append(members != null ? members.size() : 0);
    sb.append("String_Node_Str");
    if (members != null) {
      for (      Member member : members) {
        sb.append("String_Node_Str").append(member);
      }
    }
    sb.append("String_Node_Str");
    println(sb.toString());
  }
 else   if ("String_Node_Str".equals(first)) {
    System.gc();
    println("String_Node_Str" + Runtime.getRuntime().maxMemory() / 1024 / 1024 + "String_Node_Str");
    println("String_Node_Str" + Runtime.getRuntime().freeMemory() / 1024 / 1024 + "String_Node_Str" + (int)(Runtime.getRuntime().freeMemory() * 100 / Runtime.getRuntime().maxMemory()) + "String_Node_Str");
    long total=Runtime.getRuntime().totalMemory();
    long free=Runtime.getRuntime().freeMemory();
    println("String_Node_Str" + ((total - free) / 1024 / 1024) + "String_Node_Str");
    println("String_Node_Str" + Runtime.getRuntime().availableProcessors());
    println("String_Node_Str" + ManagementFactory.getOperatingSystemMXBean().getArch() + "String_Node_Str"+ ManagementFactory.getOperatingSystemMXBean().getName()+ "String_Node_Str"+ ManagementFactory.getOperatingSystemMXBean().getVersion());
    println("String_Node_Str" + ManagementFactory.getRuntimeMXBean().getVmVendor() + "String_Node_Str"+ ManagementFactory.getRuntimeMXBean().getVmName()+ "String_Node_Str"+ ManagementFactory.getRuntimeMXBean().getVmVersion());
  }
 else   if (first.indexOf("String_Node_Str") != -1 && first.indexOf("String_Node_Str") == -1) {
    handleLock(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleSize(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleClear(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleDestroy(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleIterator(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleContains(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handStats(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleTopicPublish(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQOffer(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQTake(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPoll(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPeek(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQCapacity(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQOfferMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPollMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetAdd(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetRemove(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetAddMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetRemoveMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapReplace(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapPutIfAbsent(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapPutAsync(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGetAsync(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapPut(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGet(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapGetMapEntry(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapRemove(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapEvict(args);
  }
 else   if (first.equals("String_Node_Str") || first.equalsIgnoreCase("String_Node_Str")) {
    handleMapPutMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGetMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapRemoveMany(args);
  }
 else   if (command.equalsIgnoreCase("String_Node_Str")) {
    handleMapLocalKeys();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapKeys();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapValues();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapEntries();
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapLock(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapTryLock(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapUnlock(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleAddListener(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleRemoveListener(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapUnlock(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListAdd(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListSet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleListAddMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListRemove(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListContains(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberGet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberSet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberInc(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberDec(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handlePartitions(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleInstances(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str") || first.equalsIgnoreCase("String_Node_Str")) {
    System.exit(0);
  }
 else {
    println("String_Node_Str");
  }
}

Fixed version (ground truth):
protected void handleCommand(String command){
  if (command.contains("String_Node_Str")) {
    namespace=command.split("String_Node_Str")[0];
    command=command.substring(command.indexOf("String_Node_Str") + 2);
  }
  if (echo) {
    if (Thread.currentThread().getName().toLowerCase().indexOf("String_Node_Str") < 0)     println("String_Node_Str" + Thread.currentThread().getName() + "String_Node_Str"+ command);
 else     println(command);
  }
  if (command == null || command.startsWith("String_Node_Str"))   return;
  command=command.trim();
  if (command == null || command.length() == 0) {
    return;
  }
  String first=command;
  int spaceIndex=command.indexOf(' ');
  String[] argsSplit=command.split("String_Node_Str");
  String[] args=new String[argsSplit.length];
  for (int i=0; i < argsSplit.length; i++) {
    args[i]=argsSplit[i].trim();
  }
  if (spaceIndex != -1) {
    first=args[0];
  }
  if (command.startsWith("String_Node_Str")) {
    handleHelp(command);
  }
 else   if (first.startsWith("String_Node_Str") && first.length() > 1) {
    int repeat=Integer.parseInt(first.substring(1));
    long t0=Clock.currentTimeMillis();
    for (int i=0; i < repeat; i++) {
      handleCommand(command.substring(first.length()).replaceAll("String_Node_Str","String_Node_Str" + i));
    }
    println("String_Node_Str" + repeat * 1000 / (Clock.currentTimeMillis() - t0));
    return;
  }
 else   if (first.startsWith("String_Node_Str") && first.length() > 1) {
    final int fork=Integer.parseInt(first.substring(1));
    ExecutorService pool=Executors.newFixedThreadPool(fork);
    final String threadCommand=command.substring(first.length());
    for (int i=0; i < fork; i++) {
      final int threadID=i;
      pool.submit(new Runnable(){
        public void run(){
          String command=threadCommand;
          String[] threadArgs=command.replaceAll("String_Node_Str","String_Node_Str" + threadID).trim().split("String_Node_Str");
          if ("String_Node_Str".equals(threadArgs[0]) || "String_Node_Str".equals(threadArgs[0])) {
            if (threadArgs.length < 4) {
              command+="String_Node_Str" + Integer.parseInt(threadArgs[1]) * threadID;
            }
          }
          handleCommand(command);
        }
      }
);
    }
    pool.shutdown();
    try {
      pool.awaitTermination(60 * 60,TimeUnit.SECONDS);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
 else   if (first.startsWith("String_Node_Str")) {
    if (first.length() == 1) {
      println("String_Node_Str");
      return;
    }
    File f=new File(first.substring(1));
    println("String_Node_Str" + f.getAbsolutePath());
    if (f.exists()) {
      try {
        BufferedReader br=new BufferedReader(new FileReader(f));
        String l=br.readLine();
        while (l != null) {
          handleCommand(l);
          l=br.readLine();
        }
        br.close();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
 else {
      println("String_Node_Str" + f.getAbsolutePath());
    }
  }
 else   if (command.indexOf(';') != -1) {
    StringTokenizer st=new StringTokenizer(command,"String_Node_Str");
    while (st.hasMoreTokens()) {
      handleCommand(st.nextToken());
    }
    return;
  }
 else   if ("String_Node_Str".equals(first)) {
    silent=Boolean.parseBoolean(args[1]);
  }
 else   if ("String_Node_Str".equals(first)) {
    hazelcast.getLifecycleService().shutdown();
  }
 else   if ("String_Node_Str".equals(first)) {
    echo=Boolean.parseBoolean(args[1]);
    println("String_Node_Str" + echo);
  }
 else   if ("String_Node_Str".equals(first)) {
    if (args.length > 1) {
      namespace=args[1];
      println("String_Node_Str" + namespace);
    }
  }
 else   if ("String_Node_Str".equals(first)) {
    println(hazelcast.getCluster().getLocalMember());
  }
 else   if ("String_Node_Str".equals(first)) {
    StringBuilder sb=new StringBuilder("String_Node_Str");
    final Collection<Member> members=hazelcast.getCluster().getMembers();
    sb.append(members != null ? members.size() : 0);
    sb.append("String_Node_Str");
    if (members != null) {
      for (      Member member : members) {
        sb.append("String_Node_Str").append(member);
      }
    }
    sb.append("String_Node_Str");
    println(sb.toString());
  }
 else   if ("String_Node_Str".equals(first)) {
    System.gc();
    println("String_Node_Str" + Runtime.getRuntime().maxMemory() / 1024 / 1024 + "String_Node_Str");
    println("String_Node_Str" + Runtime.getRuntime().freeMemory() / 1024 / 1024 + "String_Node_Str" + (int)(Runtime.getRuntime().freeMemory() * 100 / Runtime.getRuntime().maxMemory()) + "String_Node_Str");
    long total=Runtime.getRuntime().totalMemory();
    long free=Runtime.getRuntime().freeMemory();
    println("String_Node_Str" + ((total - free) / 1024 / 1024) + "String_Node_Str");
    println("String_Node_Str" + Runtime.getRuntime().availableProcessors());
    println("String_Node_Str" + ManagementFactory.getOperatingSystemMXBean().getArch() + "String_Node_Str"+ ManagementFactory.getOperatingSystemMXBean().getName()+ "String_Node_Str"+ ManagementFactory.getOperatingSystemMXBean().getVersion());
    println("String_Node_Str" + ManagementFactory.getRuntimeMXBean().getVmVendor() + "String_Node_Str"+ ManagementFactory.getRuntimeMXBean().getVmName()+ "String_Node_Str"+ ManagementFactory.getRuntimeMXBean().getVmVersion());
  }
 else   if (first.indexOf("String_Node_Str") != -1 && first.indexOf("String_Node_Str") == -1) {
    handleLock(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleSize(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleClear(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleDestroy(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleIterator(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleContains(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handStats(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleTopicPublish(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQOffer(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQTake(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPoll(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPeek(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQCapacity(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQOfferMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleQPollMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetAdd(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetRemove(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetAddMany(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleSetRemoveMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapReplace(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapPutIfAbsent(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapPutAsync(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGetAsync(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapPut(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGet(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapGetMapEntry(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapRemove(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapEvict(args);
  }
 else   if (first.equals("String_Node_Str") || first.equalsIgnoreCase("String_Node_Str")) {
    handleMapPutMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapGetMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapRemoveMany(args);
  }
 else   if (command.equalsIgnoreCase("String_Node_Str")) {
    handleMapLocalKeys();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapKeys();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapValues();
  }
 else   if (command.equals("String_Node_Str")) {
    handleMapEntries();
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapLock(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleMapTryLock(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapUnlock(args);
  }
 else   if (first.indexOf("String_Node_Str") != -1) {
    handleAddListener(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleRemoveListener(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleMapUnlock(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListAdd(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListSet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleListAddMany(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListRemove(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handleListContains(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberGet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberSet(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberInc(args);
  }
 else   if ("String_Node_Str".equals(first)) {
    handleAtomicNumberDec(args);
  }
 else   if (first.equals("String_Node_Str")) {
    execute(args);
  }
 else   if (first.equals("String_Node_Str")) {
    handlePartitions(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    executeOnKey(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    executeOnMember(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    executeOnMembers(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str")) {
    handleInstances(args);
  }
 else   if (first.equalsIgnoreCase("String_Node_Str") || first.equalsIgnoreCase("String_Node_Str")) {
    System.exit(0);
  }
 else {
    println("String_Node_Str");
  }
}