nus-yam/ex-repair huggingface dataset:
Program: 102513
Project: 102513
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingCountByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(700) public void testGetOutgoingCountByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.PENDING);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  int countIdentities=relationshipStorage.getOutgoingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",8,countIdentities);
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  countIdentities=relationshipStorage.getOutgoingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",1,countIdentities);
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingCountByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(710) public void testGetOutgoingCountByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.PENDING);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  int countIdentities=relationshipStorage.getOutgoingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",8,countIdentities);
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  countIdentities=relationshipStorage.getOutgoingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",1,countIdentities);
}
Program: 102514
Project: 102514
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getIncomingByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(700) public void testGetIncomingByFilter() throws Exception {
  populateData();
  populateRelationshipIncommingData();
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getIncomingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getIncomingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),1,identities.size());
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getIncomingByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(710) public void testGetIncomingByFilter() throws Exception {
  populateData();
  populateRelationshipIncommingData();
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getIncomingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getIncomingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),1,identities.size());
}
Program: 102515
Project: 102515
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getIncomingCountByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(700) public void testGetIncomingCountByFilter() throws Exception {
  populateData();
  populateRelationshipIncommingData();
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  int countIdentities=relationshipStorage.getIncomingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",8,countIdentities);
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  countIdentities=relationshipStorage.getIncomingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",1,countIdentities);
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getIncomingCountByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(710) public void testGetIncomingCountByFilter() throws Exception {
  populateData();
  populateRelationshipIncommingData();
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  int countIdentities=relationshipStorage.getIncomingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",8,countIdentities);
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  countIdentities=relationshipStorage.getIncomingCountByFilter(tearDownIdentityList.get(0),pf);
  assertEquals("String_Node_Str",1,countIdentities);
}
Program: 102516
Project: 102516
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingRelationshipsCount(Identity)}
 * @throws Exception
 * @since 1.2.0-Beta3
 */
@MaxQueryNumber(60) public void testGetOutgoingRelationshipsCount() throws Exception {
  Relationship rootToJohnRelationship=new Relationship(rootIdentity,johnIdentity,Type.PENDING);
  rootToJohnRelationship=relationshipStorage.saveRelationship(rootToJohnRelationship);
  assertNotNull("String_Node_Str",rootToJohnRelationship.getId());
  Relationship rootToMaryRelationship=new Relationship(rootIdentity,maryIdentity,Type.PENDING);
  rootToMaryRelationship=relationshipStorage.saveRelationship(rootToMaryRelationship);
  assertNotNull("String_Node_Str",rootToMaryRelationship.getId());
  Relationship rootToDemoRelationship=new Relationship(rootIdentity,demoIdentity,Type.IGNORED);
  rootToDemoRelationship=relationshipStorage.saveRelationship(rootToDemoRelationship);
  assertNotNull("String_Node_Str",rootToDemoRelationship.getId());
  List<Identity> listIdentities=relationshipStorage.getOutgoingRelationships(rootIdentity,0,10);
  assertNotNull("String_Node_Str",listIdentities);
  assertEquals("String_Node_Str",2,listIdentities.size());
  int count=relationshipStorage.getOutgoingRelationshipsCount(rootIdentity);
  assertEquals("String_Node_Str",2,count);
  tearDownRelationshipList.add(rootToJohnRelationship);
  tearDownRelationshipList.add(rootToMaryRelationship);
  tearDownRelationshipList.add(rootToDemoRelationship);
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingRelationshipsCount(Identity)}
 * @throws Exception
 * @since 1.2.0-Beta3
 */
@MaxQueryNumber(70) public void testGetOutgoingRelationshipsCount() throws Exception {
  Relationship rootToJohnRelationship=new Relationship(rootIdentity,johnIdentity,Type.PENDING);
  rootToJohnRelationship=relationshipStorage.saveRelationship(rootToJohnRelationship);
  assertNotNull("String_Node_Str",rootToJohnRelationship.getId());
  Relationship rootToMaryRelationship=new Relationship(rootIdentity,maryIdentity,Type.PENDING);
  rootToMaryRelationship=relationshipStorage.saveRelationship(rootToMaryRelationship);
  assertNotNull("String_Node_Str",rootToMaryRelationship.getId());
  Relationship rootToDemoRelationship=new Relationship(rootIdentity,demoIdentity,Type.IGNORED);
  rootToDemoRelationship=relationshipStorage.saveRelationship(rootToDemoRelationship);
  assertNotNull("String_Node_Str",rootToDemoRelationship.getId());
  List<Identity> listIdentities=relationshipStorage.getOutgoingRelationships(rootIdentity,0,10);
  assertNotNull("String_Node_Str",listIdentities);
  assertEquals("String_Node_Str",2,listIdentities.size());
  int count=relationshipStorage.getOutgoingRelationshipsCount(rootIdentity);
  assertEquals("String_Node_Str",2,count);
  tearDownRelationshipList.add(rootToJohnRelationship);
  tearDownRelationshipList.add(rootToMaryRelationship);
  tearDownRelationshipList.add(rootToDemoRelationship);
}
Program: 102517
Project: 102517
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getConnectionsByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(700) public void testGetConnectionsByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.CONFIRMED);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getConnectionsByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getConnectionsByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),1,identities.size());
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getConnectionsByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(710) public void testGetConnectionsByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.CONFIRMED);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getConnectionsByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getConnectionsByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str" + identities.size(),1,identities.size());
}
Program: 102518
Project: 102518
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getConnectionsCount(Identity)}
 * @throws Exception
 * @since 1.2.0-Beta3
 */
@MaxQueryNumber(60) public void testGetConnectionsCount() throws Exception {
  Relationship rootToJohnRelationship=new Relationship(rootIdentity,johnIdentity,Type.CONFIRMED);
  rootToJohnRelationship=relationshipStorage.saveRelationship(rootToJohnRelationship);
  assertNotNull("String_Node_Str",rootToJohnRelationship.getId());
  Relationship maryToRootRelationship=new Relationship(maryIdentity,rootIdentity,Type.CONFIRMED);
  maryToRootRelationship=relationshipStorage.saveRelationship(maryToRootRelationship);
  assertNotNull("String_Node_Str",maryToRootRelationship.getId());
  Relationship rootToDemoRelationship=new Relationship(rootIdentity,demoIdentity,Type.PENDING);
  rootToDemoRelationship=relationshipStorage.saveRelationship(rootToDemoRelationship);
  assertNotNull("String_Node_Str",rootToDemoRelationship.getId());
  List<Identity> listIdentities=relationshipStorage.getConnections(rootIdentity,0,10);
  assertNotNull("String_Node_Str",listIdentities);
  assertEquals("String_Node_Str",2,listIdentities.size());
  int count=relationshipStorage.getConnectionsCount(rootIdentity);
  assertEquals("String_Node_Str",2,count);
  tearDownRelationshipList.add(rootToJohnRelationship);
  tearDownRelationshipList.add(maryToRootRelationship);
  tearDownRelationshipList.add(rootToDemoRelationship);
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getConnectionsCount(Identity)}
 * @throws Exception
 * @since 1.2.0-Beta3
 */
@MaxQueryNumber(70) public void testGetConnectionsCount() throws Exception {
  Relationship rootToJohnRelationship=new Relationship(rootIdentity,johnIdentity,Type.CONFIRMED);
  rootToJohnRelationship=relationshipStorage.saveRelationship(rootToJohnRelationship);
  assertNotNull("String_Node_Str",rootToJohnRelationship.getId());
  Relationship maryToRootRelationship=new Relationship(maryIdentity,rootIdentity,Type.CONFIRMED);
  maryToRootRelationship=relationshipStorage.saveRelationship(maryToRootRelationship);
  assertNotNull("String_Node_Str",maryToRootRelationship.getId());
  Relationship rootToDemoRelationship=new Relationship(rootIdentity,demoIdentity,Type.PENDING);
  rootToDemoRelationship=relationshipStorage.saveRelationship(rootToDemoRelationship);
  assertNotNull("String_Node_Str",rootToDemoRelationship.getId());
  List<Identity> listIdentities=relationshipStorage.getConnections(rootIdentity,0,10);
  assertNotNull("String_Node_Str",listIdentities);
  assertEquals("String_Node_Str",2,listIdentities.size());
  int count=relationshipStorage.getConnectionsCount(rootIdentity);
  assertEquals("String_Node_Str",2,count);
  tearDownRelationshipList.add(rootToJohnRelationship);
  tearDownRelationshipList.add(maryToRootRelationship);
  tearDownRelationshipList.add(rootToDemoRelationship);
}
Program: 102519
Project: 102519
Buggy source:
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(700) public void testGetOutgoingByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.PENDING);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getOutgoingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str",8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getOutgoingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str",1,identities.size());
}

Fixed version (ground truth):
/** 
 * Test   {@link org.exoplatform.social.core.storage.api.RelationshipStorage#getOutgoingByFilter(providerId,Identity,ProfileFilter)}
 * @throws Exception
 * @since 1.2.3
 */
@MaxQueryNumber(710) public void testGetOutgoingByFilter() throws Exception {
  populateData();
  populateRelationshipData(Type.PENDING);
  ProfileFilter pf=new ProfileFilter();
  pf=buildProfileFilterWithExcludeIdentities(pf);
  List<Identity> identities=relationshipStorage.getOutgoingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str",8,identities.size());
  pf.setPosition("String_Node_Str");
  pf.setName("String_Node_Str");
  identities=relationshipStorage.getOutgoingByFilter(tearDownIdentityList.get(0),pf,0,20);
  assertEquals("String_Node_Str",1,identities.size());
}
Program: 102521
Project: 102521
Buggy source:
@MaxQueryNumber(350) public void testHardDeleteSpace() throws Exception {
  Identity user1=new Identity("String_Node_Str","String_Node_Str");
  Identity user2=new Identity("String_Node_Str","String_Node_Str");
  storage._createIdentity(user1);
  storage._createIdentity(user2);
  Space space=new Space();
  space.setDisplayName("String_Node_Str");
  space.setPrettyName(space.getDisplayName());
  space.setMembers(new String[]{user1.getRemoteId()});
  space.setManagers(new String[]{user1.getRemoteId(),user2.getRemoteId()});
  space.setPendingUsers(new String[]{user1.getRemoteId()});
  space.setInvitedUsers(new String[]{user1.getRemoteId()});
  spaceStorage.saveSpace(space,true);
  storage._hardDeleteIdentity(user1);
  Identity got=storage._findIdentity("String_Node_Str","String_Node_Str");
  assertEquals(true,got.isDeleted());
  assertEquals(1,spaceStorage.getSpaceById(space.getId()).getMembers().length);
  assertEquals(user2.getRemoteId(),spaceStorage.getSpaceById(space.getId()).getMembers()[0]);
  assertEquals(1,spaceStorage.getSpaceById(space.getId()).getManagers().length);
  assertEquals(user2.getRemoteId(),spaceStorage.getSpaceById(space.getId()).getManagers()[0]);
  assertEquals(0,spaceStorage.getSpaceById(space.getId()).getPendingUsers().length);
  assertEquals(0,spaceStorage.getSpaceById(space.getId()).getInvitedUsers().length);
  spaceStorage.deleteSpace(space.getId());
  tearDownIdentityList.add(user1.getId());
  tearDownIdentityList.add(user2.getId());
}

Fixed version (ground truth):
@MaxQueryNumber(360) public void testHardDeleteSpace() throws Exception {
  Identity user1=new Identity("String_Node_Str","String_Node_Str");
  Identity user2=new Identity("String_Node_Str","String_Node_Str");
  storage._createIdentity(user1);
  storage._createIdentity(user2);
  Space space=new Space();
  space.setDisplayName("String_Node_Str");
  space.setPrettyName(space.getDisplayName());
  space.setMembers(new String[]{user1.getRemoteId()});
  space.setManagers(new String[]{user1.getRemoteId(),user2.getRemoteId()});
  space.setPendingUsers(new String[]{user1.getRemoteId()});
  space.setInvitedUsers(new String[]{user1.getRemoteId()});
  spaceStorage.saveSpace(space,true);
  storage._hardDeleteIdentity(user1);
  Identity got=storage._findIdentity("String_Node_Str","String_Node_Str");
  assertEquals(true,got.isDeleted());
  assertEquals(1,spaceStorage.getSpaceById(space.getId()).getMembers().length);
  assertEquals(user2.getRemoteId(),spaceStorage.getSpaceById(space.getId()).getMembers()[0]);
  assertEquals(1,spaceStorage.getSpaceById(space.getId()).getManagers().length);
  assertEquals(user2.getRemoteId(),spaceStorage.getSpaceById(space.getId()).getManagers()[0]);
  assertEquals(0,spaceStorage.getSpaceById(space.getId()).getPendingUsers().length);
  assertEquals(0,spaceStorage.getSpaceById(space.getId()).getInvitedUsers().length);
  spaceStorage.deleteSpace(space.getId());
  tearDownIdentityList.add(user1.getId());
  tearDownIdentityList.add(user2.getId());
}
Program: 102523
Project: 102523
Buggy source:
@MaxQueryNumber(100) public void testFindRelationship() throws Exception {
  Identity tmp1=new Identity("String_Node_Str","String_Node_Str");
  Identity tmp2=new Identity("String_Node_Str","String_Node_Str");
  identityStorage.saveIdentity(tmp1);
  identityStorage.saveIdentity(tmp2);
  Relationship newRelationship=new Relationship(tmp1,tmp2,Relationship.Type.PENDING);
  storage._createRelationship(newRelationship);
  assertNotNull(newRelationship.getId());
  assertEquals(tmp1.getId(),newRelationship.getSender().getId());
  assertEquals(tmp2.getId(),newRelationship.getReceiver().getId());
  assertEquals(Relationship.Type.PENDING,newRelationship.getStatus());
  Relationship got=storage._getRelationship(newRelationship.getId());
  assertNotNull(got);
  assertEquals(tmp1.getId(),got.getSender().getId());
  assertEquals(tmp2.getId(),got.getReceiver().getId());
  assertEquals(Relationship.Type.PENDING,got.getStatus());
  tearDownIdentityList.add(tmp1.getId());
  tearDownIdentityList.add(tmp2.getId());
}

Fixed version (ground truth):
@MaxQueryNumber(110) public void testFindRelationship() throws Exception {
  Identity tmp1=new Identity("String_Node_Str","String_Node_Str");
  Identity tmp2=new Identity("String_Node_Str","String_Node_Str");
  identityStorage.saveIdentity(tmp1);
  identityStorage.saveIdentity(tmp2);
  Relationship newRelationship=new Relationship(tmp1,tmp2,Relationship.Type.PENDING);
  storage._createRelationship(newRelationship);
  assertNotNull(newRelationship.getId());
  assertEquals(tmp1.getId(),newRelationship.getSender().getId());
  assertEquals(tmp2.getId(),newRelationship.getReceiver().getId());
  assertEquals(Relationship.Type.PENDING,newRelationship.getStatus());
  Relationship got=storage._getRelationship(newRelationship.getId());
  assertNotNull(got);
  assertEquals(tmp1.getId(),got.getSender().getId());
  assertEquals(tmp2.getId(),got.getReceiver().getId());
  assertEquals(Relationship.Type.PENDING,got.getStatus());
  tearDownIdentityList.add(tmp1.getId());
  tearDownIdentityList.add(tmp2.getId());
}
Program: 102524
Project: 102524
Buggy source:
/** 
 * Gets and sort all uicomponents.<br>
 * @return All children in order.
 */
public final List<UIComponent> getChilds(){
  List<UIComponent> listChild=getChildren();
  return sort(listChild);
}

Fixed version (ground truth):
/** 
 * Gets and sort all uicomponents.<br>
 * @return All children in order.
 */
public final List<UIComponent> getChilds(){
  List<UIComponent> listChild=new ArrayList<UIComponent>();
  for (  UIComponent ui : getChildren()) {
    listChild.add(ui);
  }
  return sort(listChild);
}
Program: 102525
Project: 102525
Buggy source:
/** 
 * constructor
 * @throws Exception 
 */
public UIUserActivitiesDisplay() throws Exception {
  ResourceBundle resourceBundle=WebuiRequestContext.getCurrentInstance().getApplicationResourceBundle();
  List<SelectItemOption<String>> displayModes=new ArrayList<SelectItemOption<String>>(4);
  displayModes.add(new SelectItemOption<String>(resourceBundle.getString("String_Node_Str"),DisplayMode.ALL_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>(resourceBundle.getString("String_Node_Str"),DisplayMode.NETWORK_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>(resourceBundle.getString("String_Node_Str"),DisplayMode.SPACE_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>(resourceBundle.getString("String_Node_Str"),DisplayMode.MY_STATUS.toString()));
  UIDropDownControl uiDropDownControl=addChild(UIDropDownControl.class,"String_Node_Str",null);
  uiDropDownControl.setOptions(displayModes);
  setSelectedMode(uiDropDownControl);
  addChild(uiDropDownControl);
}

Fixed version (ground truth):
/** 
 * constructor
 * @throws Exception 
 */
public UIUserActivitiesDisplay() throws Exception {
  List<SelectItemOption<String>> displayModes=new ArrayList<SelectItemOption<String>>(4);
  displayModes.add(new SelectItemOption<String>("String_Node_Str",DisplayMode.ALL_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>("String_Node_Str",DisplayMode.NETWORK_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>("String_Node_Str",DisplayMode.SPACE_UPDATES.toString()));
  displayModes.add(new SelectItemOption<String>("String_Node_Str",DisplayMode.MY_STATUS.toString()));
  UIDropDownControl uiDropDownControl=addChild(UIDropDownControl.class,"String_Node_Str",null);
  uiDropDownControl.setOptions(displayModes);
  setSelectedMode(uiDropDownControl);
  addChild(uiDropDownControl);
}
Program: 102526
Project: 102526
Buggy source:
@Override public void execute(Event<UILinkActivityComposer> event) throws Exception {
  WebuiRequestContext requestContext=event.getRequestContext();
  UILinkActivityComposer uiComposerLinkExtension=event.getSource();
  Map<String,String> tempParams=new LinkedHashMap<String,String>();
  tempParams.put(LINK_PARAM,requestContext.getRequestParameter(LINK_PARAM));
  tempParams.put(IMAGE_PARAM,requestContext.getRequestParameter(IMAGE_PARAM));
  tempParams.put(TITLE_PARAM,requestContext.getRequestParameter(TITLE_PARAM));
  tempParams.put(DESCRIPTION_PARAM,requestContext.getRequestParameter(DESCRIPTION_PARAM));
  uiComposerLinkExtension.setTemplateParams(tempParams);
  uiComposerLinkExtension.setLinkInfoDisplayed(true);
  requestContext.addUIComponentToUpdateByAjax(uiComposerLinkExtension);
  UIComponent uiParent=uiComposerLinkExtension.getParent();
  if (uiParent != null) {
    uiParent.broadcast(event,event.getExecutionPhase());
  }
}

Fixed version (ground truth):
@Override public void execute(Event<UILinkActivityComposer> event) throws Exception {
  UILinkActivityComposer uiComposerLinkExtension=event.getSource();
  uiComposerLinkExtension.clearLinkShare();
  uiComposerLinkExtension.setLinkInfoDisplayed(false);
  uiComposerLinkExtension.setDisplayed(false);
  uiComposerLinkExtension.setReadyForPostingActivity(false);
  event.getRequestContext().addUIComponentToUpdateByAjax(uiComposerLinkExtension);
}
Program: 102527
Project: 102527
Buggy source:
/** 
 * Constructor: add 3 UI component to this UIFormTabPane: <p/> <pre>  {@link UISpaceSettings}{@link UISpaceVisibility}{@link UISpaceGroupBound}</pre>
 * @throws Exception
 */
public UISpaceAddForm() throws Exception {
  super("String_Node_Str");
  UIFormInputSet uiSpaceSettings=new UISpaceSettings(SPACE_SETTINGS);
  UIFormSelectBox uiSelectBox=uiSpaceSettings.getChild(UIFormSelectBox.class);
  uiSelectBox.setOnChange(CHANGE_PRIORITY);
  addChild(uiSpaceSettings);
  UIFormInputSet uiSpaceVisibility=new UISpaceVisibility(SPACE_VISIBILITY);
  addChild(uiSpaceVisibility);
  addChild(UISpaceGroupBound.class,null,null);
  setActions(new String[]{"String_Node_Str"});
  setSelectedTab(1);
}

Fixed version (ground truth):
/** 
 * Constructor: add 3 UI component to this UIFormTabPane: <p/> <pre>  {@link UISpaceSettings}{@link UISpaceVisibility}{@link UISpaceGroupBound}</pre>
 * @throws Exception
 */
public UISpaceAddForm() throws Exception {
  super("String_Node_Str");
  UIFormInputSet uiSpaceSettings=new UISpaceSettings(SPACE_SETTINGS);
  addChild(uiSpaceSettings);
  UIFormInputSet uiSpaceVisibility=new UISpaceVisibility(SPACE_VISIBILITY);
  addChild(uiSpaceVisibility);
  addChild(UISpaceGroupBound.class,null,null);
  setActions(new String[]{"String_Node_Str"});
  setSelectedTab(1);
}
Program: 102529
Project: 102529
Buggy source:
/** 
 * constructor
 * @param name
 * @throws Exception
 */
public UISpaceSettings(String name) throws Exception {
  super(name);
  WebuiRequestContext requestContext=WebuiRequestContext.getCurrentInstance();
  ResourceBundle resourceBundle=requestContext.getApplicationResourceBundle();
  UIFormStringInput spaceDisplayName=new UIFormStringInput(SPACE_DISPLAY_NAME,SPACE_DISPLAY_NAME,null);
  spaceDisplayName.setHTMLAttribute(HTML_ATTRIBUTE_TITLE,resourceBundle.getString("String_Node_Str"));
  addUIFormInput(spaceDisplayName.addValidator(MandatoryValidator.class).addValidator(ExpressionValidator.class,"String_Node_Str",MSG_INVALID_SPACE_NAME).addValidator(StringLengthValidator.class,3,30));
  List<SelectItemOption<String>> priorityList=new ArrayList<SelectItemOption<String>>(3);
  SelectItemOption<String> pHight=new SelectItemOption<String>(PRIORITY_HIGH,Space.HIGH_PRIORITY);
  SelectItemOption<String> pImmediate=new SelectItemOption<String>(PRIORITY_INTERMEDIATE,Space.INTERMEDIATE_PRIORITY);
  SelectItemOption<String> pLow=new SelectItemOption<String>(PRIORITY_LOW,Space.LOW_PRIORITY);
  priorityList.add(pHight);
  priorityList.add(pImmediate);
  priorityList.add(pLow);
  pImmediate.setSelected(true);
  UIFormSelectBox selectPriority=new UIFormSelectBox(SPACE_PRIORITY,SPACE_PRIORITY,priorityList);
  addUIFormInput(selectPriority);
  UIFormInputInfo priorityInfo=new UIFormInputInfo("String_Node_Str",null,null);
  WebuiRequestContext webReqCtx=WebuiRequestContext.getCurrentInstance();
  ResourceBundle resApp=webReqCtx.getApplicationResourceBundle();
  String interMePrio=resApp.getString("String_Node_Str");
  priorityInfo.setValue(interMePrio);
  addUIFormInput(priorityInfo);
  UIFormTextAreaInput description=new UIFormTextAreaInput(SPACE_DESCRIPTION,SPACE_DESCRIPTION,null);
  description.setHTMLAttribute(HTML_ATTRIBUTE_TITLE,resourceBundle.getString("String_Node_Str"));
  addUIFormInput(description.addValidator(StringLengthValidator.class,0,255));
}

Fixed version (ground truth):
/** 
 * constructor
 * @param name
 * @throws Exception
 */
public UISpaceSettings(String name) throws Exception {
  super(name);
  WebuiRequestContext requestContext=WebuiRequestContext.getCurrentInstance();
  ResourceBundle resourceBundle=requestContext.getApplicationResourceBundle();
  UIFormStringInput spaceDisplayName=new UIFormStringInput(SPACE_DISPLAY_NAME,SPACE_DISPLAY_NAME,null);
  spaceDisplayName.setHTMLAttribute(HTML_ATTRIBUTE_TITLE,resourceBundle.getString("String_Node_Str"));
  addUIFormInput(spaceDisplayName.addValidator(MandatoryValidator.class).addValidator(ExpressionValidator.class,"String_Node_Str",MSG_INVALID_SPACE_NAME).addValidator(StringLengthValidator.class,3,30));
  UIFormTextAreaInput description=new UIFormTextAreaInput(SPACE_DESCRIPTION,SPACE_DESCRIPTION,null);
  description.setHTMLAttribute(HTML_ATTRIBUTE_TITLE,resourceBundle.getString("String_Node_Str"));
  addUIFormInput(description.addValidator(StringLengthValidator.class,0,255));
}
Program: 102530
Project: 102530
Buggy source:
@Action public Response requestToJoin(String spacePrettyName){
  String remoteId=Utils.getOwnerRemoteId();
  Space space=spaceService.getSpaceByPrettyName(spacePrettyName);
  spaceService.addPendingUser(space,remoteId);
  return Controller_.requestedSuccessful(spacePrettyName);
}

Fixed version (ground truth):
@Action public Response.Redirect requestToJoin(String spacePrettyName){
  String remoteId=Utils.getOwnerRemoteId();
  Space space=spaceService.getSpaceByPrettyName(spacePrettyName);
  spaceService.addPendingUser(space,remoteId);
  return Response.redirect(Utils.getSpaceHomeURL(space));
}
Program: 102531
Project: 102531
Buggy source:
/** 
 * Destroy like by identityId and gets json/xml return format
 * @param uriInfo
 * @param activityId
 * @param identityId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyLike(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String identityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=null;
  likeList=destroyLike(activityId,identityId);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Destroy like by identityId and return the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param identityId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyLike(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String identityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=null;
  likeList=destroyLike(activityId,identityId);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}
Program: 102532
Project: 102532
Buggy source:
/** 
 * Show list of like by activityId and returns json/xml format
 * @param uriInfo
 * @param activityId
 * @param format
 * @return response
 * @throws Exception
 */
@GET @Path("String_Node_Str") public Response showLikes(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=null;
  likeList=showLikes(activityId);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Show list of like by activityId and return the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param format
 * @return response
 * @throws Exception
 */
@GET @Path("String_Node_Str") public Response showLikes(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=null;
  likeList=showLikes(activityId);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}
Program: 102533
Project: 102533
Buggy source:
/** 
 * destroys comments and returns json/xml format
 * @param uriInfo
 * @param activityId
 * @param commentId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyComment(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String commentId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  CommentList commentList=null;
  commentList=destroyComment(activityId,commentId);
  return Util.getResponse(commentList,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Destroy comments and return the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param commentId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyComment(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String commentId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  CommentList commentList=null;
  commentList=destroyComment(activityId,commentId);
  return Util.getResponse(commentList,uriInfo,mediaType,Response.Status.OK);
}
Program: 102534
Project: 102534
Buggy source:
/** 
 * Updates comment by json/xml format.
 * @param uriInfo
 * @param activityId
 * @param format
 * @param comment
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response updateComment(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,ExoSocialActivityImpl comment) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  CommentList commentList=null;
  commentList=updateComment(activityId,comment,uriInfo,portalName);
  return Util.getResponse(commentList,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Update comment by the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param format
 * @param comment
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response updateComment(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,ExoSocialActivityImpl comment) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  CommentList commentList=null;
  commentList=updateComment(activityId,comment,uriInfo,portalName);
  return Util.getResponse(commentList,uriInfo,mediaType,Response.Status.OK);
}
Program: 102535
Project: 102535
Buggy source:
/** 
 * Destroy activity and gets json/xml return format
 * @param uriInfo
 * @param activityId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyActivity(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  ExoSocialActivity activity=destroyActivity(activityId);
  return Util.getResponse(activity,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Destroy activity and return the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param format
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") public Response destroyActivity(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  ExoSocialActivity activity=destroyActivity(activityId);
  return Util.getResponse(activity,uriInfo,mediaType,Response.Status.OK);
}
Program: 102537
Project: 102537
Buggy source:
/** 
 * updates like by json/xml format
 * @param uriInfo
 * @param activityId
 * @param format
 * @param like
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response updateLike(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,Like like) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=updateLike(activityId,like);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}

Fixed version (ground truth):
/** 
 * Update like by the JSON/XML format.
 * @param uriInfo
 * @param activityId
 * @param format
 * @param like
 * @return response
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response updateLike(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,Like like) throws Exception {
  MediaType mediaType=Util.getMediaType(format);
  portalName_=portalName;
  LikeList likeList=updateLike(activityId,like);
  return Util.getResponse(likeList,uriInfo,mediaType,Response.Status.OK);
}
Program: 102544
Project: 102544
Buggy source:
/** 
 * Get eXo Social REST service versions that are supported. This is for backward compatibility. If a client application is using an older eXo Social REST APIs version, all APIs of the version still can work. The array MUST have the latest to oldest order. For example, {{{[v2, v1, v1-beta3]}}}, but not {{{[v1, v2, v1-beta3]}}}.
 * @param uriInfo the uri info
 * @param format  The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.VersionResources.Get
 * @request {code} GET: http://cloud-workspaces.com/rest/api/social/version/supported.json or GET: http://cloud-workspaces.com/rest/api/social/version/supported.xml {code}
 * @response {code:json} {"versions": ["v1-alpha3"]} {code} or {code:xml} <versions> <version>v1-alpha3</version> </versions> {code}
 * @return response of the request, the type bases on the format param
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response getSupportedVersions(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String format){
  final String[] supportedFormat=new String[]{"String_Node_Str","String_Node_Str"};
  Versions entity=new Versions();
  entity.getVersions().addAll(SUPPORTED_VERSIONS);
  return Util.getResponse(entity,uriInfo,Util.getMediaType(format,supportedFormat),Status.OK);
}

Fixed version (ground truth):
/** 
 * Get eXo Social REST service versions that are supported. This is for backward compatibility. If a client application is using an older eXo Social REST APIs version, all APIs of the version still can work. The array MUST have the latest to oldest order. For example, {{{[v2, v1, v1-beta3]}}}, but not {{{[v1, v2, v1-beta3]}}}.
 * @param uriInfo The URI information.
 * @param format  The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.VersionResources.Get
 * @request {code} GET: http://cloud-workspaces.com/rest/api/social/version/supported.json or GET: http://cloud-workspaces.com/rest/api/social/version/supported.xml {code}
 * @response {code:json} {"versions": ["v1-alpha3"]} {code} or {code:xml} <versions> <version>v1-alpha3</version> </versions> {code}
 * @return response of the request, the type bases on the format param
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response getSupportedVersions(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String format){
  final String[] supportedFormat=new String[]{"String_Node_Str","String_Node_Str"};
  Versions entity=new Versions();
  entity.getVersions().addAll(SUPPORTED_VERSIONS);
  return Util.getResponse(entity,uriInfo,Util.getMediaType(format,supportedFormat),Status.OK);
}
Program: 102545
Project: 102545
Buggy source:
/** 
 * Get the latest eXo Social REST API version. This version number should be used as the latest and stable version that is considered to include all new features and updates of eXo Social REST services.
 * @param uriInfo the uri info
 * @param format  The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.VersionResources.Versionlastest.Get
 * @request {code} GET: http://cloud-workspaces.com/rest/api/social/version/latest.json or GET: http://cloud-workspaces.com/rest/api/social/version/latest.xml {code}
 * @response {code:json} {"version": "v1-alpha3"} {code} or {code:xml} <version>v1-alpha3</version> {code}
 * @return response of the request, the type bases on the format param
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response getLatestVersion(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String format){
  final String[] supportedFormat=new String[]{"String_Node_Str"};
  MediaType mediaType=Util.getMediaType(format,supportedFormat);
  Version entity=new Version();
  entity.setVersion(LATEST_VERSION);
  return Util.getResponse(entity,uriInfo,mediaType,Status.OK);
}

Fixed version (ground truth):
/** 
 * Get the latest eXo Social REST API version. This version number should be used as the latest and stable version that is considered to include all new features and updates of eXo Social REST services.
 * @param uriInfo The URI information.
 * @param format  The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.VersionResources.Versionlastest.Get
 * @request {code} GET: http://cloud-workspaces.com/rest/api/social/version/latest.json or GET: http://cloud-workspaces.com/rest/api/social/version/latest.xml {code}
 * @response {code:json} {"version": "v1-alpha3"} {code} or {code:xml} <version>v1-alpha3</version> {code}
 * @return response of the request, the type bases on the format param
 */
@GET @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public Response getLatestVersion(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String format){
  final String[] supportedFormat=new String[]{"String_Node_Str"};
  MediaType mediaType=Util.getMediaType(format,supportedFormat);
  Version entity=new Version();
  entity.setVersion(LATEST_VERSION);
  return Util.getResponse(entity,uriInfo,mediaType,Status.OK);
}
Program: 102555
Project: 102555
Buggy source:
/** 
 * Delete an existing comment by its ID using the POST method. The deleted activity information will be returned in the JSON format. It is recommended to use the POST method, except the case that clients cannot make request via this method.
 * @param uriInfo The uri request uri
 * @param portalContainerName The associated portal container name.
 * @param activityId The specified activity ID.
 * @param commentId The specified comment ID.
 * @param format The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.ActivityResource.Activitycomments.PostDelete
 * @authenticated
 * @request {code} POST: http://cloud-workspaces.com/rest/private/api/social/v1-alpha3/portal/activity/1a2b3c4d5e/comment/destroy/123456.json {code}
 * @response {code:json} { "id": "123456" "identityId": "12345abcde", "text": "My comment here!!!", "postedTime": 123456789, "createdAt": "Fri Jun 17 06:42:26 +0000 2011" } {code}
 * @return a response object
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response postDeleteCommentById(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalContainerName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,@PathParam("String_Node_Str") String commentId){
  return deleteCommentById(uriInfo,portalContainerName,activityId,format,commentId);
}

Fixed version (ground truth):
/** 
 * Delete an existing comment by its Id using the POST method. The deleted activity information will be returned in the JSON format. It is recommended to use the POST method, except the case that clients cannot make request via this method.
 * @param uriInfo The uri request uri
 * @param portalContainerName The associated portal container name.
 * @param activityId The specified activity Id.
 * @param commentId The specified comment Id.
 * @param format The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.ActivityResource.Activitycomments.PostDelete
 * @authenticated
 * @request {code} POST: http://cloud-workspaces.com/rest/private/api/social/v1-alpha3/portal/activity/1a2b3c4d5e/comment/destroy/123456.json {code}
 * @response {code:json} { "id": "123456" "identityId": "12345abcde", "text": "My comment here!!!", "postedTime": 123456789, "createdAt": "Fri Jun 17 06:42:26 +0000 2011" } {code}
 * @return a response object
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response postDeleteCommentById(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalContainerName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format,@PathParam("String_Node_Str") String commentId){
  return deleteCommentById(uriInfo,portalContainerName,activityId,format,commentId);
}
Program: 102558
Project: 102558
Buggy source:
/** 
 * Allow an identity to remove his "like" action on an activity. It is recommended to use the DELETE method, except the case that clients cannot make request via this method.
 * @param uriInfo the uri request uri
 * @param portalContainerName The associated portal container name.
 * @param activityId The specified activity ID.
 * @param format The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.ActivityResource.ActivityLike.Postdestroy
 * @authentication
 * @request {code} POST: http://cloud-workspaces.com/rest/private/api/social/v1-alpha3/portal/activity/1a2b3c4d5e/like/destroy.json {code}
 * @response {code:json} { "liked": false } {code}
 * @return a response object
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response postDeleteLikeActivityById(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalContainerName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format){
  return deleteLikeActivityById(uriInfo,portalContainerName,activityId,format);
}

Fixed version (ground truth):
/** 
 * Allow an identity to remove his "like" action on an activity. It is recommended to use the DELETE method, except the case that clients cannot make request via this method.
 * @param uriInfo the uri request uri
 * @param portalContainerName The associated portal container name.
 * @param activityId The specified activity Id.
 * @param format The expected returned format.
 * @anchor SOCref.DevelopersReferences.RestService_APIs_v1alpha3.ActivityResource.ActivityLike.Postdestroy
 * @authentication
 * @request {code} POST: http://cloud-workspaces.com/rest/private/api/social/v1-alpha3/portal/activity/1a2b3c4d5e/like/destroy.json {code}
 * @response {code:json} { "liked": false } {code}
 * @return a response object
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public Response postDeleteLikeActivityById(@Context UriInfo uriInfo,@PathParam("String_Node_Str") String portalContainerName,@PathParam("String_Node_Str") String activityId,@PathParam("String_Node_Str") String format){
  return deleteLikeActivityById(uriInfo,portalContainerName,activityId,format);
}