nus-yam/ex-repair huggingface dataset:
Program: 17547
Project: 17547
Buggy source:
public void reload(boolean forced){
  try {
    if (autoRefresh || forced) {
      lastInput=getRootInput();
      IWorkbenchPartSite site=getSite();
      IWorkbenchWindow window=site.getWorkbenchWindow();
      IWorkbenchPage page=window.getActivePage();
      IEditorPart iep=page.getActiveEditor();
      if (iep != null) {
        CFCMethodsFile=((FileEditorInput)iep.getEditorInput()).getFile();
        fileLabel.setText(CFCMethodsFile.getFullPath().toString());
      }
 else {
        CFCMethodsFile=null;
        fileLabel.setText("String_Node_Str");
      }
    }
    methodProvider=new CFCMethodsContentProvider(lastInput,sortItems,showRemote,showPublic,showPackage,showPrivate);
    viewer.setContentProvider(methodProvider);
    viewer.setInput(lastInput);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void reload(boolean forced){
  try {
    if (autoRefresh || forced) {
      lastInput=getRootInput();
      IWorkbenchPartSite site=getSite();
      IWorkbenchWindow window=site.getWorkbenchWindow();
      IWorkbenchPage page=window.getActivePage();
      IEditorPart iep=page.getActiveEditor();
      if (iep != null) {
        CFCMethodsFile=((FileEditorInput)iep.getEditorInput()).getFile();
        fileLabel.setText(CFCMethodsFile.getFullPath().toString());
      }
 else {
        CFCMethodsFile=null;
        fileLabel.setText("String_Node_Str");
      }
    }
    if (lastInput == null) {
      lastInput=getRootInput();
    }
    methodProvider=new CFCMethodsContentProvider(lastInput,sortItems,showRemote,showPublic,showPackage,showPrivate);
    viewer.setContentProvider(methodProvider);
    viewer.setInput(lastInput);
  }
 catch (  Exception e) {
  }
}
Program: 17549
Project: 17549
Buggy source:
public void dragSetData(DragSourceEvent event){
  try {
    if (TextTransfer.getInstance().isSupportedType(event.dataType)) {
      String selectedText=cursorListener.selection;
      if (selectedText.endsWith(textWidget.getLineDelimiter())) {
        selectedText=selectedText.substring(0,selectedText.length() - textWidget.getLineDelimiter().length());
      }
      event.data=selectedText;
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void dragSetData(DragSourceEvent event){
  try {
    if (TextTransfer.getInstance().isSupportedType(event.dataType)) {
      String selectedText=cursorListener.selection;
      event.data=selectedText;
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 17551
Project: 17551
Buggy source:
/** 
 * <code>handleCFTag</code> - Handles a opening CF tag.
 * @param tagName - name of the tag
 * @param match - the TagMatch made
 * @param matchStack - match stack
 * @param attrList - map of attributes that are for this tag
 * @param isACloser - whether it's a self-closer
 */
protected void handleCFTag(String tagName,ParseItemMatch match,Stack matchStack,ArrayList attrList,boolean isACloser){
  tagName=tagName.substring(3,tagName.length());
  TagItem newItem;
  if (tagName.charAt(0) == '_' || (tagName.charAt(0) == 'x' && tagName.charAt(1) == '_')) {
    newItem=new CfmlCustomTag(getLineNumber(match.startPos),match.startPos,match.endPos,tagName);
    newItem.setItemData(match.match);
  }
 else {
    newItem=getNameBasedCfmlTag(tagName,match,getLineNumber(match.startPos));
    newItem.initDictionary(DictionaryManager.getDictionary(DictionaryManager.CFDIC));
    newItem.setItemData(match.match);
  }
  newItem.addAttributes(attrList);
  addTagItemToTree(match,matchStack,isACloser,newItem);
}

Fixed version (ground truth):
/** 
 * <code>handleCFTag</code> - Handles a opening CF tag.
 * @param tagName - name of the tag
 * @param match - the TagMatch made
 * @param matchStack - match stack
 * @param attrList - map of attributes that are for this tag
 * @param isACloser - whether it's a self-closer
 */
protected void handleCFTag(String tagName,ParseItemMatch match,Stack matchStack,ArrayList attrList,boolean isACloser){
  tagName=tagName.substring(1,tagName.length());
  TagItem newItem;
  if (tagName.charAt(0) == '_' || (tagName.charAt(0) == 'x' && tagName.charAt(1) == '_')) {
    newItem=new CfmlCustomTag(getLineNumber(match.startPos),match.startPos,match.endPos,tagName);
    newItem.setItemData(match.match);
  }
 else {
    newItem=getNameBasedCfmlTag(tagName,match,getLineNumber(match.startPos));
    newItem.initDictionary(DictionaryManager.getDictionary(DictionaryManager.CFDIC));
    newItem.setItemData(match.match);
  }
  newItem.addAttributes(attrList);
  addTagItemToTree(match,matchStack,isACloser,newItem);
}
Program: 17553
Project: 17553
Buggy source:
public void setTaskMarkers(){
  Iterator i=CFCommentList.iterator();
  int taskLine;
  while (i.hasNext()) {
    CFCommentItem comment=(CFCommentItem)i.next();
    Pattern markerPattern=Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE);
    String[] lines=comment.getContents().split("String_Node_Str");
    for (int line=0; line < lines.length; line++) {
      Matcher matcher=markerPattern.matcher(lines[line]);
      if (matcher.find()) {
        try {
          Map attrs=new HashMap();
          MarkerUtilities.setLineNumber(attrs,comment.getLineNumber() + line + 1);
          String message=lines[line].substring(matcher.start(),lines[line].length() - 1);
          MarkerUtilities.setMessage(attrs,message);
          MarkerUtilities.createMarker(resource,attrs,IMarker.TASK);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
  }
}

Fixed version (ground truth):
public void setTaskMarkers(){
  Iterator i=CFCommentList.iterator();
  int taskLine;
  while (i.hasNext()) {
    CFCommentItem comment=(CFCommentItem)i.next();
    Pattern markerPattern=Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE);
    String[] lines=comment.getContents().split("String_Node_Str");
    for (int line=0; line < lines.length; line++) {
      Matcher matcher=markerPattern.matcher(lines[line]);
      if (matcher.find()) {
        try {
          Map attrs=new HashMap();
          MarkerUtilities.setLineNumber(attrs,comment.getLineNumber() + line + 1);
          String message=lines[line].substring(matcher.start(),lines[line].length());
          MarkerUtilities.setMessage(attrs,message);
          MarkerUtilities.createMarker(resource,attrs,IMarker.TASK);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
  }
}
Program: 17554
Project: 17554
Buggy source:
protected void buttonPressed(int buttonId){
  if (buttonId == IDialogConstants.OK_ID) {
    Iterator i=itemList.iterator();
    while (i.hasNext()) {
      ((SnipVarItem)i.next()).setReplacement();
    }
    selectedValue=combo.getText().trim();
  }
  super.buttonPressed(buttonId);
}

Fixed version (ground truth):
protected void buttonPressed(int buttonId){
  if (buttonId == IDialogConstants.OK_ID) {
    Iterator i=itemList.iterator();
    while (i.hasNext()) {
      ((SnipVarItem)i.next()).setReplacement();
    }
  }
  super.buttonPressed(buttonId);
}
Program: 17555
Project: 17555
Buggy source:
public void dispose(){
  colorManager.dispose();
  super.dispose();
}

Fixed version (ground truth):
public void dispose(){
  colorManager.dispose();
  CFMLPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this);
  super.dispose();
}
Program: 17556
Project: 17556
Buggy source:
/** 
 * Gets the parameter values for a procedure (aka tag or function). Parameter values could be, for example, ColdFusion boolean value options (true/false) for the <code>output</code> attribute for a <code>cffunction</code>. *  The set of attribute values is based on the tag being searched for and the attribute required. The values returned will also be filtered by anything contained in the string <code>start</code>.
 * @param tag - name of tag to search for
 * @param attribute - attribute that we're looking for
 * @param start - A partial or full value to filter by 
 * @return set of filtered attribute values
 */
public Set getFilteredAttributeValues(String tag,String attribute,String start){
  Set attribs=getElementAttributes(tag);
  if (attribs.size() == 0)   return null;
  Object[] tempArray=attribs.toArray();
  for (int i=0; i < tempArray.length; i++) {
    Parameter currParam=(Parameter)tempArray[i];
    String currName=currParam.getName();
    if (currParam.getName().compareTo(attribute) == 0)     return limitSet(currParam.getValues(),start);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Gets the parameter values for a procedure (aka tag or function). Parameter values could be, for example, ColdFusion boolean value options (true/false) for the <code>output</code> attribute for a <code>cffunction</code>. *  The set of attribute values is based on the tag being searched for and the attribute required. The values returned will also be filtered by anything contained in the string <code>start</code>.
 * @param tag - name of tag to search for
 * @param attribute - attribute that we're looking for
 * @param start - A partial or full value to filter by 
 * @return set of filtered attribute values
 */
public Set getFilteredAttributeValues(String tag,String attribute,String start){
  Set attribs=getElementAttributes(tag);
  if (attribs.size() == 0)   return null;
  Object[] tempArray=attribs.toArray();
  for (int i=0; i < tempArray.length; i++) {
    Parameter currParam=(Parameter)tempArray[i];
    String currName=currParam.getName();
    if (currParam.getName().compareToIgnoreCase(attribute) == 0)     return limitSet(currParam.getValues(),start);
  }
  return null;
}
Program: 17558
Project: 17558
Buggy source:
/** 
 * Handles a closing, non-single tag. It will insert two lines. The first will be the next line that the cursor will be upon and will be indented by the opener tag's indent + 1 tab. The 2nd line will be on the same level as the opener and will contain the closing tag.
 * @param doc - the document that this action is taking place within
 * @param docCommand - the document command to modify
 * @return the modified document command
 * @throws BadLocationException
 */
private DocumentCommand doCloser(IDocument doc,DocumentCommand docCommand) throws BadLocationException {
  char lastChar=' ';
  if (docCommand.offset >= 0)   lastChar=doc.getChar(docCommand.offset - 1);
  String closingTag=getClosingTag((ICFDocument)doc,docCommand.offset + 1);
  if (!this.autoClose_Tags)   closingTag+="String_Node_Str";
  closingTag="String_Node_Str" + closingTag;
  if (this.autoIndent_OnTagClose == INDENT_ONTAGCLOSE)   doInBetweenTagIndent(doc,docCommand,lastChar);
 else {
    try {
      if (docCommand.offset != doc.getLength() && doc.getChar(docCommand.offset) == '>') {
        stepThrough(docCommand);
      }
 else {
        docCommand.caretOffset=docCommand.offset + 1;
        docCommand.shiftsCaret=false;
      }
      if (this.autoClose_Tags)       closingTag+="String_Node_Str";
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
  docCommand.text+=closingTag;
  return docCommand;
}

Fixed version (ground truth):
/** 
 * Handles a closing, non-single tag. It will insert two lines. The first will be the next line that the cursor will be upon and will be indented by the opener tag's indent + 1 tab. The 2nd line will be on the same level as the opener and will contain the closing tag.
 * @param doc - the document that this action is taking place within
 * @param docCommand - the document command to modify
 * @return the modified document command
 * @throws BadLocationException
 */
private DocumentCommand doCloser(IDocument doc,DocumentCommand docCommand) throws BadLocationException {
  char lastChar=' ';
  boolean autoCloseTag=this.autoClose_Tags;
  boolean isSingleTag=false;
  if (docCommand.offset >= 0)   lastChar=doc.getChar(docCommand.offset - 1);
  String closingTag=getClosingTag((ICFDocument)doc,docCommand.offset + 1);
  isSingleTag=tagIsSingle(doc,docCommand,closingTag);
  if (!autoCloseTag)   closingTag+="String_Node_Str";
  closingTag="String_Node_Str" + closingTag;
  if (this.autoIndent_OnTagClose == INDENT_ONTAGCLOSE)   doInBetweenTagIndent(doc,docCommand,lastChar);
 else {
    try {
      if (docCommand.offset != doc.getLength() && doc.getChar(docCommand.offset) == '>') {
        stepThrough(docCommand);
      }
 else {
        docCommand.caretOffset=docCommand.offset + 1;
        docCommand.shiftsCaret=false;
      }
      if (autoCloseTag)       closingTag+="String_Node_Str";
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
  if (!isSingleTag)   docCommand.text+=closingTag;
  return docCommand;
}
Program: 17559
Project: 17559
Buggy source:
public void parseDocument(){
  if (docParser != null) {
    docStructure=docParser.parseDoc();
    if (docStructure == null)     System.err.println("String_Node_Str");
  }
}

Fixed version (ground truth):
public void parseDocument(){
  if (docParser != null) {
    IPreferenceStore prefStore=CFMLPlugin.getDefault().getPreferenceStore();
    docParser.setCFScriptParsing(prefStore.getBoolean(ICFMLPreferenceConstants.P_PARSE_DOCFSCRIPT));
    docParser.setReportErrors(prefStore.getBoolean(ICFMLPreferenceConstants.P_PARSE_REPORT_ERRORS));
    docStructure=docParser.parseDoc();
    if (docStructure == null)     System.err.println("String_Node_Str");
  }
}
Program: 17560
Project: 17560
Buggy source:
private int findStartofTag(IDocument doc,int offset) throws BadLocationException {
  int retval=-1;
  for (int i=offset; i < doc.getLength(); i--) {
    char currChar=doc.getChar(i);
    if (currChar == '>')     return -1;
    if (currChar == '<') {
      return i;
    }
  }
  return retval;
}

Fixed version (ground truth):
private int findStartofTag(IDocument doc,int offset) throws BadLocationException {
  int retval=-1;
  for (int i=offset; i >= 0; i--) {
    char currChar=doc.getChar(i);
    if (currChar == '>')     return -1;
    if (currChar == '<') {
      return i;
    }
  }
  return retval;
}
Program: 17561
Project: 17561
Buggy source:
public void setCFScriptParsing(boolean enable){
  this.parseCFScript=enable;
}

Fixed version (ground truth):
/** 
 * Tells the parser whether it should parse CFScript blocks or not
 * @param enable set to true to parse CFScript, false to not
 */
public void setCFScriptParsing(boolean enable){
  this.parseCFScript=enable;
}
Program: 17562
Project: 17562
Buggy source:
/** 
 * <code>userMessage</code> - Outputs a message at a certain tree depth to the console. Also allows the passing of message types so the method can decide whether to report the message to the user or not. <b>NB:</b> USRMSG_ERRORs are inserted into the Problems tasklist <b>and will not disappear</b> until you restart Eclipse.  TODO: Need to work out how to keep track of markers & invalidate them as the parser is run again & again. 
 * @param indent - the indent to output the message at
 * @param method - the method doing the calling
 * @param message - the message
 * @param msgType - the type of message. CFParser.USERMSG_* (i.e. CFParser.USERMSG_ERROR is an error to the user)
 */
protected void userMessage(int indent,String method,String message,int msgType,TagMatch match){
switch (msgType) {
case USRMSG_WARNING:
    userMessage(indent,method,"String_Node_Str" + message);
  break;
case USRMSG_ERROR:
IWorkspaceRoot myWorkspaceRoot=CFMLPlugin.getWorkspace().getRoot();
Map attrs=new HashMap();
MarkerUtilities.setLineNumber(attrs,match.lineNumber + 1);
MarkerUtilities.setMessage(attrs,message);
try {
MarkerUtilities.createMarker(this.res,attrs,IMarker.PROBLEM);
}
 catch (CoreException excep) {
userMessage(0,"String_Node_Str","String_Node_Str" + excep.getMessage() + "String_Node_Str");
}
break;
default :
case USRMSG_INFO:
userMessage(indent,method,message);
break;
}
}

Fixed version (ground truth):
/** 
 * <code>userMessage</code> - Outputs a message at a certain tree depth to the console. Also allows the passing of message types so the method can decide whether to report the message to the user or not. <b>NB:</b> USRMSG_ERRORs are inserted into the Problems tasklist <b>and will not disappear</b> until you restart Eclipse.  TODO: Need to work out how to keep track of markers & invalidate them as the parser is run again & again. 
 * @param indent - the indent to output the message at
 * @param method - the method doing the calling
 * @param message - the message
 * @param msgType - the type of message. CFParser.USERMSG_* (i.e. CFParser.USERMSG_ERROR is an error to the user)
 */
protected void userMessage(int indent,String method,String message,int msgType,TagMatch match){
switch (msgType) {
case USRMSG_WARNING:
    userMessage(indent,method,"String_Node_Str" + message);
  break;
case USRMSG_ERROR:
if (this.reportErrors) {
  IWorkspaceRoot myWorkspaceRoot=CFMLPlugin.getWorkspace().getRoot();
  Map attrs=new HashMap();
  MarkerUtilities.setLineNumber(attrs,match.lineNumber + 1);
  MarkerUtilities.setMessage(attrs,message);
  try {
    MarkerUtilities.createMarker(this.res,attrs,IMarker.PROBLEM);
  }
 catch (  CoreException excep) {
    userMessage(0,"String_Node_Str","String_Node_Str" + excep.getMessage() + "String_Node_Str");
  }
}
break;
default :
case USRMSG_INFO:
userMessage(indent,method,message);
break;
}
}
Program: 17563
Project: 17563
Buggy source:
public void initializeDefaultValues(){
  store.setDefault(P_INSIGHT_DELAY,DEFAULT_INSIGHT_DELAY);
  store.setDefault(P_TAB_WIDTH,DEFAULT_TAB_WIDTH);
  store.setDefault(P_INSERT_SPACES_FOR_TABS,DEFAULT_INSERT_SPACES_FOR_TABS);
  store.setDefault(P_ENABLE_HS_COMPATIBILITY,DEFAULT_ENABLE_HS_COMPATIBILITY);
  store.setDefault(P_ENABLE_DW_COMPATIBILITY,DEFAULT_ENABLE_DW_COMPATIBILITY);
  store.setDefault(P_SNIPPETS_PATH,CFMLPlugin.getDefault().getStateLocation().toString());
}

Fixed version (ground truth):
public void initializeDefaultValues(){
  store.setDefault(P_INSIGHT_DELAY,DEFAULT_INSIGHT_DELAY);
  store.setDefault(P_TAB_WIDTH,DEFAULT_TAB_WIDTH);
  store.setDefault(P_INSERT_SPACES_FOR_TABS,DEFAULT_INSERT_SPACES_FOR_TABS);
  store.setDefault(P_ENABLE_HS_COMPATIBILITY,DEFAULT_ENABLE_HS_COMPATIBILITY);
  store.setDefault(P_ENABLE_DW_COMPATIBILITY,DEFAULT_ENABLE_DW_COMPATIBILITY);
  store.setDefault(P_SNIPPETS_PATH,CFMLPlugin.getDefault().getStateLocation().toString());
  store.setDefault(P_PARSE_DOCFSCRIPT,DEFAULT_PARSE_DOCFSCRIPT);
  store.setDefault(P_PARSE_DOCFML,DEFAULT_PARSE_DOCFML);
  store.setDefault(P_PARSE_REPORT_ERRORS,DEFAULT_PARSE_REPORT_ERRORS);
}
Program: 17565
Project: 17565
Buggy source:
public void run(IAction action){
  try {
    if (editor != null) {
      IDocument doc=editor.getDocumentProvider().getDocument(editor.getEditorInput());
      ISelection sel=editor.getSelectionProvider().getSelection();
      int docOffset=((ITextSelection)sel).getOffset();
      String parttype=doc.getPartition(((ITextSelection)sel).getOffset()).getType();
      String start="String_Node_Str";
      if (parttype == CFPartitionScanner.CF_TAG) {
      }
    }
  }
 catch (  BadLocationException e) {
    e.printStackTrace(System.err);
  }
}

Fixed version (ground truth):
public void run(IAction action){
  try {
    if (editor != null) {
      IDocument doc=editor.getDocumentProvider().getDocument(editor.getEditorInput());
      ISelection sel=editor.getSelectionProvider().getSelection();
      int docOffset=((ITextSelection)sel).getOffset();
      String parttype=doc.getPartition(((ITextSelection)sel).getOffset()).getType();
      String start="String_Node_Str";
      if (doc instanceof ICFDocument) {
        ICFDocument cfDoc=(ICFDocument)doc;
        CFDocument docRoot=cfDoc.getCFDocument();
        String attrString="String_Node_Str" + docOffset + "String_Node_Str"+ docOffset+ "String_Node_Str";
        CFNodeList matchingNodes=docRoot.getDocumentRoot().selectNodes("String_Node_Str" + attrString);
        Iterator nodeIter=matchingNodes.iterator();
        CfmlTagItem currItem=null;
        if (nodeIter.hasNext()) {
          currItem=(CfmlTagItem)nodeIter.next();
        }
 else {
          matchingNodes=docRoot.getDocumentRoot().selectNodes("String_Node_Str" + attrString);
          nodeIter=matchingNodes.iterator();
          if (nodeIter.hasNext()) {
            currItem=(CfmlTagItem)nodeIter.next();
          }
 else           return;
        }
        String template=currItem.getAttribute("String_Node_Str");
        IEditorPart iep=this.editor.getSite().getPage().getActiveEditor();
        ITextEditor editor=(ITextEditor)iep;
        String pth=((IResource)((FileEditorInput)editor.getEditorInput()).getFile()).getProject().toString();
        String currentpath=((IResource)((FileEditorInput)editor.getEditorInput()).getFile()).getFullPath().toString();
        String currentfile=((IResource)((FileEditorInput)editor.getEditorInput()).getFile()).getName();
        currentpath=currentpath.replaceFirst(currentfile,"String_Node_Str");
        if (template.startsWith("String_Node_Str")) {
          currentpath=pth.replaceFirst("String_Node_Str","String_Node_Str") + template;
        }
 else {
          currentpath+=template;
        }
        GenericOpenFileAction openFileAction;
        openFileAction=new GenericOpenFileAction();
        openFileAction.setFilename(currentpath);
        openFileAction.run();
      }
      if (parttype == CFPartitionScanner.CF_TAG) {
      }
    }
  }
 catch (  BadLocationException e) {
    e.printStackTrace(System.err);
  }
}
Program: 17566
Project: 17566
Buggy source:
public boolean parseXPath(String xPathStr){
  this.doChildNodes=false;
  String tagName=xPathStr;
  if (xPathStr.length() > 2 && xPathStr.charAt(0) == '/' && xPathStr.charAt(1) == '/') {
    this.doChildNodes=true;
    tagName=xPathStr.substring(2);
    tagName=tagName.substring(0,findEndOfString(tagName));
    this.setTagSearch(tagName);
  }
  int bracketOpen=xPathStr.indexOf('[');
  boolean posSearch=bracketOpen != -1;
  if (posSearch) {
    String attributeSearch=xPathStr.substring(bracketOpen + 1);
    int bracketEnd=attributeSearch.lastIndexOf(']');
    attributeSearch=attributeSearch.substring(0,bracketEnd);
    this.parseAttributeStr(attributeSearch);
  }
  return true;
}

Fixed version (ground truth):
public boolean parseXPath(String xPathStr){
  this.doChildNodes=false;
  String tagName=xPathStr;
  if (xPathStr.length() > 2 && xPathStr.charAt(0) == '/' && xPathStr.charAt(1) == '/') {
    this.doChildNodes=true;
    tagName=xPathStr.substring(2);
    tagName=tagName.substring(0,findEndOfString(tagName));
    if (tagName.startsWith("String_Node_Str")) {
      tagName=tagName.substring(2);
    }
    this.setTagSearch(tagName);
  }
  int bracketOpen=xPathStr.indexOf('[');
  boolean posSearch=bracketOpen != -1;
  if (posSearch) {
    String attributeSearch=xPathStr.substring(bracketOpen + 1);
    int bracketEnd=attributeSearch.lastIndexOf(']');
    attributeSearch=attributeSearch.substring(0,bracketEnd);
    this.parseAttributeStr(attributeSearch);
  }
  return true;
}
Program: 17567
Project: 17567
Buggy source:
public boolean performComparison(int value){
  int thisValue=Integer.parseInt(this.value);
  if (this.compType.compareTo(ComparisonType.COMP_EQ) == 0) {
    return thisValue == value;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_NEQ) == 0) {
    return thisValue != value;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_GT) == 0) {
    return value < thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_GTE) == 0) {
    return value >= thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_LT) == 0) {
    return value < thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_LTE) == 0) {
    return value <= thisValue;
  }
  return false;
}

Fixed version (ground truth):
public boolean performComparison(int value){
  int thisValue=Integer.parseInt(this.value);
  System.out.println("String_Node_Str" + value + "String_Node_Str"+ this.name+ "String_Node_Str"+ this.compType+ "String_Node_Str"+ thisValue);
  if (this.compType.compareTo(ComparisonType.COMP_EQ) == 0) {
    return thisValue == value;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_NEQ) == 0) {
    return thisValue != value;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_GT) == 0) {
    return value > thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_GTE) == 0) {
    return value >= thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_LT) == 0) {
    return value < thisValue;
  }
 else   if (this.compType.compareTo(ComparisonType.COMP_LTE) == 0) {
    return value <= thisValue;
  }
  return false;
}
Program: 17569
Project: 17569
Buggy source:
public CFTagScanner(ColorManager manager){
  super();
  IToken cftag=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFTAG)));
  IToken string=new Token(new TextAttribute(manager.getColor(ICFColorConstants.STRING)));
  IToken cfnumber=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFNUMBER)));
  IToken cfkeyword=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFKEYWORD)));
  IToken cfdefault=new Token(new TextAttribute(manager.getColor(ICFColorConstants.DEFAULT)));
  IRule[] rules=new IRule[4];
  rules[0]=new SingleLineRule("String_Node_Str","String_Node_Str",string,'\\');
  rules[1]=new SingleLineRule("String_Node_Str","String_Node_Str",string,'\\');
  rules[2]=new NumberRule(cfnumber);
  rules[3]=new WhitespaceRule(new CFWhitespaceDetector());
  setRules(rules);
}

Fixed version (ground truth):
public CFTagScanner(ColorManager manager){
  super();
  IToken cftag=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFTAG)));
  IToken string=new Token(new TextAttribute(manager.getColor(ICFColorConstants.STRING)));
  IToken cfnumber=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFNUMBER)));
  IToken cfkeyword=new Token(new TextAttribute(manager.getColor(ICFColorConstants.CFKEYWORD)));
  IToken cfdefault=new Token(new TextAttribute(manager.getColor(ICFColorConstants.DEFAULT)));
  IRule[] rules=new IRule[4];
  rules[0]=new SingleLineRule("String_Node_Str","String_Node_Str",string);
  rules[1]=new SingleLineRule("String_Node_Str","String_Node_Str",string);
  rules[2]=new NumberRule(cfnumber);
  rules[3]=new WhitespaceRule(new CFWhitespaceDetector());
  setRules(rules);
}
Program: 17570
Project: 17570
Buggy source:
public HTMTagScanner(ColorManager manager){
  IToken string=new Token(new TextAttribute(manager.getColor(ICFColorConstants.STRING)));
  IRule[] rules=new IRule[3];
  rules[0]=new SingleLineRule("String_Node_Str","String_Node_Str",string,'\\');
  rules[1]=new SingleLineRule("String_Node_Str","String_Node_Str",string,'\\');
  rules[2]=new WhitespaceRule(new CFWhitespaceDetector());
  setRules(rules);
}

Fixed version (ground truth):
public HTMTagScanner(ColorManager manager){
  IToken string=new Token(new TextAttribute(manager.getColor(ICFColorConstants.STRING)));
  IRule[] rules=new IRule[3];
  rules[0]=new SingleLineRule("String_Node_Str","String_Node_Str",string);
  rules[1]=new SingleLineRule("String_Node_Str","String_Node_Str",string);
  rules[2]=new WhitespaceRule(new CFWhitespaceDetector());
  setRules(rules);
}
Program: 17571
Project: 17571
Buggy source:
public void run(){
  if (canvas.isDisposed())   return;
  if (busy) {
    index++;
    if (index == images.length)     index=0;
    canvas.redraw();
  }
  display.timerExec(150,this);
}

Fixed version (ground truth):
public void run(){
  if (canvas.isDisposed())   return;
  if (busy) {
  }
  display.timerExec(150,this);
}
Program: 17573
Project: 17573
Buggy source:
private String getProjectURL(){
  String projectURL="String_Node_Str";
  try {
    IEditorPart editorPart=viewer.getSite().getWorkbenchWindow().getActivePage().getActiveEditor();
    if (editorPart != null) {
      IFileEditorInput input=(IFileEditorInput)editorPart.getEditorInput();
      IFile file=input.getFile();
      IProject activeProject=file.getProject();
      QualifiedName propertyName=new QualifiedName("String_Node_Str",ICFMLPreferenceConstants.P_PROJECT_URL);
      projectURL=activeProject.getPersistentProperty(propertyName);
    }
  }
 catch (  Exception e) {
    e.printStackTrace(System.err);
  }
  return projectURL;
}

Fixed version (ground truth):
private String getProjectURL(){
  String projectURL=DEFAULURL;
  try {
    IEditorPart editorPart=viewer.getSite().getWorkbenchWindow().getActivePage().getActiveEditor();
    if (editorPart != null) {
      IFileEditorInput input=(IFileEditorInput)editorPart.getEditorInput();
      IFile file=input.getFile();
      IProject activeProject=file.getProject();
      QualifiedName propertyName=new QualifiedName("String_Node_Str",ICFMLPreferenceConstants.P_PROJECT_URL);
      projectURL=activeProject.getPersistentProperty(propertyName);
    }
  }
 catch (  Exception e) {
    e.printStackTrace(System.err);
  }
  return projectURL;
}
Program: 17574
Project: 17574
Buggy source:
/** 
 * Frees the resources
 */
void freeResources(){
  if (images != null) {
    for (int i=0; i < images.length; ++i) {
      final Image image=images[i];
      if (image != null)       image.dispose();
    }
    images=null;
  }
}

Fixed version (ground truth):
/** 
 * Frees the resources
 */
void freeResources(){
}
Program: 17576
Project: 17576
Buggy source:
protected void processParseResultMessages(){
  ArrayList messages=parserState.getMessages();
  IWorkspaceRoot myWorkspaceRoot=CFMLPlugin.getWorkspace().getRoot();
  for (int i=0; i < messages.size(); i++) {
    ParseMessage currMsg=(ParseMessage)messages.get(i);
    Map attrs=new HashMap();
    MarkerUtilities.setLineNumber(attrs,currMsg.getLineNumber() + 1);
    MarkerUtilities.setMessage(attrs,currMsg.getMessage());
    MarkerUtilities.setCharStart(attrs,currMsg.getDocStartOffset());
    MarkerUtilities.setCharEnd(attrs,currMsg.getDocEndOffset());
    if (currMsg instanceof ParseError) {
    }
 else     if (currMsg instanceof ParseWarning) {
    }
    try {
      MarkerUtilities.createMarker(this.res,attrs,IMarker.PROBLEM);
    }
 catch (    CoreException excep) {
      userMessage(0,"String_Node_Str","String_Node_Str" + excep.getMessage() + "String_Node_Str");
    }
catch (    Exception anyExcep) {
      userMessage(0,"String_Node_Str","String_Node_Str" + anyExcep.getMessage());
    }
  }
}

Fixed version (ground truth):
protected void processParseResultMessages(){
  ArrayList messages=parserState.getMessages();
  IWorkspaceRoot myWorkspaceRoot=CFMLPlugin.getWorkspace().getRoot();
  for (int i=0; i < messages.size(); i++) {
    ParseMessage currMsg=(ParseMessage)messages.get(i);
    Map attrs=new HashMap();
    MarkerUtilities.setLineNumber(attrs,currMsg.getLineNumber() + 1);
    MarkerUtilities.setMessage(attrs,currMsg.getMessage());
    if (currMsg instanceof ParseError) {
    }
 else     if (currMsg instanceof ParseWarning) {
    }
    try {
      MarkerUtilities.createMarker(this.res,attrs,IMarker.PROBLEM);
    }
 catch (    CoreException excep) {
      userMessage(0,"String_Node_Str","String_Node_Str" + excep.getMessage() + "String_Node_Str");
    }
catch (    Exception anyExcep) {
      userMessage(0,"String_Node_Str","String_Node_Str" + anyExcep.getMessage());
    }
  }
}
Program: 17577
Project: 17577
Buggy source:
/** 
 * Creates a new folder called 'Untitled' below the currently active folder If no folder is currently active it creates the folder below the root.
 */
protected void createSnipFolder(){
  File selectedfile=getSelectedFile();
  if (!selectedfile.isDirectory()) {
    selectedfile=selectedfile.getParentFile();
  }
  SnipWriter writer=new SnipWriter(selectedfile,snippetType);
  SnipFolderDialog folderDialog=new SnipFolderDialog(this.getViewSite().getShell(),writer,this.treeViewer);
  folderDialog.open();
}

Fixed version (ground truth):
/** 
 * Creates a new folder called below the currently active folder If no folder is currently active it creates the folder below the root.
 */
protected void createSnipFolder(){
  File selectedfile=getSelectedFile();
  if (!selectedfile.isDirectory()) {
    selectedfile=selectedfile.getParentFile();
  }
  SnipWriter writer=new SnipWriter(selectedfile,snippetType);
  SnipFolderDialog folderDialog=new SnipFolderDialog(this.getViewSite().getShell(),writer,this.treeViewer);
  folderDialog.open();
}
Program: 17578
Project: 17578
Buggy source:
/** 
 * creates all the default actions
 */
protected void createActions(){
  insertAction=new Action("String_Node_Str"){
    public void run(){
      insertItem();
    }
  }
;
  createFolderAction=new Action("String_Node_Str"){
    public void run(){
      createSnipFolder();
    }
  }
;
  createSnippetAction=new Action("String_Node_Str"){
    public void run(){
      createSnippet();
    }
  }
;
  editSnippetAction=new Action("String_Node_Str"){
    public void run(){
      editSnippet();
    }
  }
;
}

Fixed version (ground truth):
/** 
 * creates all the default actions
 */
protected void createActions(){
  insertAction=new Action("String_Node_Str"){
    public void run(){
      insertItem();
    }
  }
;
  createFolderAction=new Action("String_Node_Str"){
    public void run(){
      createSnipFolder();
    }
  }
;
  createSnippetAction=new Action("String_Node_Str"){
    public void run(){
      createSnippet();
    }
  }
;
  editSnippetAction=new Action("String_Node_Str"){
    public void run(){
      editSnippet();
    }
  }
;
  refreshSnippetsAction=new Action("String_Node_Str"){
    public void run(){
      reloadSnippets();
    }
  }
;
}
Program: 17579
Project: 17579
Buggy source:
public void run(){
  editSnippet();
}

Fixed version (ground truth):
public void run(){
  reloadSnippets();
}
Program: 17580
Project: 17580
Buggy source:
/** 
 * creates the toolbars
 */
protected void createToolbar(){
  IToolBarManager toolbarManager=getViewSite().getActionBars().getToolBarManager();
}

Fixed version (ground truth):
/** 
 * creates the toolbars
 */
protected void createToolbar(){
  IToolBarManager toolbarManager=getViewSite().getActionBars().getToolBarManager();
  toolbarManager.add(refreshSnippetsAction);
}
Program: 17582
Project: 17582
Buggy source:
/** 
 * override toString to auto format the function
 */
public String toString(){
  StringBuffer sb=new StringBuffer();
  Iterator it=parameters.iterator();
  sb.append(this.returns + "String_Node_Str");
  sb.append(this.name + "String_Node_Str");
  if (parameters != null) {
    while (it.hasNext()) {
      Parameter pm=(Parameter)it.next();
      if (!pm.isRequired())       sb.append("String_Node_Str");
      sb.append(pm.getType() + "String_Node_Str" + pm.getName());
      if (!pm.isRequired())       sb.append("String_Node_Str");
      sb.append("String_Node_Str");
    }
    sb.delete(sb.length() - 2,sb.length());
  }
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * override toString to auto format the function
 */
public String toString(){
  StringBuffer sb=new StringBuffer();
  if (this.name != null) {
    sb.append(this.returns + "String_Node_Str");
    sb.append(this.name + "String_Node_Str");
    if (parameters != null) {
      Iterator it=parameters.iterator();
      while (it.hasNext()) {
        Parameter pm=(Parameter)it.next();
        if (!pm.isRequired())         sb.append("String_Node_Str");
        sb.append(pm.getType() + "String_Node_Str" + pm.getName());
        if (!pm.isRequired())         sb.append("String_Node_Str");
        sb.append("String_Node_Str");
      }
      sb.delete(sb.length() - 2,sb.length());
    }
    sb.append("String_Node_Str");
  }
  return sb.toString();
}
Program: 17583
Project: 17583
Buggy source:
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String jdbcTemplate=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(jdbcTemplate);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}

Fixed version (ground truth):
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String dataSource=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(dataSource);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}
Program: 17584
Project: 17584
Buggy source:
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,Collections.emptyMap(),Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}

Fixed version (ground truth):
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,"String_Node_Str",Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}
Program: 17585
Project: 17585
Buggy source:
/** 
 * Create a new instance of ScribeOAuth1RequestSigner.
 * @param accessToken the access token value
 * @param accessTokenSecret the access token secret
 * @param apiKey the API key assigned by the provider
 * @param apiSecret the API secret assigned by the provider
 */
public ScribeOAuth1RequestSigner(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.accessToken=accessToken;
  this.accessTokenSecret=accessTokenSecret;
  this.service=new ServiceBuilder().provider(TwitterApi.class).apiKey(apiKey).apiSecret(apiSecret).callback("String_Node_Str").build();
}

Fixed version (ground truth):
/** 
 * Create a new instance of ScribeOAuth1RequestSigner.
 * @param accessToken the access token value
 * @param accessTokenSecret the access token secret
 * @param apiKey the API key assigned by the provider
 * @param apiSecret the API secret assigned by the provider
 */
public ScribeOAuth1RequestSigner(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.accessToken=accessToken;
  this.accessTokenSecret=accessTokenSecret;
  this.service=new ServiceBuilder().provider(LinkedInApi.class).apiKey(apiKey).apiSecret(apiSecret).callback("String_Node_Str").build();
}
Program: 17586
Project: 17586
Buggy source:
/** 
 * Create a new instance of TwitterTemplate. This constructor creates a new TwitterTemplate given the minimal amount of information required to sign a request and builds up a  {@link RestOperations} internally using this information.
 * @param apiKey the application's API key.
 * @param apiSecret the application's API secret.
 * @param accessToken the user's access token, given after successful OAuth authentication.
 * @param accessTokenSecret the access token secret, given along with the access token after successful OAuth authentication.
 */
public TwitterTemplate(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.restOperations=new RestTemplate(new OAuthSigningClientHttpRequestFactory(new ScribeOAuth1RequestSigner(apiKey,apiSecret,accessToken,accessTokenSecret)));
}

Fixed version (ground truth):
/** 
 * Create a new instance of TwitterTemplate. This constructor creates a new TwitterTemplate given the minimal amount of information required to sign a request and builds up a  {@link RestOperations} internally using this information.
 * @param apiKey the application's API key.
 * @param apiSecret the application's API secret.
 * @param accessToken the user's access token, given after successful OAuth authentication.
 * @param accessTokenSecret the access token secret, given along with the access token after successful OAuth authentication.
 */
public TwitterTemplate(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  RestTemplate restTemplate=new RestTemplate(new OAuthSigningClientHttpRequestFactory(new ScribeOAuth1RequestSigner(apiKey,apiSecret,accessToken,accessTokenSecret)));
  restTemplate.setErrorHandler(new TwitterErrorHandler());
  this.restOperations=restTemplate;
  this.statusCodeTranslator=new TwitterResponseStatusCodeTranslator();
}
Program: 17587
Project: 17587
Buggy source:
SearchResults buildSearchResults(Map<String,Object> response,List<Tweet> tweets){
  Long maxId=response.containsKey("String_Node_Str") ? NumberUtils.parseNumber((String)response.get("String_Node_Str"),Long.class) : 0;
  Long sinceId=response.containsKey("String_Node_Str") ? NumberUtils.parseNumber((String)response.get("String_Node_Str"),Long.class) : 0;
  return new SearchResults(tweets,maxId,sinceId,response.get("String_Node_Str") == null);
}

Fixed version (ground truth):
SearchResults buildSearchResults(Map<String,Object> response,List<Tweet> tweets){
  Number maxId=response.containsKey("String_Node_Str") ? (Number)response.get("String_Node_Str") : 0;
  Number sinceId=response.containsKey("String_Node_Str") ? (Number)response.get("String_Node_Str") : 0;
  return new SearchResults(tweets,maxId.longValue(),sinceId.longValue(),response.get("String_Node_Str") == null);
}
Program: 17588
Project: 17588
Buggy source:
@Test public void buildSearchResults(){
  TwitterTemplate twitter=new TwitterTemplate(null);
  Map<String,Object> response=new HashMap<String,Object>();
  response.put("String_Node_Str","String_Node_Str");
  response.put("String_Node_Str","String_Node_Str");
  response.put("String_Node_Str","String_Node_Str");
  SearchResults results=twitter.buildSearchResults(response,new ArrayList<Tweet>());
  assertEquals(42,results.getMaxId());
  assertEquals(24,results.getSinceId());
  assertEquals(false,results.isLastPage());
}

Fixed version (ground truth):
@Test public void buildSearchResults(){
  TwitterTemplate twitter=new TwitterTemplate(null);
  Map<String,Object> response=new HashMap<String,Object>();
  response.put("String_Node_Str",42);
  response.put("String_Node_Str",24);
  response.put("String_Node_Str","String_Node_Str");
  SearchResults results=twitter.buildSearchResults(response,new ArrayList<Tweet>());
  assertEquals(42,results.getMaxId());
  assertEquals(24,results.getSinceId());
  assertEquals(false,results.isLastPage());
}
Program: 17590
Project: 17590
Buggy source:
public Object getValueAt(int rowIndex,int columnIndex){
  VariableMapping mapping=null;
  if (rowIndex == 0) {
    mapping=this.population.getContext().getResult();
  }
 else {
    mapping=this.population.getContext().getDefinedVariables().get(rowIndex - 1);
  }
switch (columnIndex) {
case 0:
    return "String_Node_Str" + rowIndex;
case 1:
  if (rowIndex == 0) {
    return "String_Node_Str";
  }
 else {
    return mapping.getName();
  }
case 2:
return mapping.getVariableType().toString();
case 3:
return "String_Node_Str" + mapping.isEnum();
case 4:
return "String_Node_Str" + mapping.getEnumType();
case 5:
return "String_Node_Str" + mapping.getEnumValueCount();
default :
return "String_Node_Str";
}
}

Fixed version (ground truth):
public Object getValueAt(int rowIndex,int columnIndex){
  VariableMapping mapping=null;
  if (rowIndex == 0) {
    mapping=this.population.getContext().getResult();
  }
 else {
    mapping=this.population.getContext().getDefinedVariables().get(rowIndex - 1);
  }
switch (columnIndex) {
case 0:
    return "String_Node_Str" + rowIndex;
case 1:
  if (rowIndex == 0) {
    return "String_Node_Str";
  }
 else {
    return mapping.getName();
  }
case 2:
return mapping.getVariableType().toString();
case 3:
return "String_Node_Str" + mapping.getEnumType();
case 4:
return "String_Node_Str" + mapping.getEnumValueCount();
default :
return "String_Node_Str";
}
}
Program: 17593
Project: 17593
Buggy source:
private void performPrgPopulationTrain(ProjectEGFile file,MLDataSet trainingData,MLDataSet validationData){
  TrainEPLPopulationDialog dialog=new TrainEPLPopulationDialog();
  if (dialog.process()) {
    PrgPopulation pop=(PrgPopulation)file.getObject();
    PrgGenetic train=new PrgGenetic(pop,trainingData);
    if (dialog.getSimplify().getValue()) {
      pop.addRewriteRule(new RewriteConstants());
      pop.addRewriteRule(new RewriteAlgebraic());
    }
    train.addOperation(0.95,new SubtreeCrossover());
    train.addOperation(0.05,new SubtreeMutation(pop.getContext(),4));
    ComplexityAdjustedScore adj=new ComplexityAdjustedScore(dialog.getComplexityPenaltyThreshold().getValue(),dialog.getComplexityPentaltyFullThreshold().getValue(),dialog.getComplexityPenalty().getValue(),dialog.getComplexityFullPenalty().getValue());
    train.addScoreAdjuster(adj);
    startup(file,train,0.0,validationData);
  }
}

Fixed version (ground truth):
private void performPrgPopulationTrain(ProjectEGFile file,MLDataSet trainingData,MLDataSet validationData){
  TrainEPLPopulationDialog dialog=new TrainEPLPopulationDialog();
  if (dialog.process()) {
    PrgPopulation pop=(PrgPopulation)file.getObject();
    TrainEA train=new TrainEA(pop,trainingData);
    if (dialog.getSimplify().getValue()) {
      pop.addRewriteRule(new RewriteConstants());
      pop.addRewriteRule(new RewriteAlgebraic());
    }
    train.addOperation(0.95,new SubtreeCrossover());
    train.addOperation(0.05,new SubtreeMutation(pop.getContext(),4));
    ComplexityAdjustedScore adj=new ComplexityAdjustedScore(dialog.getComplexityPenaltyThreshold().getValue(),dialog.getComplexityPentaltyFullThreshold().getValue(),dialog.getComplexityPenalty().getValue(),dialog.getComplexityFullPenalty().getValue());
    train.addScoreAdjuster(adj);
    startup(file,train,0.0,validationData);
  }
}
Program: 17594
Project: 17594
Buggy source:
private void performPrgPopulationTrain(ProjectEGFile file,MLDataSet trainingData,MLDataSet validationData){
  TrainEPLPopulationDialog dialog=new TrainEPLPopulationDialog();
  if (dialog.process()) {
    PrgPopulation pop=(PrgPopulation)file.getObject();
    TrainEA train=new TrainEA(pop,trainingData);
    if (dialog.getSimplify().getValue()) {
      train.addRewriteRule(new RewriteConstants());
      train.addRewriteRule(new RewriteAlgebraic());
    }
    train.addOperation(dialog.getCrossoverProbability().getValue(),new SubtreeCrossover());
    train.addOperation(dialog.getMutateProbability().getValue(),new SubtreeMutation(pop.getContext(),4));
    train.setSpeciation(new PrgSpeciation());
    ComplexityAdjustedScore adj=new ComplexityAdjustedScore(dialog.getComplexityPenaltyThreshold().getValue(),dialog.getComplexityPentaltyFullThreshold().getValue(),dialog.getComplexityPenalty().getValue(),dialog.getComplexityFullPenalty().getValue());
    train.addScoreAdjuster(adj);
    startup(file,train,0.0,validationData);
  }
}

Fixed version (ground truth):
private void performPrgPopulationTrain(ProjectEGFile file,MLDataSet trainingData,MLDataSet validationData){
  TrainEPLPopulationDialog dialog=new TrainEPLPopulationDialog();
  if (dialog.process()) {
    PrgPopulation pop=(PrgPopulation)file.getObject();
    TrainEA train=new TrainEA(pop,trainingData);
    if (dialog.getSimplify().getValue()) {
      train.getRules().addRewriteRule(new RewriteConstants());
      train.getRules().addRewriteRule(new RewriteAlgebraic());
    }
    train.addOperation(dialog.getCrossoverProbability().getValue(),new SubtreeCrossover());
    train.addOperation(dialog.getMutateProbability().getValue(),new SubtreeMutation(pop.getContext(),4));
    train.setSpeciation(new PrgSpeciation());
    ComplexityAdjustedScore adj=new ComplexityAdjustedScore(dialog.getComplexityPenaltyThreshold().getValue(),dialog.getComplexityPentaltyFullThreshold().getValue(),dialog.getComplexityPenalty().getValue(),dialog.getComplexityFullPenalty().getValue());
    train.addScoreAdjuster(adj);
    startup(file,train,0.0,validationData);
  }
}