nus-yam/ex-repair huggingface dataset:
Program: 175486
Project: 175486
Buggy source:
/** 
 * @return  a String representation of this Pair in the form (first, second).
 */
@Override public String toString(){
  return "String_Node_Str" + first + "String_Node_Str"+ second+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Pair.
 * @return  a String representation of this Pair in the form (first, second)
 */
@Override public String toString(){
  return "String_Node_Str" + first + "String_Node_Str"+ second+ "String_Node_Str";
}
Program: 175487
Project: 175487
Buggy source:
/** 
 * @return  the textual representation of this Word.
 */
public String getText(){
  return text;
}

Fixed version (ground truth):
/** 
 * Gets the text of this Word.
 * @return  the textual representation of this Word
 */
public String getText(){
  return text;
}
Program: 175488
Project: 175488
Buggy source:
/** 
 * @return  the Set of the meanings of this Word.
 * @see com.github.bot.curiosone.core.nlp.Meaning The Meaning Class
 */
public Set<Meaning> getMeanings(){
  return means;
}

Fixed version (ground truth):
/** 
 * Gets all the Meanings of this Word.
 * @return  the Set of the meanings of this Word
 * @see com.github.bot.curiosone.core.nlp.Meaning The Meaning Class
 */
public Set<Meaning> getMeanings(){
  return means;
}
Program: 175489
Project: 175489
Buggy source:
/** 
 * @return  a String representation of this Word in the form [text, word, meanings].
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ lemma+ "String_Node_Str"+ "String_Node_Str"+ means+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Word.
 * @return  a String representation of this Word in the form [text, word, meanings]
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ lemma+ "String_Node_Str"+ "String_Node_Str"+ means+ "String_Node_Str";
}
Program: 175490
Project: 175490
Buggy source:
/** 
 * @return  the lemma of this Word.
 */
public String getLemma(){
  return lemma;
}

Fixed version (ground truth):
/** 
 * Gets the lemma of this Word.
 * @return  the lemma of this Word
 */
public String getLemma(){
  return lemma;
}
Program: 175491
Project: 175491
Buggy source:
/** 
 * @return  the instance of the spelling dictionary.
 */
public static Spelling getInstance(){
  if (instance != null) {
    return instance;
  }
  instance=new Spelling();
  return instance;
}

Fixed version (ground truth):
/** 
 * Gets the Singleton instance.
 * @return  the instance of the spelling dictionary
 */
public static Spelling getInstance(){
  if (instance != null) {
    return instance;
  }
  instance=new Spelling();
  return instance;
}
Program: 175492
Project: 175492
Buggy source:
/** 
 * @return  a Pair of POS values that match with that in 'from'.
 */
public Pair<POS,POS> getTo(){
  return to;
}

Fixed version (ground truth):
/** 
 * Gets the target POS values of this Rule.
 * @return  a Pair instance, containing the target POS values of this Rule
 */
public Pair<POS,POS> getTo(){
  return to;
}
Program: 175493
Project: 175493
Buggy source:
/** 
 * @return  a String representation of this Rule in the form F: (T0, T1).
 */
@Override public String toString(){
  return from + "String_Node_Str" + to;
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Rule.
 * @return  a String representation of this Rule in the form F: (T0, T1)
 */
@Override public String toString(){
  return from + "String_Node_Str" + to;
}
Program: 175494
Project: 175494
Buggy source:
/** 
 * @return  the resulting POS value of joining those in 'to'.
 */
public POS getFrom(){
  return from;
}

Fixed version (ground truth):
/** 
 * Gets the source POS of this Rule.
 * @return  the source POS of this Rule
 */
public POS getFrom(){
  return from;
}
Program: 175495
Project: 175495
Buggy source:
/** 
 * @return  the content of the computed answer.
 */
public String getMessage(){
  return text;
}

Fixed version (ground truth):
/** 
 * Gets the content of the computed answer.
 * @return  the content of the computed answer
 */
public String getMessage(){
  return text;
}
Program: 175496
Project: 175496
Buggy source:
/** 
 * @return  a String representation of this BrainResponse.
 */
@Override public String toString(){
  return text + "String_Node_Str" + scope+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this BrainResponse.
 * @return  a String representation of this BrainResponse
 */
@Override public String toString(){
  return text + "String_Node_Str" + scope+ "String_Node_Str";
}
Program: 175497
Project: 175497
Buggy source:
/** 
 * @return  the scope of the computed answer.
 */
public String getScope(){
  return scope;
}

Fixed version (ground truth):
/** 
 * Gets the scope of the computed answer.
 * @return  the scope of the computed answer
 */
public String getScope(){
  return scope;
}
Program: 175498
Project: 175498
Buggy source:
/** 
 * @return  the target Vertex of this SemanticRelation.
 */
@Override public Vertex getTarget(){
  return destinazione;
}

Fixed version (ground truth):
/** 
 * Gets the target Vertex of this SemanticRelation.
 * @return  the target Vertex of this SemanticRelation
 */
@Override public Vertex getTarget(){
  return destinazione;
}
Program: 175499
Project: 175499
Buggy source:
/** 
 * @return  the SemanticRelationType of this SemanticRelation.
 */
@Override public SemanticRelationType getType(){
  return collegamento;
}

Fixed version (ground truth):
/** 
 * Gets the SemanticRelationType of this SemanticRelation.
 * @return  the SemanticRelationType of this SemanticRelation
 */
@Override public SemanticRelationType getType(){
  return collegamento;
}
Program: 175500
Project: 175500
Buggy source:
/** 
 * @return  the source Vertex of this SemanticRelation.
 */
@Override public Vertex getSource(){
  return sorgente;
}

Fixed version (ground truth):
/** 
 * Gets the source Vertex of this SemanticRelation Relation.
 * @return  the source Vertex of this SemanticRelation
 */
@Override public Vertex getSource(){
  return sorgente;
}
Program: 175501
Project: 175501
Buggy source:
/** 
 * @return  the weight of this SemanticRelation.
 */
@Override public Integer getWeight(){
  return weight;
}

Fixed version (ground truth):
/** 
 * Gets the weight of this SemanticRelation.
 * @return  the weight of this SemanticRelation
 */
@Override public Integer getWeight(){
  return weight;
}
Program: 175502
Project: 175502
Buggy source:
/** 
 * @return  a String representation of this SemanticRelation.
 */
@Override public String toString(){
  return sorgente.getId() + "String_Node_Str" + collegamento+ "String_Node_Str"+ destinazione.getId()+ "String_Node_Str"+ weight+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this SemanticRelation.
 * @return  a String representation of this SemanticRelation
 */
@Override public String toString(){
  return sorgente.getId() + "String_Node_Str" + collegamento+ "String_Node_Str"+ destinazione.getId()+ "String_Node_Str"+ weight+ "String_Node_Str";
}
Program: 175503
Project: 175503
Buggy source:
/** 
 * @return  the concatenation of the words of this token.
 */
public String getText(){
  return text;
}

Fixed version (ground truth):
/** 
 * Gets the text of this Token.
 * @return  the text of this Token
 */
public String getText(){
  return text;
}
Program: 175504
Project: 175504
Buggy source:
/** 
 * @return  {@code true} if this Token has at leas a Meaning;{@code false} otherwise.
 */
public boolean isKnown(){
  return known;
}

Fixed version (ground truth):
/** 
 * Gets whether this Token is known or not.
 * @return  {@code true} if this Token has at leas a Meaning;{@code false} otherwise
 */
public boolean isKnown(){
  return known;
}
Program: 175505
Project: 175505
Buggy source:
/** 
 * @return  a Set containing all the meanings of this Token.
 * @see com.github.bot.curiosone.core.nlp.Meaning The Meaning Class
 */
public Set<Meaning> getMeanings(){
  return means;
}

Fixed version (ground truth):
/** 
 * Gets all the Meanings of this Token.
 * @return  a Set containing all the meanings of this Token
 * @see com.github.bot.curiosone.core.nlp.Meaning The Meaning Class
 */
public Set<Meaning> getMeanings(){
  return means;
}
Program: 175506
Project: 175506
Buggy source:
/** 
 * @return  a String representation of this Token, formatted as: [text, word, meanings].
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ means+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Token.
 * @return  a String representation of this Token, formatted as: [text, word, meanings]
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ means+ "String_Node_Str";
}
Program: 175507
Project: 175507
Buggy source:
/** 
 * @return  the normalized concatenation of the words of this token.
 */
public String getLemma(){
  return lemma;
}

Fixed version (ground truth):
/** 
 * Gets the normalized concatenation of the words of this token.
 * @return  the normalized concatenation of the words of this token
 */
public String getLemma(){
  return lemma;
}
Program: 175508
Project: 175508
Buggy source:
/** 
 * @return  the min endpoint of this Interval.
 */
public int min(){
  return min;
}

Fixed version (ground truth):
/** 
 * Gets the minumum endpoint of this Interval.
 * @return  the minumum endpoint of this Interval
 */
public int min(){
  return min;
}
Program: 175509
Project: 175509
Buggy source:
/** 
 * @return  the max endpoint of this Interval.
 */
public int max(){
  return max;
}

Fixed version (ground truth):
/** 
 * Gets the maximum endpoint of this Interval.
 * @return  the maximum endpoint of this Interval
 */
public int max(){
  return max;
}
Program: 175510
Project: 175510
Buggy source:
/** 
 * @return  the length of this Interval.
 */
public double length(){
  return max - min;
}

Fixed version (ground truth):
/** 
 * Calculates the length of this Interval.
 * @return  the length of this Interval
 */
public double length(){
  return max - min;
}
Program: 175511
Project: 175511
Buggy source:
/** 
 * @return  a String representation of this interval in the form [min, max].
 */
@Override public String toString(){
  return "String_Node_Str" + min + "String_Node_Str"+ max+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Interval.
 * @return  a String representation of this interval in the form [min, max]
 */
@Override public String toString(){
  return "String_Node_Str" + min + "String_Node_Str"+ max+ "String_Node_Str";
}
Program: 175512
Project: 175512
Buggy source:
/** 
 * @return  the Singleton instance.
 */
public static DictionaryLoader getInstance(){
  if (instance == null) {
    instance=new DictionaryLoader();
  }
  return instance;
}

Fixed version (ground truth):
/** 
 * Gets the Singleton instance.
 * @return  the Singleton instance.
 */
public static DictionaryLoader getInstance(){
  if (instance == null) {
    instance=new DictionaryLoader();
  }
  return instance;
}
Program: 175513
Project: 175513
Buggy source:
/** 
 * Utility method to create a new immutable Pair.
 * @param a the first Object of the new immutable Pair
 * @param b the second Object of the new immutable Pair
 * @return  the new immutable Pair
 */
public static <A,B>Pair<A,B> create(A a,B b){
  return new Pair<A,B>(a,b);
}

Fixed version (ground truth):
/** 
 * Utility method to create a new immutable Pair.
 * @param < A > the type of the first Object in this Pair
 * @param a the first Object of the new immutable Pair
 * @param < B > the type of the second Object in this Pair
 * @param b the second Object of the new immutable Pair
 * @return  the new immutable Pair
 */
public static <A,B>Pair<A,B> create(A a,B b){
  return new Pair<A,B>(a,b);
}
Program: 175514
Project: 175514
Buggy source:
/** 
 * @return  {@code true} if the original phrase from where the sentence was extracted ends with aquestion mark; {@code false} otherwise
 */
public boolean isQuestion(){
  return question;
}

Fixed version (ground truth):
/** 
 * Gets whether this Sentence is a question or not.
 * @return  {@code true} if the original phrase from where the sentence was extracted ends with aquestion mark; {@code false} otherwise
 */
public boolean isQuestion(){
  return question;
}
Program: 175515
Project: 175515
Buggy source:
/** 
 * @return  a String representation of this Sentence, formatted as: [text, tokens].
 */
@Override public String toString(){
  return "String_Node_Str" + words + "String_Node_Str"+ lookup+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Sentence.
 * @return  a String representation of this Sentence, formatted as: [text, tokens]
 */
@Override public String toString(){
  return "String_Node_Str" + words + "String_Node_Str"+ lookup+ "String_Node_Str";
}
Program: 175516
Project: 175516
Buggy source:
/** 
 * @return  the List of Words of the Sentence.
 * @see com.github.bot.curiosone.core.nlp.Word The Word Class
 */
public List<Word> getWords(){
  return words;
}

Fixed version (ground truth):
/** 
 * Gets the Words of this Sentence.
 * @return  the List of Words of the Sentence
 * @see com.github.bot.curiosone.core.nlp.Word The Word Class
 */
public List<Word> getWords(){
  return words;
}
Program: 175517
Project: 175517
Buggy source:
/** 
 * @return  the emotion of this Message.
 */
public String getEmotion(){
  return emotion;
}

Fixed version (ground truth):
/** 
 * Gets the emotion of this Message.
 * @return  the emotion of this Message
 */
public String getEmotion(){
  return emotion;
}
Program: 175518
Project: 175518
Buggy source:
/** 
 * @return  the content of this Message.
 */
public String getMessage(){
  return message;
}

Fixed version (ground truth):
/** 
 * Gets the content of this Message.
 * @return  the content of this Message
 */
public String getMessage(){
  return message;
}
Program: 175519
Project: 175519
Buggy source:
/** 
 * @return  a String representation of this Message.
 */
@Override public String toString(){
  return message + "String_Node_Str" + scope+ "String_Node_Str"+ emotion+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Message.
 * @return  a String representation of this Message
 */
@Override public String toString(){
  return message + "String_Node_Str" + scope+ "String_Node_Str"+ emotion+ "String_Node_Str";
}
Program: 175520
Project: 175520
Buggy source:
/** 
 * @return  the scope of this Message.
 */
public String getScope(){
  return scope;
}

Fixed version (ground truth):
/** 
 * Gets the scope of this Message.
 * @return  the scope of this Message
 */
public String getScope(){
  return scope;
}
Program: 175521
Project: 175521
Buggy source:
/** 
 * @return  the text content of this Phrase.
 */
public String getText(){
  return text;
}

Fixed version (ground truth):
/** 
 * Gets the text of this Phrase.
 * @return  the text content of this Phrase
 */
public String getText(){
  return text;
}
Program: 175522
Project: 175522
Buggy source:
/** 
 * @return  the list of tokens extracted from this Phrase.
 */
public List<Token> getTokens(){
  return new ArrayList<Token>(tokens);
}

Fixed version (ground truth):
/** 
 * Gets the Tokens of this Phrase.
 * @return  the list of tokens extracted from this Phrase
 */
public List<Token> getTokens(){
  return new ArrayList<Token>(tokens);
}
Program: 175523
Project: 175523
Buggy source:
/** 
 * @return  {@code true} if the content is a question, {@code false} otherwise.
 */
public boolean isQuestion(){
  return question;
}

Fixed version (ground truth):
/** 
 * Returns whether this Phrase is a question or not.
 * @return  {@code true} if the content is a question, {@code false} otherwise
 */
public boolean isQuestion(){
  return question;
}
Program: 175524
Project: 175524
Buggy source:
/** 
 * @return  a String representation of this Phrase in the form [text, tokens].
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ tokens+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Phrase.
 * @return  a String representation of this Phrase in the form [text, tokens]
 */
@Override public String toString(){
  return "String_Node_Str" + text + "String_Node_Str"+ tokens+ "String_Node_Str";
}
Program: 175525
Project: 175525
Buggy source:
/** 
 * @return  the ID of this Concept.
 */
@Override public String getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * Gets the ID of this Concept.
 * @return  the ID of this Concept
 */
@Override public String getId(){
  return id;
}
Program: 175526
Project: 175526
Buggy source:
/** 
 * @return  a String representation of this Concept.
 */
public String toString(){
  return getId();
}

Fixed version (ground truth):
/** 
 * Returns the String representation of this Concept.
 * @return  the String representation of this Concept
 */
public String toString(){
  return getId();
}
Program: 175527
Project: 175527
Buggy source:
/** 
 * @return  a String representation of this Meaning in the form [pos, lex, frequency].
 */
@Override public String toString(){
  return "String_Node_Str" + pos + "String_Node_Str"+ lex+ "String_Node_Str"+ freq+ "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Returns a String representation of this Meaning.
 * @return  a String representation of this Meaning in the form [pos, lex, frequency]
 */
@Override public String toString(){
  return "String_Node_Str" + pos + "String_Node_Str"+ lex+ "String_Node_Str"+ freq+ "String_Node_Str";
}
Program: 175528
Project: 175528
Buggy source:
public static DictionaryLoader getInstance(){
  if (instance == null) {
    instance=new DictionaryLoader();
  }
  return instance;
}

Fixed version (ground truth):
/** 
 * Returns the DictionaryLoader instance.
 */
public static DictionaryLoader getInstance(){
  if (instance == null) {
    instance=new DictionaryLoader();
  }
  return instance;
}
Program: 175529
Project: 175529
Buggy source:
/** 
 * HashCode basato sull'hashCode del vertice di destinazione e vertice sorgente,
 */
@Override public int hashCode(){
  int result=42;
  result=31 * result + sorgente.hashCode();
  result=31 * result + destinazione.hashCode();
  return result;
}

Fixed version (ground truth):
/** 
 * HashCode basato sull'hashCode del vertice di destinazione e vertice sorgente.
 */
@Override public int hashCode(){
  int result=42;
  result=31 * result + sorgente.hashCode();
  result=31 * result + destinazione.hashCode();
  return result;
}
Program: 175530
Project: 175530
Buggy source:
/** 
 * @param v1 vertice Sorgente
 * @param v2 Vertice Destinazione
 * @param type Tipo dell'arco
 */
public SemanticRelation(Vertex v1,Vertex v2,SemanticRelationType type){
  this.sorgente=v1;
  this.destinazione=v2;
  this.collegamento=type;
}

Fixed version (ground truth):
/** 
 * Default class constructor.
 * @param v1 vertice Sorgente
 * @param v2 Vertice Destinazione
 * @param type Tipo dell'arco
 */
public SemanticRelation(Vertex v1,Vertex v2,SemanticRelationType type){
  this.sorgente=v1;
  this.destinazione=v2;
  this.collegamento=type;
}
Program: 175531
Project: 175531
Buggy source:
/** 
 * metodo toString utilizzato per varie prove di debug
 */
@Override public String toString(){
  return sorgente.getId() + "String_Node_Str" + collegamento+ "String_Node_Str"+ destinazione.getId();
}

Fixed version (ground truth):
/** 
 * Metodo toString utilizzato per varie prove di debug.
 */
@Override public String toString(){
  return sorgente.getId() + "String_Node_Str" + collegamento+ "String_Node_Str"+ destinazione.getId();
}
Program: 175532
Project: 175532
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfDocuments=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseDocumentTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseDocumentDescription=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createDocuments(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfDocuments=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseDocumentTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseDocumentDescription=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createDocuments(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175534
Project: 175534
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfArticles=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseArticle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    String[] defLang={LocaleUtil.getDefault().toString()};
    locales=ParamUtil.getStringValues(actionRequest,"String_Node_Str",defLang);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createJournals(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfArticles=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseArticle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    String[] defLang={LocaleUtil.getDefault().toString()};
    locales=ParamUtil.getStringValues(actionRequest,"String_Node_Str",defLang);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createJournals(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175535
Project: 175535
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    startIndex=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    numberOfOrganizations=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseOrganizationName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    parentOrganizationId=ParamUtil.getInteger(actionRequest,"String_Node_Str",OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID);
    createOrganizations(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    startIndex=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    numberOfOrganizations=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseOrganizationName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    parentOrganizationId=ParamUtil.getInteger(actionRequest,"String_Node_Str",OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID);
    createOrganizations(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
}
Program: 175536
Project: 175536
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfpages=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    basePageName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    parentLayoutId=ParamUtil.getLong(actionRequest,"String_Node_Str",LayoutConstants.DEFAULT_PARENT_LAYOUT_ID);
    layoutType=ParamUtil.getString(actionRequest,"String_Node_Str",LayoutConstants.TYPE_PORTLET);
    privateLayout=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    hidden=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    createPages(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfpages=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    basePageName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    parentLayoutId=ParamUtil.getLong(actionRequest,"String_Node_Str",LayoutConstants.DEFAULT_PARENT_LAYOUT_ID);
    layoutType=ParamUtil.getString(actionRequest,"String_Node_Str",LayoutConstants.TYPE_PORTLET);
    privateLayout=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    hidden=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    createPages(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175538
Project: 175538
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfSites=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseSiteName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    siteType=ParamUtil.getInteger(actionRequest,"String_Node_Str",GroupConstants.TYPE_SITE_OPEN);
    parentGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_PARENT_GROUP_ID);
    liveGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_LIVE_GROUP_ID);
    manualMembership=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    site=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    inheritContent=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    active=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    createSites(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    createSites(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175539
Project: 175539
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfusers=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseScreenName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    male=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    password=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    String[] organizations=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    organizationIds=_commonUtil.convertStringToLongArray(organizations);
    String[] groups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    groupIds=_commonUtil.convertStringToLongArray(groups);
    String[] roles=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    roleIds=_commonUtil.convertStringToLongArray(roles);
    String[] userGroups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    userGroupIds=_commonUtil.convertStringToLongArray(userGroups);
    createUsers(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfusers=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseScreenName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    male=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    password=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    String[] organizations=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    organizationIds=_commonUtil.convertStringToLongArray(organizations);
    String[] groups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    groupIds=_commonUtil.convertStringToLongArray(groups);
    String[] roles=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    roleIds=_commonUtil.convertStringToLongArray(roles);
    String[] userGroups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    userGroupIds=_commonUtil.convertStringToLongArray(userGroups);
    createUsers(actionRequest,actionResponse);
  }
 catch (  Exception e) {
    hideDefaultSuccessMessage(actionRequest);
    _log.error(e,e);
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175540
Project: 175540
Buggy source:
/** 
 * Page Command Pairs
 * @return jsp file name corresponding to the command.
 */
public Map<String,String> getPageFromMode(){
  return renderJSPs;
}

Fixed version (ground truth):
/** 
 * Page Command Pairs
 * @return jsp file name corresponding to the command.
 */
public Map<String,String> getPageFromMode(){
  return LDFPortletKeys.renderJSPs;
}
Program: 175541
Project: 175541
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfArticles=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseArticle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    String[] defLang={LocaleUtil.getDefault().toString()};
    locales=ParamUtil.getStringValues(actionRequest,"String_Node_Str",defLang);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createJournals(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  ThemeDisplay themeDisplay=(ThemeDisplay)actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
  try {
    numberOfArticles=ParamUtil.getLong(actionRequest,"String_Node_Str",1);
    baseTitle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    baseArticle=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    folderId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    String[] defLang={LocaleUtil.getDefault().toString()};
    locales=ParamUtil.getStringValues(actionRequest,"String_Node_Str",defLang);
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",themeDisplay.getScopeGroupId());
    createJournals(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175542
Project: 175542
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfpages=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    basePageName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    parentLayoutId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    layoutType=ParamUtil.getString(actionRequest,"String_Node_Str",LayoutConstants.TYPE_PORTLET);
    privateLayout=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    hidden=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    createPages(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfpages=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    basePageName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    groupId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    parentLayoutId=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    layoutType=ParamUtil.getString(actionRequest,"String_Node_Str",LayoutConstants.TYPE_PORTLET);
    privateLayout=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    hidden=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    createPages(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175543
Project: 175543
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfSites=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseSiteName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    siteType=ParamUtil.getInteger(actionRequest,"String_Node_Str",GroupConstants.TYPE_SITE_OPEN);
    parentGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_PARENT_GROUP_ID);
    liveGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_LIVE_GROUP_ID);
    manualMembership=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    site=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    inheritContent=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    active=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    createSites(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfSites=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseSiteName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    siteType=ParamUtil.getInteger(actionRequest,"String_Node_Str",GroupConstants.TYPE_SITE_OPEN);
    parentGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_PARENT_GROUP_ID);
    liveGroupId=ParamUtil.getLong(actionRequest,"String_Node_Str",GroupConstants.DEFAULT_LIVE_GROUP_ID);
    manualMembership=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    site=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    inheritContent=ParamUtil.getBoolean(actionRequest,"String_Node_Str",false);
    active=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    createSites(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175544
Project: 175544
Buggy source:
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfusers=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseScreenName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    male=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    password=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    String[] organizations=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    organizationIds=_commonUtil.convertStringToLongArray(organizations);
    String[] groups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    groupIds=_commonUtil.convertStringToLongArray(groups);
    String[] roles=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    roleIds=_commonUtil.convertStringToLongArray(roles);
    String[] userGroups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    userGroupIds=_commonUtil.convertStringToLongArray(userGroups);
    createUsers(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void doProcessAction(ActionRequest actionRequest,ActionResponse actionResponse){
  try {
    numberOfusers=ParamUtil.getLong(actionRequest,"String_Node_Str",0);
    baseScreenName=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    male=ParamUtil.getBoolean(actionRequest,"String_Node_Str",true);
    password=ParamUtil.getString(actionRequest,"String_Node_Str","String_Node_Str");
    String[] organizations=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    organizationIds=_commonUtil.convertStringToLongArray(organizations);
    String[] groups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    groupIds=_commonUtil.convertStringToLongArray(groups);
    String[] roles=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    roleIds=_commonUtil.convertStringToLongArray(roles);
    String[] userGroups=ParamUtil.getStringValues(actionRequest,"String_Node_Str",null);
    userGroupIds=_commonUtil.convertStringToLongArray(userGroups);
    createUsers(actionRequest,actionResponse);
  }
 catch (  Throwable e) {
    hideDefaultSuccessMessage(actionRequest);
    e.printStackTrace();
  }
  actionResponse.setRenderParameter("String_Node_Str",LDFPortletKeys.COMMON);
}
Program: 175545
Project: 175545
Buggy source:
@EventHandler(priority=EventPriority.LOW) public void onInventoryClick(InventoryClickEvent e){
  Player p=(Player)e.getWhoClicked();
  if (!inventories.containsKey(p))   return;
  if (e.getAction() == InventoryAction.COLLECT_TO_CURSOR) {
    e.setCancelled(true);
    return;
  }
  if (e.getClickedInventory() == p.getOpenInventory().getTopInventory()) {
    e.setCancelled(true);
    int row=e.getSlot() / 9;
    int column=e.getSlot() % 9;
    if (row < 0 || column < 0)     return;
    SmartInventory inv=inventories.get(p);
    if (row >= inv.getRows() || column >= inv.getColumns())     return;
    inv.getListeners().stream().filter(listener -> listener.getType() == InventoryClickEvent.class).forEach(listener -> ((InventoryListener<InventoryClickEvent>)listener).accept(e));
    contents.get(p).get(row,column).ifPresent(item -> {
      if (item.getItem() != null && !item.getItem().isSimilar(e.getCurrentItem()))       return;
      if (item.getItem() == null && (e.getCurrentItem() != null && e.getCurrentItem().getType() != Material.AIR))       return;
      item.run(e);
    }
);
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onInventoryClick(InventoryClickEvent e){
  Player p=(Player)e.getWhoClicked();
  if (!inventories.containsKey(p))   return;
  if (e.getAction() == InventoryAction.COLLECT_TO_CURSOR) {
    e.setCancelled(true);
    return;
  }
  if (e.getClickedInventory() == p.getOpenInventory().getTopInventory()) {
    e.setCancelled(true);
    int row=e.getSlot() / 9;
    int column=e.getSlot() % 9;
    if (row < 0 || column < 0)     return;
    SmartInventory inv=inventories.get(p);
    if (row >= inv.getRows() || column >= inv.getColumns())     return;
    inv.getListeners().stream().filter(listener -> listener.getType() == InventoryClickEvent.class).forEach(listener -> ((InventoryListener<InventoryClickEvent>)listener).accept(e));
    contents.get(p).get(row,column).ifPresent(item -> item.run(e));
  }
}
Program: 175546
Project: 175546
Buggy source:
@EventHandler(priority=EventPriority.LOW,ignoreCancelled=true) public void onInventoryOpen(InventoryOpenEvent e){
  Player p=(Player)e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == InventoryOpenEvent.class).forEach(listener -> ((InventoryListener<InventoryOpenEvent>)listener).accept(e));
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onInventoryOpen(InventoryOpenEvent e){
  Player p=(Player)e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == InventoryOpenEvent.class).forEach(listener -> ((InventoryListener<InventoryOpenEvent>)listener).accept(e));
}
Program: 175547
Project: 175547
Buggy source:
@EventHandler(priority=EventPriority.LOW,ignoreCancelled=true) public void onPlayerQuit(PlayerQuitEvent e){
  Player p=e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == PlayerQuitEvent.class).forEach(listener -> ((InventoryListener<PlayerQuitEvent>)listener).accept(e));
  inventories.remove(p);
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onPlayerQuit(PlayerQuitEvent e){
  Player p=e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == PlayerQuitEvent.class).forEach(listener -> ((InventoryListener<PlayerQuitEvent>)listener).accept(e));
  inventories.remove(p);
}
Program: 175548
Project: 175548
Buggy source:
@EventHandler(priority=EventPriority.LOW,ignoreCancelled=true) public void onInventoryClick(InventoryClickEvent e){
  Player p=(Player)e.getWhoClicked();
  if (!inventories.containsKey(p))   return;
  if (e.getAction() == InventoryAction.COLLECT_TO_CURSOR) {
    e.setCancelled(true);
    return;
  }
  if (e.getClickedInventory() == p.getOpenInventory().getTopInventory()) {
    int row=e.getSlot() / 9;
    int column=e.getSlot() % 9;
    if (row < 0 || column < 0)     return;
    SmartInventory inv=inventories.get(p);
    if (row >= inv.getRows() || column >= inv.getColumns())     return;
    inv.getListeners().stream().filter(listener -> listener.getType() == InventoryClickEvent.class).forEach(listener -> ((InventoryListener<InventoryClickEvent>)listener).accept(e));
    contents.get(p).get(row,column).ifPresent(item -> {
      e.setCancelled(true);
      if (item.getItem() != null && !item.getItem().isSimilar(e.getCurrentItem()))       return;
      if (item.getItem() == null && (e.getCurrentItem() != null && e.getCurrentItem().getType() != Material.AIR))       return;
      item.run(e);
    }
);
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onInventoryClick(InventoryClickEvent e){
  Player p=(Player)e.getWhoClicked();
  if (!inventories.containsKey(p))   return;
  if (e.getAction() == InventoryAction.COLLECT_TO_CURSOR) {
    e.setCancelled(true);
    return;
  }
  if (e.getClickedInventory() == p.getOpenInventory().getTopInventory()) {
    e.setCancelled(true);
    int row=e.getSlot() / 9;
    int column=e.getSlot() % 9;
    if (row < 0 || column < 0)     return;
    SmartInventory inv=inventories.get(p);
    if (row >= inv.getRows() || column >= inv.getColumns())     return;
    inv.getListeners().stream().filter(listener -> listener.getType() == InventoryClickEvent.class).forEach(listener -> ((InventoryListener<InventoryClickEvent>)listener).accept(e));
    contents.get(p).get(row,column).ifPresent(item -> {
      if (item.getItem() != null && !item.getItem().isSimilar(e.getCurrentItem()))       return;
      if (item.getItem() == null && (e.getCurrentItem() != null && e.getCurrentItem().getType() != Material.AIR))       return;
      item.run(e);
    }
);
  }
}
Program: 175549
Project: 175549
Buggy source:
@EventHandler(priority=EventPriority.LOW,ignoreCancelled=true) public void onPluginDisable(PluginDisableEvent e){
  new HashSet<>(inventories.values()).forEach(inv -> inv.getListeners().stream().filter(listener -> listener.getType() == PluginDisableEvent.class).forEach(listener -> ((InventoryListener<PluginDisableEvent>)listener).accept(e)));
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onPluginDisable(PluginDisableEvent e){
  new HashSet<>(inventories.values()).forEach(inv -> inv.getListeners().stream().filter(listener -> listener.getType() == PluginDisableEvent.class).forEach(listener -> ((InventoryListener<PluginDisableEvent>)listener).accept(e)));
}
Program: 175550
Project: 175550
Buggy source:
@EventHandler(priority=EventPriority.LOW,ignoreCancelled=true) public void onInventoryClose(InventoryCloseEvent e){
  Player p=(Player)e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == InventoryCloseEvent.class).forEach(listener -> ((InventoryListener<InventoryCloseEvent>)listener).accept(e));
  if (inv.isCloseable()) {
    e.getInventory().clear();
    inventories.remove(p);
  }
 else   Bukkit.getScheduler().runTask(plugin,() -> p.openInventory(e.getInventory()));
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOW) public void onInventoryClose(InventoryCloseEvent e){
  Player p=(Player)e.getPlayer();
  if (!inventories.containsKey(p))   return;
  SmartInventory inv=inventories.get(p);
  inv.getListeners().stream().filter(listener -> listener.getType() == InventoryCloseEvent.class).forEach(listener -> ((InventoryListener<InventoryCloseEvent>)listener).accept(e));
  if (inv.isCloseable()) {
    e.getInventory().clear();
    inventories.remove(p);
  }
 else   Bukkit.getScheduler().runTask(plugin,() -> p.openInventory(e.getInventory()));
}
Program: 175551
Project: 175551
Buggy source:
public SmartInventory build(){
  SmartInventory inv=new SmartInventory();
  inv.id=this.id;
  inv.title=this.title;
  inv.type=this.type;
  inv.rows=this.rows;
  inv.columns=this.columns;
  inv.closeable=this.closeable;
  inv.provider=this.provider;
  inv.parent=this.parent;
  inv.listeners=this.listeners;
  return inv;
}

Fixed version (ground truth):
public SmartInventory build(){
  if (this.provider == null)   throw new IllegalStateException("String_Node_Str");
  SmartInventory inv=new SmartInventory();
  inv.id=this.id;
  inv.title=this.title;
  inv.type=this.type;
  inv.rows=this.rows;
  inv.columns=this.columns;
  inv.closeable=this.closeable;
  inv.provider=this.provider;
  inv.parent=this.parent;
  inv.listeners=this.listeners;
  return inv;
}