nus-yam/ex-repair huggingface dataset:
Program: 1592
Project: 1592
Buggy source:
@Override public final void execute() throws MojoExecutionException, MojoFailureException {
  if (skip) {
    getLog().debug(String.format("String_Node_Str",project.getGroupId(),project.getArtifactId()));
    return;
  }
  try {
    final PackageType packageType=getPackageType();
    if (checkPackaging() && packageType.isIgnored()) {
      getLog().debug(String.format("String_Node_Str",packageType.getPackaging()));
    }
 else {
synchronized (CLIENT_LOCK) {
        validate();
        final ModelControllerClient client=getClient();
        final Deployment deployment;
        if (isDomainServer()) {
          deployment=DomainDeployment.create((DomainClient)getClient(),domain,file(),name,getType());
        }
 else {
          deployment=StandaloneDeployment.create(client,file(),name,getType());
        }
        if (beforeDeployment != null)         beforeDeployment.execute(client);
        getLog().debug("String_Node_Str");
        deployment.execute();
        if (afterDeployment != null)         afterDeployment.execute(client);
      }
    }
  }
 catch (  MojoFailureException e) {
    throw e;
  }
catch (  MojoExecutionException e) {
    throw e;
  }
catch (  Exception e) {
    throw new MojoExecutionException(String.format("String_Node_Str",goal(),file(),e.getMessage()),e);
  }
 finally {
    close();
  }
}

Fixed version (ground truth):
@Override public final void execute() throws MojoExecutionException, MojoFailureException {
  if (skip) {
    getLog().debug(String.format("String_Node_Str",project.getGroupId(),project.getArtifactId()));
    return;
  }
  final PackageType packageType=getPackageType();
  if (checkPackaging() && packageType.isIgnored()) {
    getLog().debug(String.format("String_Node_Str",packageType.getPackaging()));
  }
 else {
    doExecute();
  }
}
Program: 1593
Project: 1593
Buggy source:
@Override public final void execute() throws MojoExecutionException, MojoFailureException {
  try {
    final File file=new File(targetDirectory(),filename());
    final InetAddress host=hostAddress();
    getLog().info(String.format("String_Node_Str",goal(),file,host.getHostName(),host.getHostAddress(),port()));
    if (force()) {
      getLog().debug("String_Node_Str");
    }
    final ServerDeploymentManager manager=ServerDeploymentManager.Factory.create(client());
    final DeploymentPlanBuilder builder=manager.newDeploymentPlan();
    final DeploymentPlan plan=createPlan(builder);
    if (plan.getDeploymentActions().size() > 0) {
      final ServerDeploymentPlanResult result=manager.execute(plan).get();
      getLog().debug(String.format("String_Node_Str",result.getDeploymentPlanId()));
    }
 else {
      getLog().warn(String.format("String_Node_Str",goal(),filename(),plan));
    }
  }
 catch (  Exception e) {
    throw new MojoExecutionException(String.format("String_Node_Str",goal(),filename(),e.getMessage()),e);
  }
}

Fixed version (ground truth):
@Override public final void execute() throws MojoExecutionException, MojoFailureException {
  try {
    final File file=new File(targetDirectory(),filename());
    final InetAddress host=hostAddress();
    getLog().info(String.format("String_Node_Str",goal(),file,host.getHostName(),host.getHostAddress(),port()));
    if (force()) {
      getLog().debug("String_Node_Str");
    }
    final ServerDeploymentManager manager=ServerDeploymentManager.Factory.create(client());
    final DeploymentPlanBuilder builder=manager.newDeploymentPlan();
    final DeploymentPlan plan=createPlan(builder);
    if (plan.getDeploymentActions().size() > 0) {
      final ServerDeploymentPlanResult planResult=manager.execute(plan).get();
      for (      DeploymentAction action : plan.getDeploymentActions()) {
        final ServerDeploymentActionResult actionResult=planResult.getDeploymentActionResult(action.getId());
        final ServerUpdateActionResult.Result result=actionResult.getResult();
switch (result) {
case FAILED:
          throw new MojoExecutionException("String_Node_Str",actionResult.getDeploymentException());
case NOT_EXECUTED:
        throw new MojoExecutionException("String_Node_Str",actionResult.getDeploymentException());
case ROLLED_BACK:
      throw new MojoExecutionException("String_Node_Str",actionResult.getDeploymentException());
case CONFIGURATION_MODIFIED_REQUIRES_RESTART:
    getLog().warn("String_Node_Str");
  break;
default :
break;
}
getLog().debug(String.format("String_Node_Str",planResult.getDeploymentPlanId()));
}
}
 else {
getLog().warn(String.format("String_Node_Str",goal(),filename(),plan));
}
}
 catch (Exception e) {
throw new MojoExecutionException(String.format("String_Node_Str",goal(),filename(),e.getMessage()),e);
}
}
Program: 1594
Project: 1594
Buggy source:
public void retrieve(final SimpleStorageData data,final PrivateStorageResponseHandler handler){
  final IQ iq=new IQ(Type.get);
  iq.addQuery(XMLNS).addChild(data);
  session.sendIQ(ID,iq,new IQResponseHandler(){
    @Override public void onIQ(    final IQ iq){
      if (!IQ.isSuccess(iq)) {
        handler.onStorageResponse(new PrivateStorageResponseEvent(iq));
      }
    }
  }
);
}

Fixed version (ground truth):
public void retrieve(final SimpleStorageData data,final PrivateStorageResponseHandler handler){
  final IQ iq=new IQ(Type.get);
  iq.addQuery(XMLNS).addChild(data);
  session.sendIQ(ID,iq,new IQResponseHandler(){
    @Override public void onIQ(    final IQ iq){
      if (IQ.isSuccess(iq)) {
        handler.onStorageResponse(new PrivateStorageResponseEvent(iq));
      }
    }
  }
);
}
Program: 1595
Project: 1595
Buggy source:
@Override public ChatProperties extractProperties(final BasicStanza stanza){
  ChatProperties properties=new ChatProperties(stanza.getFrom());
  boolean messageHasBody=stanza.getFirstChild("String_Node_Str") != NoPacket.INSTANCE;
  String stanzaType=stanza.getAttribute("String_Node_Str");
  boolean isGroupChatMessage=stanzaType != null && stanzaType.equals("String_Node_Str");
  properties.setShouldCreateNewChat(messageHasBody && !isGroupChatMessage);
  return properties;
}

Fixed version (ground truth):
@Override public ChatProperties extractProperties(final BasicStanza stanza){
  ChatProperties properties=new ChatProperties(stanza.getFrom());
  boolean messageHasBody=stanza.getFirstChild("String_Node_Str") != NoPacket.INSTANCE;
  boolean shouldCreate=messageHasBody && !(("String_Node_Str").equals(stanza.getAttribute("String_Node_Str")));
  shouldCreate=shouldCreate && (stanza.getFirstChildInDeep(mucMatcher) == NoPacket.INSTANCE);
  properties.setShouldCreateNewChat(shouldCreate);
  return properties;
}
Program: 1596
Project: 1596
Buggy source:
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  RosterItemChangedEvent event;
  if (old == null) {
    storeItem(item);
    event=new RosterItemChangedEvent(ChangeTypes.added,item);
  }
 else {
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      removeItem(old);
      event=new RosterItemChangedEvent(ChangeTypes.removed,item);
    }
 else {
      updateExistingItem(old,item);
      event=new RosterItemChangedEvent(ChangeTypes.modified,item);
    }
  }
  eventBus.fireEvent(event);
}

Fixed version (ground truth):
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  RosterItemChangedEvent event;
  if (old == null) {
    storeItem(item);
    event=new RosterItemChangedEvent(ChangeTypes.added,item);
  }
 else {
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      removeItem(old);
      event=new RosterItemChangedEvent(ChangeTypes.removed,old);
    }
 else {
      updateExistingItem(old,item);
      event=new RosterItemChangedEvent(ChangeTypes.modified,old);
    }
  }
  eventBus.fireEvent(event);
}
Program: 1597
Project: 1597
Buggy source:
@Override public void onIQ(IQ iq){
  if (IQ.isSuccess(iq)) {
    clearGroupAll();
    final List<? extends IPacket> children=iq.getFirstChild("String_Node_Str").getChildren();
    for (    final IPacket child : children) {
      final RosterItem item=RosterItem.parse(child);
      storeItem(item);
    }
    if (!rosterReady) {
      rosterReady=true;
      session.setSessionState(SessionStates.rosterReady);
    }
    eventBus.fireEvent(new RosterRetrievedEvent(getItems()));
  }
 else {
    eventBus.fireEvent(new RequestFailedEvent("String_Node_Str","String_Node_Str",iq));
  }
}

Fixed version (ground truth):
@Override public void onIQ(IQ iq){
  if (!IQ.isSuccess(iq)) {
    eventBus.fireEvent(new RequestFailedEvent("String_Node_Str","String_Node_Str",iq));
  }
}
Program: 1598
Project: 1598
Buggy source:
public ErrorEvent(String errorType,String description,IPacket stanza){
  this.errorType=errorType;
  this.description=description;
  this.stanza=stanza;
}

Fixed version (ground truth):
public ErrorEvent(String errorType,String description,IPacket stanza){
  this.errorType=errorType;
  this.description=description;
  this.stanza=stanza;
  this.errorStanza=stanza.getFirstChild(ERROR_STANZA_MATCHER);
}
Program: 1599
Project: 1599
Buggy source:
public ErrorEvent(String errorType,String description,IPacket stanza){
  this.errorType=errorType;
  this.description=description;
  this.stanza=stanza;
  this.errorStanza=stanza.getFirstChild(ERROR_STANZA_MATCHER);
}

Fixed version (ground truth):
public ErrorEvent(String errorType,String description,IPacket stanza){
  this.errorType=errorType;
  this.description=description;
  this.stanza=stanza != null ? stanza : NoPacket.INSTANCE;
  this.errorStanza=this.stanza.getFirstChild(ERROR_STANZA_MATCHER);
}
Program: 1600
Project: 1600
Buggy source:
public IPacket getErrorStanza(){
  return errorStanza;
}

Fixed version (ground truth):
/** 
 * The associated error stanza if any
 * @return the error stanza of NoPacket.INSTANCE if none
 * @see http://xmpp.org/rfcs/rfc3920.html#rfc.section.4.7
 */
public IPacket getErrorStanza(){
  return errorStanza;
}
Program: 1601
Project: 1601
Buggy source:
public IPacket getStanza(){
  return stanza;
}

Fixed version (ground truth):
/** 
 * The server side stanza that fired the error event
 * @return never null: NoPacket.INSTANCE if the is a client side error
 */
public IPacket getStanza(){
  return stanza;
}
Program: 1602
Project: 1602
Buggy source:
/** 
 * Know if a item is available or not
 * @return true if contact is available
 */
public boolean isAvailable(){
  return isAvailable;
}

Fixed version (ground truth):
/** 
 * Know if a item is available or not
 * @return true if contact is available
 */
public boolean isAvailable(){
  return !availableResources.isEmpty();
}
Program: 1603
Project: 1603
Buggy source:
/** 
 * Change the current available state of this item. Does NOT have any effect on server side. This method is called by the roster to reflect the state change of the items: usually you don't call this method.
 * @param status the new status
 */
public void setAvailable(final boolean isAvailable){
  this.isAvailable=isAvailable;
}

Fixed version (ground truth):
/** 
 * Change the current available state of this item. Availability is set per resource. If no resource given, this method has no effect. Does NOT have any effect on server side. This method is called by the roster to reflect the state change of the items: usually you don't call this method.
 * @param status the new status
 * @param resource the resource (if any)
 */
public void setAvailable(final boolean isAvailable,String resource){
  if (isAvailable) {
    availableResources.add(resource);
  }
 else {
    availableResources.remove(resource);
  }
}
Program: 1604
Project: 1604
Buggy source:
/** 
 * Create a RosterItem object
 * @param jid the item jabber id
 * @param subscriptionState the subscription state
 * @param name the name in the roster
 * @param ask
 */
public RosterItem(final XmppURI jid,final SubscriptionState subscriptionState,final String name,final Type ask){
  this.ask=ask;
  this.jid=jid.getJID();
  this.subscriptionState=subscriptionState;
  this.name=name;
  groups=new ArrayList<String>();
  show=Show.unknown;
  isAvailable=false;
  status=null;
}

Fixed version (ground truth):
/** 
 * Create a RosterItem object
 * @param jid the item jabber id
 * @param subscriptionState the subscription state
 * @param name the name in the roster
 * @param ask
 */
public RosterItem(final XmppURI jid,final SubscriptionState subscriptionState,final String name,final Type ask){
  this.ask=ask;
  this.jid=jid.getJID();
  this.subscriptionState=subscriptionState;
  this.name=name;
  groups=new ArrayList<String>();
  availableResources=new HashSet<String>();
  show=Show.unknown;
  status=null;
}
Program: 1605
Project: 1605
Buggy source:
private void setPresence(final Presence presence,final RosterItem item){
  final Presence.Type type=presence.getType();
  if (type == Presence.Type.unavailable) {
    item.setAvailable(false);
  }
 else {
    item.setAvailable(true);
  }
  final Show showReceived=presence.getShow();
  item.setShow(showReceived == null ? Show.notSpecified : showReceived);
  item.setStatus(presence.getStatus());
  fireItemChanged(item);
}

Fixed version (ground truth):
private void setPresence(final Presence presence,final RosterItem item){
  final Presence.Type type=presence.getType();
  final String resource=presence.getFrom().getResource();
  if (type == Presence.Type.unavailable) {
    item.setAvailable(false,resource);
  }
 else {
    item.setAvailable(true,resource);
  }
  final Show showReceived=presence.getShow();
  item.setShow(showReceived == null ? Show.notSpecified : showReceived);
  item.setStatus(presence.getStatus());
  fireItemChanged(item);
}
Program: 1606
Project: 1606
Buggy source:
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  if (old == null) {
    storeItem(item);
    fireItemAdded(item);
  }
 else {
    removeItem(old);
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      fireItemRemoved(item);
    }
 else {
      if (subscriptionState == SubscriptionState.to || subscriptionState == SubscriptionState.both) {
        item.setAvailable(old.isAvailable());
        item.setShow(old.getShow());
        item.setStatus(old.getStatus());
      }
      storeItem(item);
      fireItemChanged(item);
    }
  }
}

Fixed version (ground truth):
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  if (old == null) {
    storeItem(item);
    fireItemAdded(item);
  }
 else {
    removeItem(old);
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      fireItemRemoved(item);
    }
 else {
      if (subscriptionState == SubscriptionState.to || subscriptionState == SubscriptionState.both) {
        item.setAvaialableResources(old.getAvailableResources());
        item.setShow(old.getShow());
        item.setStatus(old.getStatus());
      }
      storeItem(item);
      fireItemChanged(item);
    }
  }
}
Program: 1608
Project: 1608
Buggy source:
private void setPresence(final Presence presence,final RosterItem item){
  final Presence.Type type=presence.getType();
  if (type == Presence.Type.unavailable) {
    item.setAvailable(false);
  }
 else {
    item.setAvailable(true);
  }
  final Show showReceived=presence.getShow();
  item.setShow(showReceived == null ? Show.notSpecified : showReceived);
  item.setStatus(presence.getStatus());
  eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.modified,item));
}

Fixed version (ground truth):
private void setPresence(final Presence presence,final RosterItem item){
  final Presence.Type type=presence.getType();
  final String resource=presence.getFrom().getResource();
  if (type == Presence.Type.unavailable) {
    item.setAvailable(false,resource);
  }
 else {
    item.setAvailable(true,resource);
  }
  final Show showReceived=presence.getShow();
  item.setShow(showReceived == null ? Show.notSpecified : showReceived);
  item.setStatus(presence.getStatus());
  eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.modified,item));
}
Program: 1609
Project: 1609
Buggy source:
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  if (old == null) {
    storeItem(item);
    eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.added,item));
  }
 else {
    removeItem(old);
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.removed,item));
    }
 else {
      if (subscriptionState == SubscriptionState.to || subscriptionState == SubscriptionState.both) {
        item.setAvailable(old.isAvailable());
        item.setShow(old.getShow());
        item.setStatus(old.getStatus());
      }
      storeItem(item);
      eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.modified,item));
    }
  }
}

Fixed version (ground truth):
private void handleItemChanged(final RosterItem item){
  final RosterItem old=getItemByJID(item.getJID());
  if (old == null) {
    storeItem(item);
    eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.added,item));
  }
 else {
    removeItem(old);
    final SubscriptionState subscriptionState=item.getSubscriptionState();
    if (subscriptionState == SubscriptionState.remove) {
      eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.removed,item));
    }
 else {
      if (subscriptionState == SubscriptionState.to || subscriptionState == SubscriptionState.both) {
        item.setAvaialableResources(old.getAvailableResources());
        item.setShow(old.getShow());
        item.setStatus(old.getStatus());
      }
      storeItem(item);
      eventBus.fireEvent(new RosterItemChangedEvent(ChangeTypes.modified,item));
    }
  }
}
Program: 1611
Project: 1611
Buggy source:
public void setText(final String value){
  children.clear();
  children.add(new TextPacket(TextUtils.escape(value)));
}

Fixed version (ground truth):
public void setText(final String value){
  children.clear();
  if (value != null) {
    children.add(new TextPacket(TextUtils.escape(value)));
  }
}
Program: 1612
Project: 1612
Buggy source:
public void setText(final String text){
  final String escaped=TextUtils.escape(text);
  final NodeList nodes=element.getChildNodes();
  for (int index=0; index < nodes.getLength(); index++) {
    final Node child=nodes.item(index);
    if (child.getNodeType() == Node.TEXT_NODE) {
      element.removeChild(child);
    }
  }
  element.appendChild(element.getOwnerDocument().createTextNode(escaped));
}

Fixed version (ground truth):
public void setText(final String text){
  final NodeList nodes=element.getChildNodes();
  for (int index=0; index < nodes.getLength(); index++) {
    final Node child=nodes.item(index);
    if (child.getNodeType() == Node.TEXT_NODE) {
      element.removeChild(child);
    }
  }
  if (text != null) {
    element.appendChild(element.getOwnerDocument().createTextNode(TextUtils.escape(text)));
  }
}
Program: 1613
Project: 1613
Buggy source:
public Credentials(final XmppURI uri,final String encodedPassword,final String encodingMethod){
  if (uri == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.uri=uri;
  this.encodedPassword=encodedPassword;
  this.encodingMethod=encodingMethod;
}

Fixed version (ground truth):
public Credentials(final XmppURI uri,final String encodedPassword,final String encodingMethod){
  if (uri == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (uri.getResource() == null) {
    this.uri=XmppURI.uri(uri.getNode(),uri.getHost(),"String_Node_Str" + System.currentTimeMillis());
  }
 else {
    this.uri=uri;
  }
  this.encodedPassword=encodedPassword;
  this.encodingMethod=encodingMethod;
}
Program: 1614
Project: 1614
Buggy source:
public static void setFactory(Factory factory){
  EventBusFactory.factory=factory;
}

Fixed version (ground truth):
/** 
 * Changes the event bus factory
 * @param factory
 */
public static void setFactory(Factory factory){
  EventBusFactory.factory=factory;
}
Program: 1615
Project: 1615
Buggy source:
@Override public EmiteEventBus create(String eventBusName){
  return new GwtEmiteEventBus(eventBusName);
}

Fixed version (ground truth):
/** 
 * Create an event bus with the given name
 * @param eventBusName the bus name: using for logging
 * @return a new event bus
 */
public static EmiteEventBus create(String eventBusName){
  return EventBusFactory.factory.create(eventBusName);
}
Program: 1616
Project: 1616
Buggy source:
/** 
 * Will try to login session if PARAM_JID and PARAM_PASSWORD are present. <br/> PARAM_PASSWORD is optional if PARAM_JID value is set to 'anonymous'
 * @param session the session to be logged in
 * @return true if meta parameters value are presents, false otherwise
 */
public static final boolean loginFromMeta(final Session session){
  final String userJID=getMeta(PARAM_JID);
  final String password=getMeta(PARAM_PASSWORD);
  if (password != null && userJID != null) {
    final XmppURI jid=uri(userJID);
    session.login(jid,password);
    return true;
  }
 else   if (userJID != null && "String_Node_Str".equals(userJID.toLowerCase())) {
    session.login(Session.ANONYMOUS,null);
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
/** 
 * Will try to login session if PARAM_JID and PARAM_PASSWORD are present. <br/> PARAM_PASSWORD is optional if PARAM_JID value is set to 'anonymous'
 * @param session the session to be logged in
 * @return true if meta parameters value are presents, false otherwise
 */
public static final boolean loginFromMeta(final Session session){
  final String userJID=getMeta(PARAM_JID);
  final String password=getMeta(PARAM_PASSWORD);
  String encodingMethod=getMeta(PARAM_PASSWORD_ENCODING);
  encodingMethod=encodingMethod != null ? encodingMethod : Credentials.ENCODING_NONE;
  if (password != null && userJID != null) {
    final XmppURI jid=uri(userJID);
    session.login(new Credentials(jid,password,encodingMethod));
    return true;
  }
 else   if (userJID != null && "String_Node_Str".equals(userJID.toLowerCase())) {
    session.login(Credentials.createAnonymous());
    return true;
  }
 else {
    return false;
  }
}
Program: 1618
Project: 1618
Buggy source:
public void setState(final State state){
  this.state=state;
  this.password=null;
}

Fixed version (ground truth):
public void setState(final State state){
  this.state=state;
}
Program: 1619
Project: 1619
Buggy source:
/** 
 * Testing purposes only! Not state logic!
 */
public AuthorizationTransaction(final XmppURI uri,final String password,final State state){
  this(uri,password);
  this.state=state;
}

Fixed version (ground truth):
public AuthorizationTransaction(final Credentials credentials){
  this.credentials=credentials;
}
Program: 1620
Project: 1620
Buggy source:
public SASLManager(final Connection connection){
  this.connection=connection;
  onAuthorized=new Event<AuthorizationTransaction>("String_Node_Str");
  install();
}

Fixed version (ground truth):
public SASLManager(final Connection connection,final DecoderRegistry decoders){
  this.connection=connection;
  this.decoders=decoders;
  onAuthorized=new Event<AuthorizationTransaction>("String_Node_Str");
  install();
}
Program: 1621
Project: 1621
Buggy source:
private boolean isAnonymous(final AuthorizationTransaction authorizationTransaction){
  return authorizationTransaction.uri == SASLManager.ANONYMOUS;
}

Fixed version (ground truth):
private boolean isAnonymous(final AuthorizationTransaction authorizationTransaction){
  return authorizationTransaction.getCredentials().isAnoymous();
}
Program: 1622
Project: 1622
Buggy source:
private IPacket createPlainAuthorization(final AuthorizationTransaction authorizationTransaction){
  final IPacket auth=new Packet("String_Node_Str",XMLNS).With("String_Node_Str","String_Node_Str");
  final String encoded=encode(authorizationTransaction.uri.getHost(),authorizationTransaction.uri.getNode(),authorizationTransaction.getPassword());
  auth.setText(encoded);
  return auth;
}

Fixed version (ground truth):
private IPacket createPlainAuthorization(final AuthorizationTransaction authorizationTransaction){
  final IPacket auth=new Packet("String_Node_Str",XMLNS).With("String_Node_Str","String_Node_Str");
  final Credentials credentials=authorizationTransaction.getCredentials();
  GWT.log("String_Node_Str" + credentials.getEncodingMethod());
  final PasswordDecoder decoder=decoders.getDecoder(credentials.getEncodingMethod());
  if (decoder == null) {
    throw new RuntimeException("String_Node_Str" + credentials.getEncodingMethod() + "String_Node_Str"+ Credentials.ENCODING_BASE64);
  }
  final String decodedPassword=decoder.decode(credentials.getEncodingMethod(),credentials.getEncodedPassword());
  GWT.log("String_Node_Str" + decodedPassword);
  final String encoded=encodeForPlainMethod(credentials.getXmppUri().getHost(),credentials.getXmppUri().getNode(),decodedPassword);
  auth.setText(encoded);
  return auth;
}
Program: 1623
Project: 1623
Buggy source:
protected void fireMessage(Message message){
  onMessage.fire(message);
}

Fixed version (ground truth):
protected void fireMessage(final Message message){
  onMessage.fire(message);
}
Program: 1624
Project: 1624
Buggy source:
protected void fireIQ(IQ iq){
  onIQ.fire(iq);
}

Fixed version (ground truth):
protected void fireIQ(final IQ iq){
  onIQ.fire(iq);
}
Program: 1625
Project: 1625
Buggy source:
protected void setState(State state){
  this.state=state;
  onStateChanged.fire(this);
}

Fixed version (ground truth):
protected void setState(final State state){
  this.state=state;
  onStateChanged.fire(this);
}
Program: 1626
Project: 1626
Buggy source:
protected void firePresence(Presence presence){
  onPresence.fire(presence);
}

Fixed version (ground truth):
protected void firePresence(final Presence presence){
  onPresence.fire(presence);
}
Program: 1627
Project: 1627
Buggy source:
public AbstractSession(){
  this.onStateChanged=new Event<Session>("String_Node_Str");
  this.onPresence=new Event<Presence>("String_Node_Str");
  this.onMessage=new Event<Message>("String_Node_Str");
  this.onIQ=new Event<IQ>("String_Node_Str");
  state=State.disconnected;
}

Fixed version (ground truth):
public AbstractSession(){
  onStateChanged=new Event<Session>("String_Node_Str");
  onPresence=new Event<Presence>("String_Node_Str");
  onMessage=new Event<Message>("String_Node_Str");
  onIQ=new Event<IQ>("String_Node_Str");
  state=State.disconnected;
}
Program: 1629
Project: 1629
Buggy source:
public void setShow(final Show value){
  setTextToChild("String_Node_Str",(value != null && (value != Show.notSpecified || value != Show.unknown)) ? value.toString() : null);
}

Fixed version (ground truth):
public void setShow(final Show value){
  setTextToChild("String_Node_Str",value != null && value != Show.notSpecified && value != Show.unknown ? value.toString() : null);
}
Program: 1630
Project: 1630
Buggy source:
@Test public void shouldSetShow(){
  final Presence presence=new Presence();
  for (  final Show value : Show.values()) {
    presence.setShow(value);
    assertSame(value,presence.getShow());
  }
}

Fixed version (ground truth):
@Test public void shouldSetShow(){
  final Presence presence=new Presence();
  for (  final Show value : Show.values()) {
    presence.setShow(value);
    if (value == Show.unknown) {
      assertSame(Show.notSpecified,presence.getShow());
    }
 else {
      assertSame(value,presence.getShow());
    }
  }
}
Program: 1631
Project: 1631
Buggy source:
public static void send(final String httpBase,final String request,final ConnectorCallback listener) throws ConnectorException {
  GWT.log(("String_Node_Str" + request),null);
  final RequestBuilder builder=new RequestBuilder(RequestBuilder.POST,httpBase);
  try {
    Request req=builder.sendRequest(request,new RequestCallback(){
      public void onError(      final Request req,      final Throwable throwable){
        GWT.log(("String_Node_Str" + throwable),null);
        activeRequests.remove(req);
        listener.onError(request,throwable);
      }
      public void onResponseReceived(      final Request req,      final Response res){
        GWT.log(("String_Node_Str" + res.getText()),null);
        activeRequests.remove(req);
        listener.onResponseReceived(res.getStatusCode(),res.getText(),request);
      }
    }
);
    activeRequests.add(req);
  }
 catch (  final RequestException e) {
    throw new ConnectorException(e.getMessage());
  }
catch (  final Exception e) {
    GWT.log(("String_Node_Str" + e),null);
    throw new ConnectorException(e.getMessage());
  }
}

Fixed version (ground truth):
public static void send(final String httpBase,final String request,final ConnectorCallback listener) throws ConnectorException {
  GWT.log(("String_Node_Str" + request),null);
  final RequestBuilder builder=new RequestBuilder(RequestBuilder.POST,httpBase);
  builder.setHeader("String_Node_Str","String_Node_Str");
  try {
    Request req=builder.sendRequest(request,new RequestCallback(){
      public void onError(      final Request req,      final Throwable throwable){
        GWT.log(("String_Node_Str" + throwable),null);
        activeRequests.remove(req);
        listener.onError(request,throwable);
      }
      public void onResponseReceived(      final Request req,      final Response res){
        GWT.log(("String_Node_Str" + res.getText()),null);
        activeRequests.remove(req);
        listener.onResponseReceived(res.getStatusCode(),res.getText(),request);
      }
    }
);
    activeRequests.add(req);
  }
 catch (  final RequestException e) {
    throw new ConnectorException(e.getMessage());
  }
catch (  final Exception e) {
    GWT.log(("String_Node_Str" + e),null);
    throw new ConnectorException(e.getMessage());
  }
}
Program: 1632
Project: 1632
Buggy source:
public void onModuleLoad(){
  Suco.install(this);
  if (!PageAssist.isMetaTrue("String_Node_Str")) {
    Suco.get(AutoConfig.class);
  }
}

Fixed version (ground truth):
public void onModuleLoad(){
  Suco.install(this);
  if (PageAssist.isMetaTrue("String_Node_Str")) {
    Suco.get(AutoConfig.class);
  }
}
Program: 1633
Project: 1633
Buggy source:
@Override public void search(final HashMap<String,String> query,final ResultListener<List<SearchResultItem>> listener){
  final List<IPacket> queryPacket=new ArrayList<IPacket>();
  for (  final String field : query.keySet()) {
    final Packet child=new Packet(field);
    child.setText(query.get(field));
    queryPacket.add(child);
  }
  searchGeneric(queryPacket,new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket received){
      final IQ response=new IQ(received);
      if (IQ.isSuccess(response)) {
        listener.onSuccess(processResults(session.getCurrentUser(),response.getFirstChild(filterQuery)));
      }
 else {
        listener.onFailure(null);
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void search(final HashMap<String,String> query,final ResultListener<List<SearchResultItem>> listener){
  final List<IPacket> queryPacket=new ArrayList<IPacket>();
  for (  final String field : query.keySet()) {
    final Packet child=new Packet(field);
    child.setText(query.get(field));
    queryPacket.add(child);
  }
  searchGeneric(IQ.Type.get,queryPacket,new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket received){
      final IQ response=new IQ(received);
      if (IQ.isSuccess(response)) {
        listener.onSuccess(processResults(session.getCurrentUser(),response.getFirstChild(filterQuery)));
      }
 else {
        listener.onFailure(null);
      }
    }
  }
);
}
Program: 1634
Project: 1634
Buggy source:
public SearchManagerImpl(final Session session){
  this.session=session;
  this.filterQuery=MatcherFactory.byNameAndXMLNS("String_Node_Str",IQ_SEARCH);
}

Fixed version (ground truth):
public SearchManagerImpl(final Session session){
  this.session=session;
  filterQuery=MatcherFactory.byNameAndXMLNS("String_Node_Str",IQ_SEARCH);
}
Program: 1635
Project: 1635
Buggy source:
private void searchGeneric(final List<IPacket> queryChilds,final Listener<IPacket> onResult){
  if (session.getState() == State.ready) {
    final IQ iq=new IQ(Type.set,host).From(session.getCurrentUser()).With(XML_LANG,"String_Node_Str");
    final IPacket queryPacket=iq.addQuery(IQ_SEARCH);
    for (    final IPacket child : queryChilds) {
      queryPacket.addChild(child);
    }
    session.sendIQ(SEARCH_CATEGORY,iq,new Listener<IPacket>(){
      public void onEvent(      final IPacket received){
        onResult.onEvent(received);
      }
    }
);
  }
 else {
    throw new RuntimeException(SHOULD_BE_CONNECTED);
  }
}

Fixed version (ground truth):
private void searchGeneric(final IQ.Type type,final List<IPacket> queryChilds,final Listener<IPacket> onResult){
  if (session.getState() == State.ready) {
    final IQ iq=new IQ(type,host).From(session.getCurrentUser()).With(XML_LANG,"String_Node_Str");
    final IPacket queryPacket=iq.addQuery(IQ_SEARCH);
    for (    final IPacket child : queryChilds) {
      queryPacket.addChild(child);
    }
    session.sendIQ(SEARCH_CATEGORY,iq,new Listener<IPacket>(){
      public void onEvent(      final IPacket received){
        onResult.onEvent(received);
      }
    }
);
  }
 else {
    throw new RuntimeException(SHOULD_BE_CONNECTED);
  }
}
Program: 1636
Project: 1636
Buggy source:
/** 
 * Generates a new signature key pair. Uses up to <code>B+1</code> threads if multiple processors are available.
 * @return a key pair
 */
public SignatureKeyPair generateKeyPair(){
  int processors=Runtime.getRuntime().availableProcessors();
  SignaturePrivateKey priv=new SignaturePrivateKey();
  if (processors == 1)   for (int k=params.B; k >= 0; k--)   priv.add(generateBoundedBasis());
 else {
    List<Future<Basis>> bases=new ArrayList<Future<Basis>>();
    int numThreads=Math.min(params.B,processors - 1);
    if (numThreads > 0) {
      ExecutorService executor=Executors.newFixedThreadPool(numThreads);
      for (int k=params.B - 1; k >= 0; k--)       bases.add(executor.submit(new BasisGenerationTask()));
      executor.shutdown();
    }
    Basis basis0=generateBoundedBasis();
    priv.add(basis0);
    for (    Future<Basis> basis : bases)     try {
      priv.add(basis.get());
    }
 catch (    Exception e) {
      throw new NtruException(e);
    }
  }
  SignaturePublicKey pub=new SignaturePublicKey(priv.getBasis(0).h,params);
  SignatureKeyPair kp=new SignatureKeyPair(priv,pub);
  return kp;
}

Fixed version (ground truth):
/** 
 * Generates a new signature key pair. Uses up to <code>B+1</code> threads if multiple processors are available.
 * @return a key pair
 */
public SignatureKeyPair generateKeyPair(){
  int processors=Runtime.getRuntime().availableProcessors();
  SignaturePrivateKey priv=new SignaturePrivateKey();
  if (processors == 1)   for (int k=params.B; k >= 0; k--)   priv.add(generateBoundedBasis());
 else {
    List<Future<Basis>> bases=new ArrayList<Future<Basis>>();
    int numThreads=Math.min(params.B,processors - 1);
    if (numThreads > 0) {
      ExecutorService executor=Executors.newFixedThreadPool(numThreads);
      for (int k=params.B - 1; k >= 0; k--)       bases.add(executor.submit(new BasisGenerationTask()));
      executor.shutdown();
    }
    Basis basis0=generateBoundedBasis();
    for (    Future<Basis> basis : bases)     try {
      priv.add(basis.get());
    }
 catch (    Exception e) {
      throw new NtruException(e);
    }
    priv.add(basis0);
  }
  SignaturePublicKey pub=new SignaturePublicKey(priv.getBasis(params.B).h,params);
  SignatureKeyPair kp=new SignatureKeyPair(priv,pub);
  return kp;
}
Program: 1643
Project: 1643
Buggy source:
@Test public void testGetWithNoProvider() throws Exception {
  Object safe=new String();
  Assert.assertSame(safe,this.mocker.getComponentUnderTest().get(safe));
}

Fixed version (ground truth):
@Test public void testGetWithNoProvider() throws Exception {
  Object safe="String_Node_Str";
  Assert.assertSame(safe,this.mocker.getComponentUnderTest().get(safe));
}
Program: 1644
Project: 1644
Buggy source:
@Override public void characters(char[] ch,int start,int length) throws SAXException {
  int offset=this.lowerBound - this.counter;
  if (offset > 0) {
    if (offset > length) {
      this.counter+=length;
      return;
    }
 else {
      this.counter=this.lowerBound;
      openTags();
      characters(ch,start + offset,length - offset);
      return;
    }
  }
  int remainingLength=this.upperBound - this.counter;
  if (remainingLength <= length) {
    String content=new String(ch,start,remainingLength);
    int spaceIndex=remainingLength;
    if (length > remainingLength && ch[start + remainingLength] != ' ') {
      spaceIndex=content.lastIndexOf(' ');
    }
    if (spaceIndex >= 0) {
      this.counter+=spaceIndex;
      this.result.append(content.substring(0,spaceIndex));
    }
 else {
      this.counter=this.upperBound;
      this.result.append(content);
    }
    endDocument();
    throw new SAXException("String_Node_Str");
  }
 else {
    this.counter+=length;
    this.result.append(ch,start,length);
  }
}

Fixed version (ground truth):
@Override public void characters(char[] ch,int start,int length) throws SAXException {
  int offset=this.lowerBound - this.counter;
  if (offset > 0) {
    if (offset > length) {
      this.counter+=length;
      return;
    }
 else {
      this.counter=this.lowerBound;
      openTags();
      characters(ch,start + offset,length - offset);
      return;
    }
  }
  int remainingLength=this.upperBound - this.counter;
  if (remainingLength <= length) {
    String content=String.valueOf(ch,start,remainingLength);
    int spaceIndex=remainingLength;
    if (length > remainingLength && ch[start + remainingLength] != ' ') {
      spaceIndex=content.lastIndexOf(' ');
    }
    if (spaceIndex >= 0) {
      this.counter+=spaceIndex;
      this.result.append(content.substring(0,spaceIndex));
    }
 else {
      this.counter=this.upperBound;
      this.result.append(content);
    }
    endDocument();
    throw new SAXException("String_Node_Str");
  }
 else {
    this.counter+=length;
    this.result.append(ch,start,length);
  }
}
Program: 1645
Project: 1645
Buggy source:
@Override public void characters(char[] ch,int start,int length){
  Node currentNode=this.nodes.peek();
  if (currentNode != this.document) {
    final String text=new String(ch,start,length);
    currentNode.appendChild(this.document.createTextNode(text));
  }
}

Fixed version (ground truth):
@Override public void characters(char[] ch,int start,int length){
  Node currentNode=this.nodes.peek();
  if (currentNode != this.document) {
    final String text=String.valueOf(ch,start,length);
    currentNode.appendChild(this.document.createTextNode(text));
  }
}
Program: 1646
Project: 1646
Buggy source:
@Override public void comment(char[] ch,int start,int length){
  Comment comment=this.document.createComment(new String(ch,start,length));
  if (comment != null) {
    this.nodes.peek().appendChild(comment);
  }
}

Fixed version (ground truth):
@Override public void comment(char[] ch,int start,int length){
  Comment comment=this.document.createComment(String.valueOf(ch,start,length));
  if (comment != null) {
    this.nodes.peek().appendChild(comment);
  }
}
Program: 1647
Project: 1647
Buggy source:
/** 
 * Create the XAR by zipping the resource files.
 * @throws Exception if the zipping failed for some reason
 */
private void performArchive() throws Exception {
  File sourceDir=new File(this.project.getBuild().getOutputDirectory());
  if (sourceDir.listFiles() == null) {
    throw new Exception(String.format("String_Node_Str",sourceDir));
  }
  File xarFile=new File(this.project.getBuild().getDirectory(),this.project.getArtifactId() + "String_Node_Str");
  ZipArchiver archiver=new ZipArchiver();
  archiver.setEncoding(this.encoding);
  archiver.setDestFile(xarFile);
  archiver.setIncludeEmptyDirs(false);
  archiver.setCompress(true);
  if (this.includeDependencies) {
    unpackDependentXARs();
  }
  performTransformations();
  File resourcesDir=getResourcesDirectory();
  FilenameFilter packageXmlFiler=new FilenameFilter(){
    @Override public boolean accept(    File dir,    String name){
      return (name.equals(PACKAGE_XML));
    }
  }
;
  String[] fileNames=resourcesDir.list(packageXmlFiler);
  if (fileNames != null) {
    if (!resourcesDir.exists() || fileNames.length == 0) {
      addFilesToArchive(archiver,sourceDir);
    }
 else {
      File packageXml=new File(resourcesDir,PACKAGE_XML);
      addFilesToArchive(archiver,sourceDir,packageXml);
    }
  }
 else {
    throw new MojoExecutionException(String.format("String_Node_Str",resourcesDir));
  }
  archiver.createArchive();
  this.project.getArtifact().setFile(xarFile);
}

Fixed version (ground truth):
/** 
 * Create the XAR by zipping the resource files.
 * @throws Exception if the zipping failed for some reason
 */
private void performArchive() throws Exception {
  File sourceDir=new File(this.project.getBuild().getOutputDirectory());
  if (sourceDir.listFiles() == null) {
    throw new Exception(String.format("String_Node_Str",sourceDir));
  }
  File xarFile=new File(this.project.getBuild().getDirectory(),this.project.getArtifactId() + "String_Node_Str");
  ZipArchiver archiver=new ZipArchiver();
  archiver.setEncoding(this.encoding);
  archiver.setDestFile(xarFile);
  archiver.setIncludeEmptyDirs(false);
  archiver.setCompress(true);
  if (this.includeDependencies) {
    unpackDependentXARs();
  }
  performTransformations();
  File resourcesDir=getResourcesDirectory();
  if (!hasPackageXmlFile(resourcesDir)) {
    addFilesToArchive(archiver,sourceDir);
  }
 else {
    File packageXml=new File(resourcesDir,PACKAGE_XML);
    addFilesToArchive(archiver,sourceDir,packageXml);
  }
  archiver.createArchive();
  this.project.getArtifact().setFile(xarFile);
}
Program: 1648
Project: 1648
Buggy source:
@Test public void testMd5SignatureVerification() throws Exception {
  test(mockerMD5);
}

Fixed version (ground truth):
@Test public void testMd5SignatureVerification() throws Exception {
  runTest(mockerMD5);
}
Program: 1649
Project: 1649
Buggy source:
@Test public void testPssSignatureVerification() throws Exception {
  test(mockerPss);
}

Fixed version (ground truth):
@Test public void testPssSignatureVerification() throws Exception {
  runTest(mockerPss);
}
Program: 1650
Project: 1650
Buggy source:
@Test public void testSha1SignatureVerification() throws Exception {
  test(mockerSha1);
}

Fixed version (ground truth):
@Test public void testSha1SignatureVerification() throws Exception {
  runTest(mockerSha1);
}
Program: 1651
Project: 1651
Buggy source:
@Test public void testSha512SignatureVerification() throws Exception {
  test(mockerSha512);
}

Fixed version (ground truth):
@Test public void testSha512SignatureVerification() throws Exception {
  runTest(mockerSha512);
}
Program: 1652
Project: 1652
Buggy source:
@Test public void testSha224SignatureVerification() throws Exception {
  test(mockerSha224);
}

Fixed version (ground truth):
@Test public void testSha224SignatureVerification() throws Exception {
  runTest(mockerSha224);
}
Program: 1653
Project: 1653
Buggy source:
@Test public void testSha384SignatureVerification() throws Exception {
  test(mockerSha384);
}

Fixed version (ground truth):
@Test public void testSha384SignatureVerification() throws Exception {
  runTest(mockerSha384);
}
Program: 1654
Project: 1654
Buggy source:
@Test public void testSha256SignatureVerification() throws Exception {
  test(mockerSha256);
}

Fixed version (ground truth):
@Test public void testSha256SignatureVerification() throws Exception {
  runTest(mockerSha256);
}
Program: 1655
Project: 1655
Buggy source:
@Test public void testPBES2ConformanceTestDesEde3() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  testPBES2Conformance("String_Node_Str","String_Node_Str",-1,"String_Node_Str",data);
}

Fixed version (ground truth):
@Test public void testPBES2ConformanceTestDesEde3() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  runTestPBES2Conformance("String_Node_Str","String_Node_Str",-1,"String_Node_Str",data);
}
Program: 1656
Project: 1656
Buggy source:
@Test public void testPBES2ConformanceTestDes() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  testPBES2Conformance("String_Node_Str","String_Node_Str",-1,"String_Node_Str",data);
}

Fixed version (ground truth):
@Test public void testPBES2ConformanceTestDes() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  runTestPBES2Conformance("String_Node_Str","String_Node_Str",-1,"String_Node_Str",data);
}
Program: 1657
Project: 1657
Buggy source:
@Test public void testPBES2ConformanceTestRC2() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  testPBES2Conformance("String_Node_Str","String_Node_Str",16,"String_Node_Str",data);
}

Fixed version (ground truth):
@Test public void testPBES2ConformanceTestRC2() throws Exception {
  byte[] data=Base64.decode("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  runTestPBES2Conformance("String_Node_Str","String_Node_Str",16,"String_Node_Str",data);
}