Program: 39936
Project: 39936
Buggy source:
protected SortingNode[] generateNodes(Graph g,Random rand){
  HashSet<NodeImpl> attackers=ATTACK_NONE.equals(this.attack) ? new HashSet<NodeImpl>() : this.selectNodesRandomly(g.nodes,this.attackers,rand);
  SortingNode[] nodes=new SortingNode[g.nodes.length];
  for (int i=0; i < g.nodes.length; i++) {
    double pos=((RingNode)g.nodes[i]).getID().pos;
    if (attackers.contains(g.nodes[i])) {
      System.out.println("String_Node_Str" + i);
      if (ATTACK_CONTRACTION.equals(this.attack)) {
        nodes[i]=new SwappingAttackerContraction(i,pos,this);
      }
 else       if (ATTACK_CONVERGENCE.equals(this.attack)) {
        nodes[i]=new SwappingAttackerConvergence(i,pos,this);
      }
 else       if (ATTACK_KLEINBERG.equals(this.attack)) {
        nodes[i]=new SwappingAttackerKleinberg(i,pos,this);
      }
 else       if (ATTACK_CONTRACTION_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerContraction(i,pos,this);
      }
 else       if (ATTACK_CONVERGENCE_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerConvergence(i,pos,this);
      }
 else       if (ATTACK_KLEINBERG_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerKleinberg(i,pos,this);
      }
 else {
        throw new IllegalArgumentException(this.attack + "String_Node_Str");
      }
    }
 else {
      if (ATTACK_NONE.equals(this.attack) || ATTACK_CONTRACTION.equals(this.attack) || ATTACK_CONVERGENCE.equals(this.attack)|| ATTACK_KLEINBERG.equals(this.attack)) {
        nodes[i]=new SwappingNode(i,pos,this);
      }
 else       if (ATTACK_CONTRACTION_WC.equals(this.attack) || ATTACK_CONVERGENCE_WC.equals(this.attack) || ATTACK_KLEINBERG_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCNode(i,pos,this);
      }
    }
  }
  this.init(g,null);
  return nodes;
}

Fixed version (ground truth):
protected SortingNode[] generateNodes(Graph g,Random rand){
  HashSet<NodeImpl> attackers=ATTACK_NONE.equals(this.attack) ? new HashSet<NodeImpl>() : this.selectNodesRandomly(g.nodes,this.attackers,rand);
  SortingNode[] nodes=new SortingNode[g.nodes.length];
  for (int i=0; i < g.nodes.length; i++) {
    double pos=((RingNode)g.nodes[i]).getID().pos;
    if (attackers.contains(g.nodes[i])) {
      System.out.println("String_Node_Str" + i);
      if (ATTACK_CONTRACTION.equals(this.attack)) {
        nodes[i]=new SwappingAttackerContraction(i,pos,this);
      }
 else       if (ATTACK_CONVERGENCE.equals(this.attack)) {
        nodes[i]=new SwappingAttackerConvergence(i,pos,this);
      }
 else       if (ATTACK_KLEINBERG.equals(this.attack)) {
        nodes[i]=new SwappingAttackerKleinberg(i,pos,this);
      }
 else       if (ATTACK_CONTRACTION_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerContraction(i,pos,this);
      }
 else       if (ATTACK_CONVERGENCE_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerConvergence(i,pos,this);
      }
 else       if (ATTACK_KLEINBERG_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCAttackerKleinberg(i,pos,this);
      }
 else {
        throw new IllegalArgumentException(this.attack + "String_Node_Str");
      }
    }
 else {
      if (ATTACK_NONE.equals(this.attack) || ATTACK_CONTRACTION.equals(this.attack) || ATTACK_CONVERGENCE.equals(this.attack)|| ATTACK_KLEINBERG.equals(this.attack)) {
        nodes[i]=new SwappingNode(i,pos,this);
      }
 else       if (ATTACK_CONTRACTION_WC.equals(this.attack) || ATTACK_CONVERGENCE_WC.equals(this.attack) || ATTACK_KLEINBERG_WC.equals(this.attack)) {
        nodes[i]=new SwappingWCNode(i,pos,this);
      }
    }
  }
  this.init(g,nodes);
  return nodes;
}