nus-yam/ex-repair huggingface dataset:
Program: 168047
Project: 168047
Buggy source:
protected Class<UnboundedQueueThreadPoolExecutor> getElementClass(){
  return UnboundedQueueThreadPoolExecutor.class;
}

Fixed version (ground truth):
@Override protected Class<UnboundedQueueThreadPoolExecutor> getElementClass(){
  return UnboundedQueueThreadPoolExecutor.class;
}
Program: 168048
Project: 168048
Buggy source:
public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
  streamWriter.writeAttribute("String_Node_Str",getName());
  final ScaledCount maxThreads=getMaxThreads();
  if (maxThreads != null)   writeScaledCountElement(streamWriter,maxThreads,"String_Node_Str");
  final TimeSpec keepaliveTime=getKeepaliveTime();
  if (keepaliveTime != null)   writeTimeSpecElement(streamWriter,keepaliveTime,"String_Node_Str");
  final String threadFactory=getThreadFactory();
  if (threadFactory != null) {
    streamWriter.writeEmptyElement("String_Node_Str");
    streamWriter.writeAttribute("String_Node_Str",threadFactory);
  }
  final PropertiesElement properties=getProperties();
  if (properties != null) {
    streamWriter.writeStartElement("String_Node_Str");
    properties.writeContent(streamWriter);
  }
  streamWriter.writeEndElement();
}

Fixed version (ground truth):
@Override public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
  streamWriter.writeAttribute("String_Node_Str",getName());
  final ScaledCount maxThreads=getMaxThreads();
  if (maxThreads != null)   writeScaledCountElement(streamWriter,maxThreads,"String_Node_Str");
  final TimeSpec keepaliveTime=getKeepaliveTime();
  if (keepaliveTime != null)   writeTimeSpecElement(streamWriter,keepaliveTime,"String_Node_Str");
  final String threadFactory=getThreadFactory();
  if (threadFactory != null) {
    streamWriter.writeEmptyElement("String_Node_Str");
    streamWriter.writeAttribute("String_Node_Str",threadFactory);
  }
  final PropertiesElement properties=getProperties();
  if (properties != null) {
    streamWriter.writeStartElement("String_Node_Str");
    properties.writeContent(streamWriter);
  }
  streamWriter.writeEndElement();
}
Program: 168049
Project: 168049
Buggy source:
public long elementHash(){
  return 0;
}

Fixed version (ground truth):
@Override public long elementHash(){
  return 0;
}
Program: 168050
Project: 168050
Buggy source:
public void activate(final ServiceActivatorContext context){
  final BatchBuilder batchBuilder=context.getBatchBuilder();
  final ScheduledThreadPoolService service=new ScheduledThreadPoolService();
  final ServiceName serviceName=JBOSS_THREAD_SCHEDULED_EXECUTOR.append(getName());
  final BatchServiceBuilder<ScheduledExecutorService> serviceBuilder=batchBuilder.addService(serviceName,service);
  final String threadFactory=getThreadFactory();
  final ServiceName threadFactoryName;
  if (threadFactory == null) {
    threadFactoryName=serviceName.append("String_Node_Str");
    batchBuilder.addService(threadFactoryName,new ThreadFactoryService());
  }
 else {
    threadFactoryName=JBOSS_THREAD_FACTORY.append(threadFactory);
  }
  serviceBuilder.addDependency(JBOSS_THREAD_FACTORY.append(threadFactory),ThreadFactory.class,service.getThreadFactoryInjector());
}

Fixed version (ground truth):
public void activate(final ServiceActivatorContext context){
  final BatchBuilder batchBuilder=context.getBatchBuilder();
  final ScheduledThreadPoolService service=new ScheduledThreadPoolService();
  final ServiceName serviceName=JBOSS_THREAD_SCHEDULED_EXECUTOR.append(getName());
  final BatchServiceBuilder<ScheduledExecutorService> serviceBuilder=batchBuilder.addService(serviceName,service);
  final String threadFactory=getThreadFactory();
  final ServiceName threadFactoryName;
  if (threadFactory == null) {
    threadFactoryName=serviceName.append("String_Node_Str");
    batchBuilder.addService(threadFactoryName,new ThreadFactoryService());
  }
 else {
    threadFactoryName=JBOSS_THREAD_FACTORY.append(threadFactory);
  }
  serviceBuilder.addDependency(threadFactoryName,ThreadFactory.class,service.getThreadFactoryInjector());
}
Program: 168051
Project: 168051
Buggy source:
public ScheduledThreadPoolExecutorElement(final XMLExtendedStreamReader reader) throws XMLStreamException {
  super(reader);
  final int count=reader.getAttributeCount();
  for (int i=0; i < count; i++) {
    if (reader.getAttributeNamespace(i) != null) {
      throw unexpectedAttribute(reader,i);
    }
    final Attribute attribute=Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
case NAME:
      break;
default :
    throw unexpectedAttribute(reader,i);
}
}
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
switch (Namespace.forUri(reader.getNamespaceURI())) {
case THREADS_1_0:
{
switch (Element.forName(reader.getLocalName())) {
case MAX_THREADS:
{
        setMaxThreads(readScaledCountElement(reader));
        break;
      }
case KEEPALIVE_TIME:
{
      setKeepaliveTime(readTimeSpecElement(reader));
      break;
    }
case THREAD_FACTORY:
{
    setThreadFactory(readStringAttributeElement(reader,"String_Node_Str"));
    break;
  }
case PROPERTIES:
{
  setProperties(new PropertiesElement(reader));
  break;
}
default :
throw unexpectedElement(reader);
}
}
default :
{
throw unexpectedElement(reader);
}
}
}
}

Fixed version (ground truth):
public ScheduledThreadPoolExecutorElement(final XMLExtendedStreamReader reader) throws XMLStreamException {
  super(reader);
  final int count=reader.getAttributeCount();
  for (int i=0; i < count; i++) {
    if (reader.getAttributeNamespace(i) != null) {
      throw unexpectedAttribute(reader,i);
    }
    final Attribute attribute=Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
case NAME:
      break;
default :
    throw unexpectedAttribute(reader,i);
}
}
while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
switch (Namespace.forUri(reader.getNamespaceURI())) {
case THREADS_1_0:
{
switch (Element.forName(reader.getLocalName())) {
case MAX_THREADS:
{
        setMaxThreads(readScaledCountElement(reader));
        break;
      }
case KEEPALIVE_TIME:
{
      setKeepaliveTime(readTimeSpecElement(reader));
      break;
    }
case THREAD_FACTORY:
{
    setThreadFactory(readStringAttributeElement(reader,"String_Node_Str"));
    break;
  }
case PROPERTIES:
{
  setProperties(new PropertiesElement(reader));
  break;
}
default :
throw unexpectedElement(reader);
}
break;
}
default :
{
throw unexpectedElement(reader);
}
}
}
}
Program: 168053
Project: 168053
Buggy source:
@Override public void run(Map<ServiceName,StartException> serviceFailures,long elapsedTime,int numberServices){
  if (serviceFailures.isEmpty()) {
    logger.infof("String_Node_Str",numberServices,elapsedTime);
    new Exception().printStackTrace();
    sendMessage("String_Node_Str");
  }
 else {
    sendMessage("String_Node_Str");
    final StringBuilder buff=new StringBuilder(String.format("String_Node_Str",numberServices,elapsedTime));
    buff.append("String_Node_Str");
    for (    Map.Entry<ServiceName,StartException> entry : serviceFailures.entrySet()) {
      buff.append(String.format("String_Node_Str",entry.getKey(),entry.getValue().getMessage()));
    }
    logger.error(buff.toString());
  }
}

Fixed version (ground truth):
@Override public void run(Map<ServiceName,StartException> serviceFailures,long elapsedTime,int numberServices){
  if (serviceFailures.isEmpty()) {
    logger.infof("String_Node_Str",numberServices,elapsedTime);
    sendMessage("String_Node_Str");
  }
 else {
    sendMessage("String_Node_Str");
    final StringBuilder buff=new StringBuilder(String.format("String_Node_Str",numberServices,elapsedTime));
    buff.append("String_Node_Str");
    for (    Map.Entry<ServiceName,StartException> entry : serviceFailures.entrySet()) {
      buff.append(String.format("String_Node_Str",entry.getKey(),entry.getValue().getMessage()));
    }
    logger.error(buff.toString());
  }
}
Program: 168054
Project: 168054
Buggy source:
private void launchProcessManagerSlave(){
  this.processManagerSlave=ProcessManagerSlaveFactory.getInstance().getProcessManagerSlave(environment,messageHandler);
  Thread t=new Thread(this.processManagerSlave.getController(),"String_Node_Str");
  t.setDaemon(true);
  t.start();
}

Fixed version (ground truth):
private void launchProcessManagerSlave(){
  this.processManagerSlave=ProcessManagerSlaveFactory.getInstance().getProcessManagerSlave(environment,messageHandler);
  Thread t=new Thread(this.processManagerSlave.getController(),"String_Node_Str");
  t.start();
}
Program: 168055
Project: 168055
Buggy source:
private PropertySource<?> loadPropertySource(Resource resource,String path){
  if (resource.exists()) {
    try {
      PropertySource<?> source=new YamlPropertySourceLoader().load(path,resource,null);
      if (source != null) {
        logger.info("String_Node_Str" + resource);
      }
      return source;
    }
 catch (    IOException e) {
    }
  }
  return null;
}

Fixed version (ground truth):
private PropertySource<?> loadPropertySource(Resource resource,String path){
  if (resource.exists()) {
    try {
      PropertySource<?> source=new YamlPropertySourceLoader().load(path,resource,null,this.environment::acceptsProfiles);
      if (source != null) {
        logger.info("String_Node_Str" + resource);
      }
      return source;
    }
 catch (    IOException e) {
    }
  }
  return null;
}
Program: 168056
Project: 168056
Buggy source:
/** 
 * @return the method
 */
public String getMethod(){
  return method;
}

Fixed version (ground truth):
public String getMethod(){
  return method;
}
Program: 168057
Project: 168057
Buggy source:
private void setStatusLine(String line){
  statusLine=line;
  if (request) {
    sl=new RequestStatusLine(line);
    method=sl.getMethod();
  }
 else {
    ResponseStatusLine sl=new ResponseStatusLine(line);
    statusCode=sl.getStatusCode();
  }
}

Fixed version (ground truth):
private void setStatusLine(String line){
  Log.d(TAG,channelName + "String_Node_Str" + line);
  statusLine=line;
  if (request) {
    sl=new RequestLine(line);
    method=sl.getMethod();
  }
 else {
    ResponseLine sl=new ResponseLine(line);
    statusCode=sl.getStatusCode();
  }
}
Program: 168058
Project: 168058
Buggy source:
public Channel(boolean req){
  readBuf=new char[1024];
  headers=new HashMap<String,String>();
  request=req;
  channelName="String_Node_Str" + (INDEX++);
  reset();
}

Fixed version (ground truth):
public Channel(boolean req){
  readBuf=new char[1024];
  headers=new HashMap<String,String>();
  request=req;
  channelName="String_Node_Str" + (INDEX++);
  readOffset=0;
  reset();
}
Program: 168059
Project: 168059
Buggy source:
public void reset(){
  lastActive=System.currentTimeMillis();
  readOffset=0;
  status=Status.STATUS_LINE;
  headers.clear();
}

Fixed version (ground truth):
public void reset(){
  lastActive=System.currentTimeMillis();
  if ("String_Node_Str".equals(method)) {
    status=Status.CONTENT;
  }
 else {
    status=Status.STATUS_LINE;
  }
  headers.clear();
}
Program: 168060
Project: 168060
Buggy source:
/** 
 * @param listener the listener to set
 */
public void setListener(ChannelListener listener){
  this.listener=listener;
}

Fixed version (ground truth):
public void setListener(ChannelListener listener){
  this.listener=listener;
}
Program: 168061
Project: 168061
Buggy source:
/** 
 * @return the listener
 */
public ChannelListener getListener(){
  return listener;
}

Fixed version (ground truth):
public ChannelListener getListener(){
  return listener;
}
Program: 168063
Project: 168063
Buggy source:
public static ProxyServer getInstance(){
  if (instance == null) {
    instance=new ProxyServer();
  }
  return instance;
}

Fixed version (ground truth):
public static ProxyServer getInstance(){
synchronized (ProxyServer.class) {
    if (instance == null) {
      instance=new ProxyServer();
    }
  }
  return instance;
}
Program: 168066
Project: 168066
Buggy source:
private String constructSearchQueryString(String query,String title,String author,String site,String linkId,String subreddit) throws UnsupportedEncodingException {
  String queryString="String_Node_Str";
  if (null != query && !query.isEmpty())   queryString="String_Node_Str" + query;
  if (null != title && !title.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + title;
 else     queryString+="String_Node_Str" + title;
  }
  if (null != author && !author.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + author;
 else     queryString+="String_Node_Str" + author;
  }
  if (null != site && !site.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + site;
 else     queryString+="String_Node_Str" + site;
  }
  if (null != linkId && !linkId.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + linkId;
 else     queryString+="String_Node_Str" + linkId;
  }
  if (null != subreddit && !subreddit.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + subreddit;
 else     queryString+="String_Node_Str" + subreddit;
  }
  queryString=URLEncoder.encode(queryString,"String_Node_Str");
  return queryString;
}

Fixed version (ground truth):
private String constructSearchQueryString(String query,String title,String author,String site,String linkId,String subreddit) throws UnsupportedEncodingException {
  String queryString="String_Node_Str";
  if (null != query && !query.isEmpty())   queryString+=query;
  if (null != title && !title.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + title;
 else     queryString+="String_Node_Str" + title;
  }
  if (null != author && !author.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + author;
 else     queryString+="String_Node_Str" + author;
  }
  if (null != site && !site.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + site;
 else     queryString+="String_Node_Str" + site;
  }
  if (null != linkId && !linkId.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + linkId;
 else     queryString+="String_Node_Str" + linkId;
  }
  if (null != subreddit && !subreddit.isEmpty()) {
    if (queryString.isEmpty())     queryString+="String_Node_Str" + subreddit;
 else     queryString+="String_Node_Str" + subreddit;
  }
  queryString=URLEncoder.encode(queryString,"String_Node_Str");
  return queryString;
}
Program: 168069
Project: 168069
Buggy source:
private Browser createBrowser(Composite parent,final IActionBars actionBars){
  GridLayout gridLayout=new GridLayout();
  gridLayout.numColumns=2;
  parent.setLayout(gridLayout);
  GridData data=new GridData();
  data=new GridData();
  data.horizontalAlignment=GridData.FILL;
  data.grabExcessHorizontalSpace=true;
  browser=new Browser(parent,SWT.NONE);
  data=new GridData();
  data.horizontalAlignment=GridData.FILL;
  data.verticalAlignment=GridData.FILL;
  data.horizontalSpan=2;
  data.grabExcessHorizontalSpace=true;
  data.grabExcessVerticalSpace=true;
  browser.setLayoutData(data);
  browser.addOpenWindowListener(new OpenWindowListener(){
    public void open(    WindowEvent event){
      WebView.this.openWindow(event);
    }
  }
);
  browser.addCloseWindowListener(new CloseWindowListener(){
    public void close(    WindowEvent event){
      WebView.this.close();
    }
  }
);
  actionBars.setGlobalActionHandler("String_Node_Str",refreshAction);
  return browser;
}

Fixed version (ground truth):
private Browser createBrowser(Composite parent,final IActionBars actionBars){
  GridLayout gridLayout=new GridLayout();
  gridLayout.numColumns=2;
  parent.setLayout(gridLayout);
  GridData data=new GridData();
  data=new GridData();
  data.horizontalAlignment=GridData.FILL;
  data.grabExcessHorizontalSpace=true;
  browser=new Browser(parent,SWT.NONE);
  new CustomFunction(browser,"String_Node_Str");
  data=new GridData();
  data.horizontalAlignment=GridData.FILL;
  data.verticalAlignment=GridData.FILL;
  data.horizontalSpan=2;
  data.grabExcessHorizontalSpace=true;
  data.grabExcessVerticalSpace=true;
  browser.setLayoutData(data);
  browser.addOpenWindowListener(new OpenWindowListener(){
    public void open(    WindowEvent event){
      WebView.this.openWindow(event);
    }
  }
);
  browser.addCloseWindowListener(new CloseWindowListener(){
    public void close(    WindowEvent event){
      WebView.this.close();
    }
  }
);
  actionBars.setGlobalActionHandler("String_Node_Str",refreshAction);
  return browser;
}
Program: 168075
Project: 168075
Buggy source:
public boolean crawlBrowse(String outputDir,int month,String day,String year,String president,String documentCategory,IProgressMonitor monitor) throws IOException {
  boolean flag=true;
  int progressMonitorIncrement=890;
  this.outputDir=outputDir;
  setDir();
  Connection conn=Jsoup.connect("String_Node_Str").data("String_Node_Str","String_Node_Str").data("String_Node_Str","String_Node_Str").data("String_Node_Str",documentCategory).data("String_Node_Str",president);
  Elements elements;
  conn=conn.data("String_Node_Str",month == -1 ? "String_Node_Str" : months[month]).data("String_Node_Str",day).data("String_Node_Str",year);
  elements=conn.post().body().child(0).child(0).child(1).child(0).child(0).child(0).child(0).child(1).child(2).child(0).children();
  if (elements != null && elements.size() != 0) {
    elements.remove(0);
    for (    Element element : elements) {
      strDate="String_Node_Str";
      try {
        strDate=element.child(0).text();
        strName=element.child(1).text();
        strTitle=element.child(3).child(0).child(0).text();
        extractInfo(element.child(3).child(0).child(0).attr("String_Node_Str"));
      }
 catch (      Exception e) {
      }
      monitor.worked(progressMonitorIncrement);
    }
  }
 else {
    flag=false;
  }
  try {
    jsonGenerator.writeEndArray();
    jsonGenerator.flush();
    jsonGenerator.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return flag;
}

Fixed version (ground truth):
public boolean crawlBrowse(String outputDir,int month,String day,String year,String president,String documentCategory,IProgressMonitor monitor) throws IOException {
  boolean flag=true;
  int progressMonitorIncrement=890;
  this.outputDir=outputDir;
  setDir();
  Connection conn=Jsoup.connect("String_Node_Str").data("String_Node_Str","String_Node_Str").data("String_Node_Str","String_Node_Str").data("String_Node_Str",documentCategory).data("String_Node_Str",president);
  Elements elements;
  conn=conn.data("String_Node_Str",month == -1 ? "String_Node_Str" : months[month]).data("String_Node_Str",day).data("String_Node_Str",year);
  elements=conn.post().body().child(0).child(0).child(1).child(0).child(0).child(0).child(0).child(1).child(2).child(0).children();
  int number=0;
  if (elements != null && elements.size() != 0) {
    elements.remove(0);
    for (    Element element : elements) {
      strDate="String_Node_Str";
      try {
        strDate=element.child(0).text();
        strName=element.child(1).text();
        strTitle=element.child(3).child(0).child(0).text();
        extractInfo(element.child(3).child(0).child(0).attr("String_Node_Str"));
        ConsoleView.printlInConsoleln("String_Node_Str" + strTitle);
        number+=1;
      }
 catch (      Exception e) {
      }
      monitor.worked(progressMonitorIncrement);
    }
  }
 else {
    flag=false;
  }
  try {
    jsonGenerator.writeEndArray();
    jsonGenerator.flush();
    jsonGenerator.close();
    ConsoleView.printlInConsoleln(number + "String_Node_Str");
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return flag;
}
Program: 168079
Project: 168079
Buggy source:
void extractInfo(String link) throws Exception {
  try {
    String url="String_Node_Str" + link;
    Document doc1=Jsoup.connect(url).get();
    Element element=doc1.body().child(0).child(0).child(1).child(0).child(0).child(0).child(0).child(1).child(5).child(0).child(2).child(0).child(1);
    jsonGenerator.writeStartObject();
    jsonGenerator.writeStringField("String_Node_Str",strDate);
    jsonGenerator.writeStringField("String_Node_Str",strName);
    jsonGenerator.writeStringField("String_Node_Str",strTitle);
    String body="String_Node_Str";
    for (    Element el : element.getElementsByTag("String_Node_Str")) {
      body+=el.text();
    }
    jsonGenerator.writeStringField("String_Node_Str",body);
    jsonGenerator.writeEndObject();
  }
 catch (  Exception e) {
    throw e;
  }
}

Fixed version (ground truth):
void extractInfo(String link) throws Exception {
  try {
    String url="String_Node_Str" + link;
    Document doc1=Jsoup.connect(url).get();
    Element element=doc1.body().child(0).child(0).child(1).child(0).child(0).child(0).child(0).child(1).child(5).child(0).child(2).child(0).child(1);
    jsonGenerator.writeStartObject();
    jsonGenerator.writeStringField("String_Node_Str",strDate);
    jsonGenerator.writeStringField("String_Node_Str",strName);
    jsonGenerator.writeStringField("String_Node_Str",strTitle);
    String body=element.ownText();
    for (    Element el : element.getElementsByTag("String_Node_Str")) {
      body+=el.text() + "String_Node_Str";
    }
    jsonGenerator.writeStringField("String_Node_Str",body);
    jsonGenerator.writeEndObject();
  }
 catch (  Exception e) {
    throw e;
  }
}
Program: 168084
Project: 168084
Buggy source:
private void deleteFiles(String outputPath){
  File toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
}

Fixed version (ground truth):
private void deleteFiles(String outputPath){
  File toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
  toDel=new File(outputPath + "String_Node_Str");
  toDel.delete();
}
Program: 168087
Project: 168087
Buggy source:
private boolean canProceed(){
  TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
  boolean canPerform=true;
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  String message=OutputPathValidation.getInstance().validateOutputDirectory(layoutData.getOutputLabel().getText(),"String_Node_Str");
  if (message != null) {
    message=layoutData.getOutputLabel().getText() + "String_Node_Str" + message;
    form.getMessageManager().addMessage("String_Node_Str",message,null,IMessageProvider.ERROR);
    canPerform=false;
  }
  try {
    if (inputLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      canPerform=false;
    }
  }
 catch (  Exception e) {
    canPerform=false;
  }
  try {
    if (dictLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      canPerform=false;
    }
  }
 catch (  Exception e) {
    canPerform=false;
  }
  return canPerform;
}

Fixed version (ground truth):
private boolean canProceed(){
  TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  String message=OutputPathValidation.getInstance().validateOutputDirectory(layoutData.getOutputLabel().getText(),"String_Node_Str");
  if (message != null) {
    message=layoutData.getOutputLabel().getText() + "String_Node_Str" + message;
    form.getMessageManager().addMessage("String_Node_Str",message,null,IMessageProvider.ERROR);
    return false;
  }
  try {
    if (inputLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      return false;
    }
  }
 catch (  Exception e) {
    return false;
  }
  try {
    if (dictLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      return false;
    }
  }
 catch (  Exception e) {
    return false;
  }
  try {
    List<Object> dictPaths=dictLayoutData.getTypeCheckedSelectedFiles(checkType);
    Iterator<Object> dictPathIterator=dictPaths.iterator();
    while (dictPathIterator.hasNext()) {
      String dictPath=(String)dictPathIterator.next();
      if (!dictPath.endsWith("String_Node_Str")) {
        form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
        return false;
      }
    }
  }
 catch (  Exception e) {
    return false;
  }
  return true;
}
Program: 168088
Project: 168088
Buggy source:
public void countWords(List<String> inputFiles,List<String> dictionaryFiles){
  ConsoleView.printlInConsoleln("String_Node_Str");
  if (!setModels())   return;
  try {
    ConsoleView.printlInConsoleln("String_Node_Str");
    buildMaps(dictionaryFiles);
  }
 catch (  IOException e) {
    ConsoleView.printlInConsoleln("String_Node_Str");
    e.printStackTrace();
    return;
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  if (monitor.isCanceled())   throw new OperationCanceledException();
  for (  String iFile : inputFiles) {
    if (monitor.isCanceled())     throw new OperationCanceledException();
    do_countWords(iFile);
    if (doWordDistribution)     createWordDistribution(iFile);
    monitor.worked(2);
    refreshFileCounts();
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  addToCSV("String_Node_Str",this.numWords,this.numSentences,this.numDictWords,true);
  monitor.worked(5);
  closeWriters();
  generateRunReport();
  monitor.worked(1);
  return;
}

Fixed version (ground truth):
public void countWords(List<String> inputFiles,List<String> dictionaryFiles) throws OperationCanceledException, Exception {
  ConsoleView.printlInConsoleln("String_Node_Str");
  if (!setModels())   return;
  try {
    ConsoleView.printlInConsoleln("String_Node_Str");
    buildMaps(dictionaryFiles);
  }
 catch (  Exception e) {
    ConsoleView.printlInConsoleln("String_Node_Str");
    e.printStackTrace();
    throw new Exception("String_Node_Str");
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  if (monitor.isCanceled())   throw new OperationCanceledException();
  for (  String iFile : inputFiles) {
    if (monitor.isCanceled())     throw new OperationCanceledException();
    do_countWords(iFile);
    if (doWordDistribution)     createWordDistribution(iFile);
    monitor.worked(2);
    refreshFileCounts();
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  addToCSV("String_Node_Str",this.numWords,this.numSentences,this.numDictWords,true);
  monitor.worked(5);
  closeWriters();
  generateRunReport();
  monitor.worked(1);
  return;
}
Program: 168090
Project: 168090
Buggy source:
private boolean canProceed(){
  boolean canPerform=true;
  TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  String message=OutputPathValidation.getInstance().validateOutputDirectory(layoutData.getOutputLabel().getText(),"String_Node_Str");
  if (message != null) {
    message=layoutData.getOutputLabel().getText() + "String_Node_Str" + message;
    form.getMessageManager().addMessage("String_Node_Str",message,null,IMessageProvider.ERROR);
    canPerform=false;
  }
  try {
    if (inputLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      canPerform=false;
    }
  }
 catch (  Exception e) {
    canPerform=false;
  }
  try {
    if (dictLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      canPerform=false;
    }
  }
 catch (  Exception e) {
    canPerform=false;
  }
  return canPerform;
}

Fixed version (ground truth):
private boolean canProceed(){
  TacitFormComposite.updateStatusMessage(getViewSite(),null,null,form);
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  form.getMessageManager().removeMessage("String_Node_Str");
  String message=OutputPathValidation.getInstance().validateOutputDirectory(layoutData.getOutputLabel().getText(),"String_Node_Str");
  if (message != null) {
    message=layoutData.getOutputLabel().getText() + "String_Node_Str" + message;
    form.getMessageManager().addMessage("String_Node_Str",message,null,IMessageProvider.ERROR);
    return false;
  }
  try {
    if (inputLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      return false;
    }
  }
 catch (  Exception e) {
    return false;
  }
  try {
    if (dictLayoutData.getTypeCheckedSelectedFiles(checkType).size() < 1) {
      form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
      return false;
    }
  }
 catch (  Exception e) {
    return false;
  }
  try {
    List<Object> dictPaths=dictLayoutData.getTypeCheckedSelectedFiles(checkType);
    Iterator<Object> dictPathIterator=dictPaths.iterator();
    while (dictPathIterator.hasNext()) {
      String dictPath=(String)dictPathIterator.next();
      if (!dictPath.endsWith("String_Node_Str")) {
        form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
        return false;
      }
    }
  }
 catch (  Exception e) {
    return false;
  }
  return true;
}
Program: 168091
Project: 168091
Buggy source:
/** 
 * Function to be called incase of exception
 * @param monitor
 * @param e
 * @param message
 * @return
 */
private IStatus handleException(IProgressMonitor monitor,Exception e,String message){
  monitor.done();
  System.out.println(message);
  e.printStackTrace();
  TacitFormComposite.updateStatusMessage(getViewSite(),message,IStatus.ERROR,form);
  return Status.CANCEL_STATUS;
}

Fixed version (ground truth):
/** 
 * Function to be called incase of exception
 * @param monitor
 * @param e
 * @param message
 * @return
 */
private IStatus handleException(IProgressMonitor monitor,Exception e,String message){
  monitor.done();
  System.out.println(message);
  e.printStackTrace();
  TacitFormComposite.updateStatusMessage(getViewSite(),message + e.getMessage(),IStatus.ERROR,form);
  return Status.CANCEL_STATUS;
}
Program: 168096
Project: 168096
Buggy source:
private void convertKeys2csv(String fileName,Date dateObj){
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  BufferedReader br;
  BufferedWriter bw;
  try {
    br=new BufferedReader(new FileReader(new File(fileName + "String_Node_Str")));
    bw=new BufferedWriter(new FileWriter(new File(fileName + "String_Node_Str" + df.format(dateObj)+ "String_Node_Str")));
    String currentLine="String_Node_Str";
    bw.write(currentLine);
    bw.newLine();
    while ((currentLine=br.readLine()) != null) {
      currentLine=currentLine.replace('\t',',');
      List<String> wordList=Arrays.asList(currentLine.split("String_Node_Str"));
      bw.write(wordList.get(0) + "String_Node_Str" + wordList.get(2));
      bw.newLine();
    }
    br.close();
    bw.close();
    ConsoleView.printlInConsoleln("String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateObj)+ "String_Node_Str");
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void convertKeys2csv(String fileName,Date dateObj){
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  BufferedReader br;
  BufferedWriter bw;
  try {
    br=new BufferedReader(new FileReader(new File(fileName + "String_Node_Str")));
    bw=new BufferedWriter(new FileWriter(new File(fileName + "String_Node_Str" + df.format(dateObj)+ "String_Node_Str")));
    String currentLine="String_Node_Str";
    bw.write(currentLine);
    bw.newLine();
    while ((currentLine=br.readLine()) != null) {
      currentLine=currentLine.replace('\t',',');
      List<String> wordList=Arrays.asList(currentLine.split("String_Node_Str"));
      if (wordList.size() > 0)       bw.append(wordList.get(0));
      if (wordList.size() > 2)       bw.append("String_Node_Str" + wordList.get(2));
      bw.newLine();
    }
    br.close();
    bw.close();
    ConsoleView.printlInConsoleln("String_Node_Str" + fileName + "String_Node_Str"+ df.format(dateObj)+ "String_Node_Str");
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
}
Program: 168105
Project: 168105
Buggy source:
private boolean canItProceed(Map<String,List<String>> classPaths){
  if (classPaths.size() < 2 && classLayoutData.getTree().getItemCount() < 2) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else   if (classLayoutData.getTree().getItemCount() > 1 && classPaths.size() < 2) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  if (kValueText.getText().isEmpty()) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  if (!outputPathListener(outputPath,"String_Node_Str")) {
    return false;
  }
  isClassificationEnabled=classificationEnabled.getSelection();
  if (isClassificationEnabled) {
    if (!inputPathListener(classifyInputText,"String_Node_Str")) {
      return false;
    }
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  return true;
}

Fixed version (ground truth):
private boolean canItProceed(Map<String,List<String>> classPaths){
  if (classPaths.size() < 2 && classLayoutData.getTree().getItemCount() < 2) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else   if (classLayoutData.getTree().getItemCount() > 1 && classPaths.size() < 2) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  if (kValueText.getText().isEmpty()) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else   if (Integer.parseInt(kValueText.getText()) < 2) {
    form.getMessageManager().addMessage("String_Node_Str","String_Node_Str",null,IMessageProvider.ERROR);
    return false;
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  if (!outputPathListener(outputPath,"String_Node_Str")) {
    return false;
  }
  isClassificationEnabled=classificationEnabled.getSelection();
  if (isClassificationEnabled) {
    if (!inputPathListener(classifyInputText,"String_Node_Str")) {
      return false;
    }
  }
 else {
    form.getMessageManager().removeMessage("String_Node_Str");
  }
  return true;
}
Program: 168107
Project: 168107
Buggy source:
public void done(IJobChangeEvent event){
  if (!event.getResult().isOK()) {
    TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
  }
 else {
    TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
    ConsoleView.printlInConsoleln("String_Node_Str");
    TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void done(IJobChangeEvent event){
  if (!event.getResult().isOK()) {
    TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
  }
 else {
    TacitFormComposite.updateStatusMessage(getViewSite(),"String_Node_Str",IStatus.OK,form);
    ConsoleView.printlInConsoleln("String_Node_Str");
    TacitFormComposite.writeConsoleHeaderBegining("String_Node_Str");
  }
}
Program: 168108
Project: 168108
Buggy source:
public boolean doClassify(String classificationInputDir,String classificationOutputDir,IProgressMonitor monitor,Date dateObj) throws Exception {
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  ConsoleView.printlInConsoleln("String_Node_Str");
  String outputPath=classificationOutputDir + System.getProperty("String_Node_Str") + "String_Node_Str"+ "String_Node_Str"+ df.format(dateObj);
  BufferedWriter bw=new BufferedWriter(new FileWriter(new File(outputPath + "String_Node_Str")));
  Instances rawTestData=new DirectoryToArff().createTestInstances(classificationInputDir);
  Instances filteredTestData=Filter.useFilter(rawTestData,filter);
  Evaluation testEval=new Evaluation(dataFiltered);
  testEval.evaluateModel(nbc,filteredTestData);
  FastVector predictions=testEval.predictions();
  for (int i=0; i < predictions.size(); i++) {
    NominalPrediction np=(NominalPrediction)predictions.elementAt(i);
    int pred=(int)np.predicted();
    bw.write(DirectoryToArff.instanceIdNameMap.get(i) + "String_Node_Str" + dataFiltered.classAttribute().value(pred)+ "String_Node_Str");
  }
  return true;
}

Fixed version (ground truth):
public boolean doClassify(String classificationInputDir,String classificationOutputDir,IProgressMonitor monitor,Date dateObj) throws Exception {
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  ConsoleView.printlInConsoleln("String_Node_Str");
  Instances rawTestData=new DirectoryToArff().createTestInstances(classificationInputDir);
  Instances filteredTestData=Filter.useFilter(rawTestData,filter);
  Evaluation testEval=new Evaluation(dataFiltered);
  testEval.evaluateModel(nbc,filteredTestData);
  FastVector predictions=testEval.predictions();
  String outputPath=classificationOutputDir + System.getProperty("String_Node_Str") + "String_Node_Str"+ "String_Node_Str"+ df.format(dateObj);
  BufferedWriter bw=new BufferedWriter(new FileWriter(new File(outputPath + "String_Node_Str")));
  bw.write("String_Node_Str");
  for (int i=0; i < predictions.size(); i++) {
    NominalPrediction np=(NominalPrediction)predictions.elementAt(i);
    int pred=(int)np.predicted();
    bw.write(DirectoryToArff.instanceIdNameMap.get(i) + "String_Node_Str" + getClassName(dataFiltered.classAttribute().value(pred))+ "String_Node_Str");
  }
  bw.close();
  return true;
}
Program: 168109
Project: 168109
Buggy source:
private static void crossValidate(Classifier nbc,Instances dataFiltered,int k) throws Exception {
  Evaluation eval=new Evaluation(dataFiltered);
  eval.crossValidateModel(nbc,dataFiltered,k,new Random(1));
  ConsoleView.printlInConsoleln(eval.toSummaryString("String_Node_Str",false));
  double[][] confusion=eval.confusionMatrix();
  for (int i=0; i < confusion.length; i++) {
    for (int j=0; j < confusion[0].length; j++)     ConsoleView.printlInConsole(confusion[i][j] + "String_Node_Str");
    ConsoleView.printlInConsoleln();
  }
  ConsoleView.printlInConsoleln("String_Node_Str" + calculateAccuracy(eval.predictions()));
}

Fixed version (ground truth):
private static void crossValidate(Classifier nbc,Instances dataFiltered,int k) throws Exception {
  ConsoleView.printlInConsoleln("String_Node_Str");
  Evaluation eval=new Evaluation(dataFiltered);
  eval.crossValidateModel(nbc,dataFiltered,k,new Random(1));
  ConsoleView.printlInConsoleln(eval.toSummaryString("String_Node_Str",false));
  String[] attributes={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  HashMap<String,HashMap<String,String>> detailedResults=new HashMap<String,HashMap<String,String>>();
  String[] temp=eval.toClassDetailsString().toString().split("String_Node_Str");
  for (int i=3; i < temp.length - 1; i++) {
    String[] tmp=temp[i].split("String_Node_Str");
    String cName=getClassName(tmp[tmp.length - 1]);
    HashMap<String,String> classDetails=new HashMap<String,String>();
    int index=0;
    for (    String val : tmp) {
      val=val.replaceAll("String_Node_Str","String_Node_Str");
      if (val.length() != 0) {
        classDetails.put(attributes[index],val);
        index++;
      }
      if (index == attributes.length)       break;
    }
    detailedResults.put(cName,classDetails);
  }
  StringBuilder header=new StringBuilder();
  header.append("String_Node_Str" + "String_Node_Str");
  for (  String attr : attributes)   header.append(attr + "String_Node_Str");
  ConsoleView.printlInConsoleln(new String(header));
  for (  String cName : detailedResults.keySet()) {
    StringBuilder cDetails=new StringBuilder();
    cDetails.append(cName + "String_Node_Str");
    for (    String attr : attributes) {
      cDetails.append(detailedResults.get(cName).get(attr) + "String_Node_Str");
    }
    ConsoleView.printlInConsoleln(new String(cDetails));
  }
  ConsoleView.printlInConsoleln();
  ConsoleView.printlInConsoleln("String_Node_Str" + calculateAccuracy(eval.predictions()));
}
Program: 168110
Project: 168110
Buggy source:
@Override public void selectionChanged(IFormPart part,ISelection selection){
  corpusMgmtViewform.getMessageManager().removeAllMessages();
  selectedCorpusClass=(CorpusClass)((IStructuredSelection)selection).getFirstElement();
  classNameTxt.setText(selectedCorpusClass.getClassName());
  classPathTxt.setText(selectedCorpusClass.getClassPath());
  CorpusMangementValidation.validateClassData(selectedCorpusClass,corpusMgmtViewform);
  if ((selectedCorpusClass.getParent().getDatatype() != CMDataType.REDDIT_JSON && selectedCorpusClass.getParent().getDatatype() != CMDataType.TWITTER_JSON)) {
    keyFields.setVisible(false);
    keyFieldTxt.setVisible(false);
  }
 else {
    keyFields.setVisible(true);
    keyFieldTxt.setVisible(true);
    keyFieldTxt.setText(selectedCorpusClass.getKeyTextFields());
    if (keyFieldTxt.getText().isEmpty()) {
      if (selectedCorpusClass.getParent().getDatatype() == CMDataType.REDDIT_JSON)       keyFieldTxt.setText(QueryProcessorConstants.DEFAULT_REDDIT_DATA_FIELDS);
 else       if (selectedCorpusClass.getParent().getDatatype() == CMDataType.TWITTER_JSON)       keyFieldTxt.setText(QueryProcessorConstants.DEFAULT_TWITTER_DATA_FIELDS);
    }
  }
}

Fixed version (ground truth):
@Override public void selectionChanged(IFormPart part,ISelection selection){
  corpusMgmtViewform.getMessageManager().removeAllMessages();
  selectedCorpusClass=(CorpusClass)((IStructuredSelection)selection).getFirstElement();
  classNameTxt.setText(selectedCorpusClass.getClassName());
  classPathTxt.setText(selectedCorpusClass.getClassPath());
  CorpusMangementValidation.validateClassData(selectedCorpusClass,corpusMgmtViewform);
  if ((selectedCorpusClass.getParent().getDatatype() != CMDataType.REDDIT_JSON && selectedCorpusClass.getParent().getDatatype() != CMDataType.TWITTER_JSON)) {
    keyFields.setVisible(false);
    keyFieldTxt.setVisible(false);
    selectedCorpusClass.setKeyTextFields("String_Node_Str");
  }
 else {
    keyFields.setVisible(true);
    keyFieldTxt.setVisible(true);
    keyFieldTxt.setText(selectedCorpusClass.getKeyTextFields());
    if (keyFieldTxt.getText().isEmpty()) {
      if (selectedCorpusClass.getParent().getDatatype() == CMDataType.REDDIT_JSON)       keyFieldTxt.setText(QueryProcessorConstants.DEFAULT_REDDIT_DATA_FIELDS);
 else       if (selectedCorpusClass.getParent().getDatatype() == CMDataType.TWITTER_JSON)       keyFieldTxt.setText(QueryProcessorConstants.DEFAULT_TWITTER_DATA_FIELDS);
    }
    selectedCorpusClass.setKeyTextFields(keyFieldTxt.getText());
  }
}
Program: 168114
Project: 168114
Buggy source:
public void countWords(List<String> inputFiles,List<String> dictionaryFiles){
  ConsoleView.printlInConsoleln("String_Node_Str");
  if (!setModels())   return;
  try {
    ConsoleView.printlInConsoleln("String_Node_Str");
    buildMaps(dictionaryFiles);
  }
 catch (  IOException e) {
    ConsoleView.printlInConsoleln("String_Node_Str");
    e.printStackTrace();
    return;
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  if (monitor.isCanceled())   return;
  for (  String iFile : inputFiles) {
    if (monitor.isCanceled())     return;
    do_countWords(iFile);
    if (doWordDistribution)     createWordDistribution(iFile);
    monitor.worked(2);
    refreshFileCounts();
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  addToCSV("String_Node_Str",this.numWords,this.numSentences,this.numDictWords,true);
  monitor.worked(5);
  closeWriters();
  if (weighted)   TacitUtility.createRunReport(outputPath,"String_Node_Str",dateObj);
 else   TacitUtility.createRunReport(outputPath,"String_Node_Str",dateObj);
  monitor.worked(1);
  return;
}

Fixed version (ground truth):
public void countWords(List<String> inputFiles,List<String> dictionaryFiles){
  ConsoleView.printlInConsoleln("String_Node_Str");
  if (!setModels())   return;
  try {
    ConsoleView.printlInConsoleln("String_Node_Str");
    buildMaps(dictionaryFiles);
  }
 catch (  IOException e) {
    ConsoleView.printlInConsoleln("String_Node_Str");
    e.printStackTrace();
    return;
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  if (monitor.isCanceled())   throw new OperationCanceledException();
  for (  String iFile : inputFiles) {
    if (monitor.isCanceled())     throw new OperationCanceledException();
    do_countWords(iFile);
    if (doWordDistribution)     createWordDistribution(iFile);
    monitor.worked(2);
    refreshFileCounts();
  }
  ConsoleView.printlInConsoleln("String_Node_Str");
  monitor.subTask("String_Node_Str");
  addToCSV("String_Node_Str",this.numWords,this.numSentences,this.numDictWords,true);
  monitor.worked(5);
  closeWriters();
  if (weighted)   TacitUtility.createRunReport(outputPath,"String_Node_Str",dateObj);
 else   TacitUtility.createRunReport(outputPath,"String_Node_Str",dateObj);
  monitor.worked(1);
  return;
}