Program: 155168
Project: 155168
Buggy source:
public void testCreateNeoStore(){
  try {
    initializeStores();
    startTx();
    int node1=ds.nextId(Node.class);
    nStore.createNode(node1);
    int node2=ds.nextId(Node.class);
    nStore.createNode(node2);
    int n1prop1=pStore.nextId();
    int n1prop2=pStore.nextId();
    int n1prop3=pStore.nextId();
    nStore.addProperty(node1,n1prop1,index("String_Node_Str"),"String_Node_Str");
    nStore.addProperty(node1,n1prop2,index("String_Node_Str"),new Integer(1));
    nStore.addProperty(node1,n1prop3,index("String_Node_Str"),new Boolean(true));
    int n2prop1=pStore.nextId();
    int n2prop2=pStore.nextId();
    int n2prop3=pStore.nextId();
    nStore.addProperty(node2,n2prop1,index("String_Node_Str"),"String_Node_Str");
    nStore.addProperty(node2,n2prop2,index("String_Node_Str"),new Integer(2));
    nStore.addProperty(node2,n2prop3,index("String_Node_Str"),new Boolean(false));
    int relType1=ds.nextId(RelationshipType.class);
    relTypeStore.addRelationshipType(relType1,"String_Node_Str");
    int relType2=ds.nextId(RelationshipType.class);
    relTypeStore.addRelationshipType(relType2,"String_Node_Str");
    int rel1=ds.nextId(Relationship.class);
    rStore.createRelationship(rel1,node1,node2,relType1);
    int rel2=ds.nextId(Relationship.class);
    rStore.createRelationship(rel2,node2,node1,relType2);
    int r1prop1=pStore.nextId();
    int r1prop2=pStore.nextId();
    int r1prop3=pStore.nextId();
    rStore.addProperty(rel1,r1prop1,index("String_Node_Str"),"String_Node_Str");
    rStore.addProperty(rel1,r1prop2,index("String_Node_Str"),new Integer(1));
    rStore.addProperty(rel1,r1prop3,index("String_Node_Str"),new Boolean(true));
    int r2prop1=pStore.nextId();
    int r2prop2=pStore.nextId();
    int r2prop3=pStore.nextId();
    rStore.addProperty(rel2,r2prop1,index("String_Node_Str"),"String_Node_Str");
    rStore.addProperty(rel2,r2prop2,index("String_Node_Str"),new Integer(2));
    rStore.addProperty(rel2,r2prop3,index("String_Node_Str"),new Boolean(false));
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    validateNodeRel1(node1,n1prop1,n1prop2,n1prop3,rel1,rel2,relType1,relType2);
    validateNodeRel2(node2,n2prop1,n2prop2,n2prop3,rel1,rel2,relType1,relType2);
    validateRel1(rel1,r1prop1,r1prop2,r1prop3,node1,node2,relType1);
    validateRel2(rel2,r2prop1,r2prop2,r2prop3,node2,node1,relType2);
    validateRelTypes(relType1,relType2);
    validateRelTypes(relType1,relType2);
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    deleteRel1(rel1,r1prop1,r1prop2,r1prop3,node1,node2,relType1);
    deleteRel2(rel2,r2prop1,r2prop2,r2prop3,node2,node1,relType2);
    deleteNode1(node1,n1prop1,n1prop2,n1prop3);
    deleteNode2(node2,n2prop1,n2prop2,n2prop3);
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    assertEquals(false,nStore.loadLightNode(node1));
    assertEquals(false,nStore.loadLightNode(node2));
    testGetRels(new int[]{rel1,rel2});
    int nodeIds[]=new int[10];
    for (int i=0; i < 3; i++) {
      nodeIds[i]=ds.nextId(Node.class);
      nStore.createNode(nodeIds[i]);
      nStore.addProperty(nodeIds[i],pStore.nextId(),index("String_Node_Str"),new Integer(10 - i));
    }
    for (int i=0; i < 2; i++) {
      rStore.createRelationship(ds.nextId(Relationship.class),nodeIds[i],nodeIds[i + 1],relType1);
    }
    for (int i=0; i < 3; i++) {
      RelationshipData rels[]=nStore.getRelationships(nodeIds[i]);
      for (int j=0; j < rels.length; j++) {
        rStore.deleteRelationship(rels[j].getId());
      }
      nStore.deleteNode(nodeIds[i]);
    }
    commitTx();
    ds.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
public void testCreateNeoStore(){
  try {
    initializeStores();
    startTx();
    int node1=ds.nextId(Node.class);
    nStore.createNode(node1);
    int node2=ds.nextId(Node.class);
    nStore.createNode(node2);
    int n1prop1=pStore.nextId();
    int n1prop2=pStore.nextId();
    int n1prop3=pStore.nextId();
    nStore.addProperty(node1,n1prop1,index("String_Node_Str"),"String_Node_Str");
    nStore.addProperty(node1,n1prop2,index("String_Node_Str"),new Integer(1));
    nStore.addProperty(node1,n1prop3,index("String_Node_Str"),new Boolean(true));
    int n2prop1=pStore.nextId();
    int n2prop2=pStore.nextId();
    int n2prop3=pStore.nextId();
    nStore.addProperty(node2,n2prop1,index("String_Node_Str"),"String_Node_Str");
    nStore.addProperty(node2,n2prop2,index("String_Node_Str"),new Integer(2));
    nStore.addProperty(node2,n2prop3,index("String_Node_Str"),new Boolean(false));
    int relType1=ds.nextId(RelationshipType.class);
    relTypeStore.addRelationshipType(relType1,"String_Node_Str");
    int relType2=ds.nextId(RelationshipType.class);
    relTypeStore.addRelationshipType(relType2,"String_Node_Str");
    int rel1=ds.nextId(Relationship.class);
    rStore.createRelationship(rel1,node1,node2,relType1);
    int rel2=ds.nextId(Relationship.class);
    rStore.createRelationship(rel2,node2,node1,relType2);
    int r1prop1=pStore.nextId();
    int r1prop2=pStore.nextId();
    int r1prop3=pStore.nextId();
    rStore.addProperty(rel1,r1prop1,index("String_Node_Str"),"String_Node_Str");
    rStore.addProperty(rel1,r1prop2,index("String_Node_Str"),new Integer(1));
    rStore.addProperty(rel1,r1prop3,index("String_Node_Str"),new Boolean(true));
    int r2prop1=pStore.nextId();
    int r2prop2=pStore.nextId();
    int r2prop3=pStore.nextId();
    rStore.addProperty(rel2,r2prop1,index("String_Node_Str"),"String_Node_Str");
    rStore.addProperty(rel2,r2prop2,index("String_Node_Str"),new Integer(2));
    rStore.addProperty(rel2,r2prop3,index("String_Node_Str"),new Boolean(false));
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    validateNodeRel1(node1,n1prop1,n1prop2,n1prop3,rel1,rel2,relType1,relType2);
    validateNodeRel2(node2,n2prop1,n2prop2,n2prop3,rel1,rel2,relType1,relType2);
    validateRel1(rel1,r1prop1,r1prop2,r1prop3,node1,node2,relType1);
    validateRel2(rel2,r2prop1,r2prop2,r2prop3,node2,node1,relType2);
    validateRelTypes(relType1,relType2);
    validateRelTypes(relType1,relType2);
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    deleteRel1(rel1,r1prop1,r1prop2,r1prop3,node1,node2,relType1);
    deleteRel2(rel2,r2prop1,r2prop2,r2prop3,node2,node1,relType2);
    deleteNode1(node1,n1prop1,n1prop2,n1prop3);
    deleteNode2(node2,n2prop1,n2prop2,n2prop3);
    commitTx();
    ds.close();
    initializeStores();
    startTx();
    assertEquals(false,nStore.loadLightNode(node1));
    assertEquals(false,nStore.loadLightNode(node2));
    testGetRels(new int[]{rel1,rel2});
    int nodeIds[]=new int[10];
    for (int i=0; i < 3; i++) {
      nodeIds[i]=ds.nextId(Node.class);
      nStore.createNode(nodeIds[i]);
      nStore.addProperty(nodeIds[i],pStore.nextId(),index("String_Node_Str"),new Integer(10 - i));
    }
    for (int i=0; i < 2; i++) {
      int id=ds.nextId(Relationship.class);
      rStore.createRelationship(id,nodeIds[i],nodeIds[i + 1],relType1);
      rStore.deleteRelationship(id);
    }
    for (int i=0; i < 3; i++) {
      RelationshipData rels[]=nStore.getRelationships(nodeIds[i]);
      for (int j=0; j < rels.length; j++) {
        rStore.deleteRelationship(rels[j].getId());
      }
      nStore.deleteNode(nodeIds[i]);
    }
    commitTx();
    ds.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}