nus-yam/ex-repair huggingface dataset:
Program: 166233
Project: 166233
Buggy source:
@Test public void testUpdateSinkShortUserName() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(3,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkShortUserName() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(3,sink.getTotalGroups());
}
Program: 166234
Project: 166234
Buggy source:
@Test public void testMultipleOUInvalidOU() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(110,sink.getTotalUsers());
  assertEquals(0,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testMultipleOUInvalidOU() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(110,sink.getTotalUsers());
  assertEquals(0,sink.getTotalGroups());
}
Program: 166235
Project: 166235
Buggy source:
@Test public void testUpdateSinkTotalUsers() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(109,sink.getTotalUsers());
}

Fixed version (ground truth):
@Test public void testUpdateSinkTotalUsers() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(109,sink.getTotalUsers());
}
Program: 166236
Project: 166236
Buggy source:
@Test public void testUpdateSinkWithoutPagedResults() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(109,sink.getTotalUsers());
}

Fixed version (ground truth):
@Test public void testUpdateSinkWithoutPagedResults() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(109,sink.getTotalUsers());
}
Program: 166237
Project: 166237
Buggy source:
@Test public void testUpdateSinkGroupFilter() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkGroupFilter() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalGroups());
}
Program: 166238
Project: 166238
Buggy source:
@Test public void testGBWithInvalidOU() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(1,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testGBWithInvalidOU() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(1,sink.getTotalGroups());
}
Program: 166239
Project: 166239
Buggy source:
@Test public void testUpdateSinkMultipleOUGroups() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkMultipleOUGroups() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166240
Project: 166240
Buggy source:
@Test public void testGroupBasedWithAllUsersAndGroups() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(100,sink.getTotalUsers());
  assertEquals(13,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testGroupBasedWithAllUsersAndGroups() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(100,sink.getTotalUsers());
  assertEquals(13,sink.getTotalGroups());
}
Program: 166241
Project: 166241
Buggy source:
@Test public void testUpdateSinkWithEmptyUserSearchBase() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
}

Fixed version (ground truth):
@Test public void testUpdateSinkWithEmptyUserSearchBase() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setPagedResultsEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
}
Program: 166242
Project: 166242
Buggy source:
@Test public void testUpdateSinkUserFilter() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(12,sink.getTotalUsers());
}

Fixed version (ground truth):
@Test public void testUpdateSinkUserFilter() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(12,sink.getTotalUsers());
}
Program: 166243
Project: 166243
Buggy source:
@Test public void testUpdateSinkTotalGroups() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkTotalGroups() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
}
Program: 166244
Project: 166244
Buggy source:
@Test public void testGroupBasedWithNoUsers() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testGroupBasedWithNoUsers() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166245
Project: 166245
Buggy source:
@Test public void testUpdateSinkMultipleOUsNoGroupSearch() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(12,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkMultipleOUsNoGroupSearch() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(12,sink.getTotalGroups());
}
Program: 166246
Project: 166246
Buggy source:
@Test public void testUpdateSinkGroupSearchDisable() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(11,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testUpdateSinkGroupSearchDisable() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(11,sink.getTotalGroups());
}
Program: 166247
Project: 166247
Buggy source:
@Test public void testGroupBasedAllUsers() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(2,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testGroupBasedAllUsers() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(2,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166248
Project: 166248
Buggy source:
@Test public void testMultipleOUGroupsNoGroupSearch() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(12,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testMultipleOUGroupsNoGroupSearch() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(false);
  config.setGroupSearchFirstEnabled(true);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(12,sink.getTotalGroups());
}
Program: 166249
Project: 166249
Buggy source:
@Test public void testGBWithNoUsersAndUserSearchDisabled() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testGBWithNoUsersAndUserSearchDisabled() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166250
Project: 166250
Buggy source:
@Test public void testDeltaGroupBasedWithUserFilter() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testDeltaGroupBasedWithUserFilter() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(1,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166251
Project: 166251
Buggy source:
@Test public void testDeltaGroupBasedWithNoUsers() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testDeltaGroupBasedWithNoUsers() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(true);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(0,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166252
Project: 166252
Buggy source:
@Test public void testDeltaUpdateSinkMultipleOUGroups() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testDeltaUpdateSinkMultipleOUGroups() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(111,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166253
Project: 166253
Buggy source:
@Test public void testDeltaUpdateSinkTotalGroups() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testDeltaUpdateSinkTotalGroups() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
}
Program: 166254
Project: 166254
Buggy source:
@Test public void testDeltaGBWithUserSearchDisabled() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(2,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}

Fixed version (ground truth):
@Test public void testDeltaGBWithUserSearchDisabled() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(true);
  config.setUserSearchEnabled(false);
  config.setDeltaSync(true);
  ldapBuilder=config.getUserGroupSource();
  ldapBuilder.init();
  LdapPolicyMgrUserGroupBuilderTest sink=new LdapPolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(2,sink.getTotalUsers());
  assertEquals(2,sink.getTotalGroups());
}
Program: 166255
Project: 166255
Buggy source:
@Test public void testUpdateSinkWithUserGroupMapping() throws Throwable {
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setProperty(UserGroupSyncConfig.SYNC_MAPPING_USERNAME,"String_Node_Str");
  config.setProperty(UserGroupSyncConfig.SYNC_MAPPING_GROUPNAME,"String_Node_Str");
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
  for (  String user : sink.getAllUsers()) {
    assertFalse(user.contains("String_Node_Str"));
  }
  for (  String group : sink.getAllGroups()) {
    assertFalse(group.contains("String_Node_Str"));
  }
}

Fixed version (ground truth):
@Test public void testUpdateSinkWithUserGroupMapping() throws Throwable {
  config.setUserNameAttribute("String_Node_Str");
  config.setUserSearchBase("String_Node_Str");
  config.setUserSearchFilter("String_Node_Str");
  config.setGroupSearchBase("String_Node_Str");
  config.setGroupSearchFilter("String_Node_Str");
  config.setUserGroupMemberAttributeName("String_Node_Str");
  config.setUserObjectClass("String_Node_Str");
  config.setGroupObjectClass("String_Node_Str");
  config.setGroupSearchEnabled(true);
  config.setGroupSearchFirstEnabled(false);
  config.setProperty(UserGroupSyncConfig.SYNC_MAPPING_USERNAME,"String_Node_Str");
  config.setProperty(UserGroupSyncConfig.SYNC_MAPPING_GROUPNAME,"String_Node_Str");
  ldapBuilder.init();
  PolicyMgrUserGroupBuilderTest sink=new PolicyMgrUserGroupBuilderTest();
  sink.init();
  ldapBuilder.updateSink(sink);
  assertEquals(10,sink.getTotalGroups());
  for (  String user : sink.getAllUsers()) {
    assertFalse(user.contains("String_Node_Str"));
  }
  for (  String group : sink.getAllGroups()) {
    assertFalse(group.contains("String_Node_Str"));
  }
}
Program: 166256
Project: 166256
Buggy source:
public boolean isSsl(String _baseUrl){
  return StringUtils.isEmpty(_baseUrl) ? false : _baseUrl.toLowerCase().startsWith("String_Node_Str");
}

Fixed version (ground truth):
public boolean isSsl(String _baseUrl){
  return !StringUtils.isEmpty(_baseUrl) && _baseUrl.toLowerCase().startsWith("String_Node_Str");
}
Program: 166257
Project: 166257
Buggy source:
private boolean checkAccess(RangerAtlasAccessRequest request){
  boolean isAccessAllowed=false;
  RangerBasePlugin plugin=atlasPlugin;
  if (plugin != null) {
    RangerAccessResult rangerResult=plugin.isAccessAllowed(request);
    isAccessAllowed=(rangerResult == null) ? false : rangerResult.getIsAllowed();
  }
 else {
    isAccessAllowed=false;
    LOG.warn("String_Node_Str" + plugin + "String_Node_Str");
  }
  return isAccessAllowed;
}

Fixed version (ground truth):
private boolean checkAccess(RangerAtlasAccessRequest request){
  boolean isAccessAllowed=false;
  RangerBasePlugin plugin=atlasPlugin;
  if (plugin != null) {
    RangerAccessResult rangerResult=plugin.isAccessAllowed(request);
    isAccessAllowed=rangerResult != null && rangerResult.getIsAllowed();
  }
 else {
    isAccessAllowed=false;
    LOG.warn("String_Node_Str" + plugin + "String_Node_Str");
  }
  return isAccessAllowed;
}
Program: 166259
Project: 166259
Buggy source:
/** 
 * @param serviceName
 * @param context
 * @return
 */
public List<String> getResources(ResourceLookupContext context){
}

Fixed version (ground truth):
public List<String> getResources(ResourceLookupContext context){
}
Program: 166260
Project: 166260
Buggy source:
private String getFileLocation(String fileName){
  String ret=null;
  URL lurl=RangerConfiguration.class.getClassLoader().getResource(fileName);
  if (lurl == null) {
    lurl=RangerConfiguration.class.getClassLoader().getResource("String_Node_Str" + fileName);
  }
  if (lurl != null) {
    ret=lurl.getFile();
  }
  return ret;
}

Fixed version (ground truth):
private URL getFileLocation(String fileName){
  URL lurl=RangerConfiguration.class.getClassLoader().getResource(fileName);
  if (lurl == null) {
    lurl=RangerConfiguration.class.getClassLoader().getResource("String_Node_Str" + fileName);
  }
  return lurl;
}
Program: 166261
Project: 166261
Buggy source:
private boolean addResourceIfReadable(String aResourceName){
  boolean ret=false;
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + aResourceName + "String_Node_Str");
  }
  String fName=getFileLocation(aResourceName);
  if (fName != null) {
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str" + aResourceName + "String_Node_Str"+ fName);
    }
    File f=new File(fName);
    if (f.exists() && f.canRead()) {
      URL fUrl=null;
      try {
        fUrl=f.toURI().toURL();
        addResource(fUrl);
        ret=true;
      }
 catch (      MalformedURLException e) {
        LOG.error("String_Node_Str" + aResourceName + "String_Node_Str"+ aResourceName);
      }
    }
 else {
      LOG.error("String_Node_Str" + aResourceName + "String_Node_Str");
    }
  }
 else {
    LOG.error("String_Node_Str" + aResourceName + "String_Node_Str");
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + aResourceName + "String_Node_Str"+ ret);
  }
  return ret;
}

Fixed version (ground truth):
private boolean addResourceIfReadable(String aResourceName){
  boolean ret=false;
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + aResourceName + "String_Node_Str");
  }
  URL fUrl=getFileLocation(aResourceName);
  if (fUrl != null) {
    if (LOG.isInfoEnabled()) {
      LOG.info("String_Node_Str" + aResourceName + "String_Node_Str"+ fUrl);
    }
    try {
      addResource(fUrl);
      ret=true;
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str" + aResourceName + "String_Node_Str"+ fUrl);
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + fUrl,e);
      }
    }
  }
 else {
    LOG.error("String_Node_Str" + aResourceName + "String_Node_Str");
  }
  if (LOG.isDebugEnabled()) {
    LOG.debug("String_Node_Str" + aResourceName + "String_Node_Str"+ ret);
  }
  return ret;
}
Program: 166262
Project: 166262
Buggy source:
private void runTestsFromResourceFiles(String[] resourceNames) throws Exception {
  for (  String resourceName : resourceNames) {
    InputStream inStream=this.getClass().getResourceAsStream(resourceName);
    InputStreamReader reader=new InputStreamReader(inStream);
    runTests(reader);
  }
}

Fixed version (ground truth):
private void runTestsFromResourceFiles(String[] resourceNames) throws Exception {
  for (  String resourceName : resourceNames) {
    InputStream inStream=this.getClass().getResourceAsStream(resourceName);
    InputStreamReader reader=new InputStreamReader(inStream,Charset.defaultCharset());
    runTests(reader);
  }
}
Program: 166263
Project: 166263
Buggy source:
@Test public void test24getServicePoliciesIfUpdated() throws Exception {
  HttpServletRequest request=Mockito.mock(HttpServletRequest.class);
  String serviceName="String_Node_Str";
  Long lastKnownVersion=1L;
  String pluginId="String_Node_Str";
  try {
    Mockito.doNothing().when(assetMgr).createPluginInfo(serviceName,pluginId,null,1,1L,lastKnownVersion,1,0);
  }
 catch (  Exception e) {
  }
  ServicePolicies dbServicePolicies=serviceREST.getServicePoliciesIfUpdated(serviceName,lastKnownVersion,0L,pluginId,request);
  Assert.assertNull(dbServicePolicies);
}

Fixed version (ground truth):
@Test public void test24getServicePoliciesIfUpdated() throws Exception {
  HttpServletRequest request=Mockito.mock(HttpServletRequest.class);
  String serviceName="String_Node_Str";
  Long lastKnownVersion=1L;
  String pluginId="String_Node_Str";
  Mockito.doNothing().when(assetMgr).createPluginInfo(serviceName,pluginId,null,1,1L,lastKnownVersion,1,0);
  ServicePolicies dbServicePolicies=serviceREST.getServicePoliciesIfUpdated(serviceName,lastKnownVersion,0L,pluginId,request);
  Assert.assertNull(dbServicePolicies);
}
Program: 166264
Project: 166264
Buggy source:
@Test public void testTransform() throws Throwable {
  userRegexPatterns.add("String_Node_Str");
  userNameRegEx.populateReplacementPatterns(userNameBaseProperty,userRegexPatterns);
  assertEquals("String_Node_Str",userNameRegEx.transform("String_Node_Str"));
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testTransform() throws Throwable {
  userRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  userNameRegEx.populateReplacementPatterns(userNameBaseProperty,userRegexPatterns);
  groupNameRegEx.populateReplacementPatterns(groupNameBaseProperty,groupRegexPatterns);
  assertEquals("String_Node_Str",userNameRegEx.transform("String_Node_Str"));
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}
Program: 166265
Project: 166265
Buggy source:
@Test public void testTransform1() throws Throwable {
  userRegexPatterns.add("String_Node_Str");
  userRegexPatterns.add("String_Node_Str");
  userNameRegEx.populateReplacementPatterns(userNameBaseProperty,userRegexPatterns);
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupNameRegEx.populateReplacementPatterns(userNameBaseProperty,groupRegexPatterns);
  assertEquals("String_Node_Str",userNameRegEx.transform("String_Node_Str"));
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testTransform1() throws Throwable {
  userRegexPatterns.add("String_Node_Str");
  userRegexPatterns.add("String_Node_Str");
  userNameRegEx.populateReplacementPatterns(userNameBaseProperty,userRegexPatterns);
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupNameRegEx.populateReplacementPatterns(groupNameBaseProperty,groupRegexPatterns);
  assertEquals("String_Node_Str",userNameRegEx.transform("String_Node_Str"));
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}
Program: 166266
Project: 166266
Buggy source:
@Test public void testGroupNameTransform() throws Throwable {
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupNameRegEx.populateReplacementPatterns(userNameBaseProperty,groupRegexPatterns);
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testGroupNameTransform() throws Throwable {
  groupRegexPatterns.add("String_Node_Str");
  groupRegexPatterns.add("String_Node_Str");
  groupNameRegEx.populateReplacementPatterns(groupNameBaseProperty,groupRegexPatterns);
  assertEquals("String_Node_Str",groupNameRegEx.transform("String_Node_Str"));
}
Program: 166267
Project: 166267
Buggy source:
@org.junit.AfterClass public static void cleanup() throws Exception {
  if (kafkaServer != null) {
    kafkaServer.shutdown();
  }
  if (zkServer != null) {
    zkServer.stop();
  }
  File clientKeystoreFile=new File(clientKeystorePath);
  if (clientKeystoreFile.exists()) {
    clientKeystoreFile.delete();
  }
  File serviceKeystoreFile=new File(serviceKeystorePath);
  if (serviceKeystoreFile.exists()) {
    serviceKeystoreFile.delete();
  }
  File truststoreFile=new File(truststorePath);
  if (truststoreFile.exists()) {
    truststoreFile.delete();
  }
}

Fixed version (ground truth):
@org.junit.AfterClass public static void cleanup() throws Exception {
  if (kafkaServer != null) {
    kafkaServer.shutdown();
  }
  if (zkServer != null) {
    zkServer.stop();
  }
  File clientKeystoreFile=new File(clientKeystorePath);
  if (clientKeystoreFile.exists()) {
    FileUtils.forceDelete(clientKeystoreFile);
  }
  File serviceKeystoreFile=new File(serviceKeystorePath);
  if (serviceKeystoreFile.exists()) {
    FileUtils.forceDelete(serviceKeystoreFile);
  }
  File truststoreFile=new File(truststorePath);
  if (truststoreFile.exists()) {
    FileUtils.forceDelete(truststoreFile);
  }
}