nus-yam/ex-repair huggingface dataset:
Program: 172042
Project: 172042
Buggy source:
/** 
 * Parse the platforms attribute returning the set of platform ids
 * @param platformStr String
 * @return EnumSet<PlatformType>
 */
protected final EnumSet<Platform.Type> parsePlatformString(String platformStr){
  EnumSet<Platform.Type> platformTypes=EnumSet.noneOf(Platform.Type.class);
  if (platformStr == null || platformStr.length() == 0)   return platformTypes;
  StringTokenizer token=new StringTokenizer(platformStr.toUpperCase(Locale.ENGLISH),"String_Node_Str");
  String typ=null;
  try {
    while (token.hasMoreTokens()) {
      typ=token.nextToken().trim();
      Platform.Type platform=Platform.Type.valueOf(typ);
      if (platform != Platform.Type.Unknown)       platformTypes.add(platform);
 else       throw new AlfrescoRuntimeException("String_Node_Str" + typ);
    }
  }
 catch (  IllegalArgumentException ex) {
    throw new AlfrescoRuntimeException("String_Node_Str" + typ);
  }
  return platformTypes;
}

Fixed version (ground truth):
/** 
 * Parse the platforms attribute returning the set of platform ids
 * @param platformStr String
 */
protected final EnumSet<Platform.Type> parsePlatformString(String platformStr){
  EnumSet<Platform.Type> platformTypes=EnumSet.noneOf(Platform.Type.class);
  if (platformStr == null || platformStr.length() == 0)   return platformTypes;
  StringTokenizer token=new StringTokenizer(platformStr.toUpperCase(Locale.ENGLISH),"String_Node_Str");
  String typ=null;
  try {
    while (token.hasMoreTokens()) {
      typ=token.nextToken().trim();
      Platform.Type platform=Platform.Type.valueOf(typ);
      if (platform != Platform.Type.Unknown)       platformTypes.add(platform);
 else       throw new AlfrescoRuntimeException("String_Node_Str" + typ);
    }
  }
 catch (  IllegalArgumentException ex) {
    throw new AlfrescoRuntimeException("String_Node_Str" + typ);
  }
  return platformTypes;
}
Program: 172043
Project: 172043
Buggy source:
/** 
 * Enumerate the action names
 * @return Enumeration<String>
 */
public final Enumeration<String> enumerateActionNames(){
  return m_actions.keys();
}

Fixed version (ground truth):
/** 
 * Enumerate the action names
 */
public final Enumeration<String> enumerateActionNames(){
  return m_actions.keys();
}
Program: 172044
Project: 172044
Buggy source:
/** 
 * Get the response value list
 * @return List<Object>
 */
public final List<Object> getResponseValues(){
  return m_responseValues;
}

Fixed version (ground truth):
/** 
 * Get the response value list
 */
public final List<Object> getResponseValues(){
  return m_responseValues;
}
Program: 172045
Project: 172045
Buggy source:
/** 
 * Update properties event
 * @param nodeRef NodeRef
 * @param before Map<QName, Serializable>
 * @param after Map<QName, Serializable>
 */
public void onUpdateProperties(NodeRef nodeRef,Map<QName,Serializable> before,Map<QName,Serializable> after){
  if (nodeRef.getStoreRef().equals(m_storeRef) == false) {
    return;
  }
  QName nodeType=m_nodeService.getType(nodeRef);
  FileFolderServiceType fType=m_fileFolderService.getType(nodeType);
  if (fType != FileFolderServiceType.INVALID) {
    String beforeLock=(String)before.get(ContentModel.PROP_LOCK_TYPE);
    String afterLock=(String)after.get(ContentModel.PROP_LOCK_TYPE);
    String beforeName=(String)before.get(ContentModel.PROP_NAME);
    String afterName=(String)after.get(ContentModel.PROP_NAME);
    if ((beforeLock != null && afterLock == null) || (beforeLock == null && afterLock != null)) {
      Path nodePath=m_nodeService.getPath(nodeRef);
      String relPath=nodePath.toDisplayPath(m_nodeService,m_permissionService);
      fireNodeEvent(new LockNodeEvent(fType,nodeRef,relPath,beforeName,beforeLock,afterLock));
    }
    if (beforeName != null && !beforeName.equals(afterName)) {
      ChildAssociationRef childAssocRef=m_nodeService.getPrimaryParent(nodeRef);
      String relPath2=buildRelativePathString(childAssocRef.getParentRef(),beforeName);
      String relPath3=buildRelativePathString(childAssocRef.getParentRef(),afterName);
      fireNodeEvent(new MoveNodeEvent(fType,nodeRef,relPath2,relPath3));
    }
  }
}

Fixed version (ground truth):
/** 
 * Update properties event
 * @param nodeRef NodeRef
 */
public void onUpdateProperties(NodeRef nodeRef,Map<QName,Serializable> before,Map<QName,Serializable> after){
  if (nodeRef.getStoreRef().equals(m_storeRef) == false) {
    return;
  }
  QName nodeType=m_nodeService.getType(nodeRef);
  FileFolderServiceType fType=m_fileFolderService.getType(nodeType);
  if (fType != FileFolderServiceType.INVALID) {
    String beforeLock=(String)before.get(ContentModel.PROP_LOCK_TYPE);
    String afterLock=(String)after.get(ContentModel.PROP_LOCK_TYPE);
    String beforeName=(String)before.get(ContentModel.PROP_NAME);
    String afterName=(String)after.get(ContentModel.PROP_NAME);
    if ((beforeLock != null && afterLock == null) || (beforeLock == null && afterLock != null)) {
      Path nodePath=m_nodeService.getPath(nodeRef);
      String relPath=nodePath.toDisplayPath(m_nodeService,m_permissionService);
      fireNodeEvent(new LockNodeEvent(fType,nodeRef,relPath,beforeName,beforeLock,afterLock));
    }
    if (beforeName != null && !beforeName.equals(afterName)) {
      ChildAssociationRef childAssocRef=m_nodeService.getPrimaryParent(nodeRef);
      String relPath2=buildRelativePathString(childAssocRef.getParentRef(),beforeName);
      String relPath3=buildRelativePathString(childAssocRef.getParentRef(),afterName);
      fireNodeEvent(new MoveNodeEvent(fType,nodeRef,relPath2,relPath3));
    }
  }
}
Program: 172046
Project: 172046
Buggy source:
/** 
 * Asynchronously generates thumbnails for the given node.
 * @param nodeRef NodeRef
 * @param thumbnailNames Set<String>
 */
public void createThumbnails(NodeRef nodeRef,Set<String> thumbnailNames){
  if (thumbnailNames == null || thumbnailNames.size() == 0) {
    return;
  }
  ThumbnailRegistry registry=thumbnailService.getThumbnailRegistry();
  Serializable value=this.nodeService.getProperty(nodeRef,ContentModel.PROP_CONTENT);
  ContentData contentData=DefaultTypeConverter.INSTANCE.convert(ContentData.class,value);
  if (contentData == null) {
    logger.info("String_Node_Str");
    return;
  }
  long size=contentData.getSize();
  String mimeType=contentData.getMimetype();
  for (  String thumbnailName : thumbnailNames) {
    ThumbnailDefinition details=registry.getThumbnailDefinition(thumbnailName);
    if (details == null) {
      logger.warn("String_Node_Str" + thumbnailName + "String_Node_Str");
      continue;
    }
 else {
      if (registry.isThumbnailDefinitionAvailable(contentData.getContentUrl(),mimeType,size,nodeRef,details)) {
        org.alfresco.service.cmr.action.Action action=ThumbnailHelper.createCreateThumbnailAction(details,serviceRegistry);
        actionService.executeAction(action,nodeRef,true,true);
      }
 else {
        logger.info("String_Node_Str" + details.getName() + "String_Node_Str"+ mimeType+ "String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Asynchronously generates thumbnails for the given node.
 * @param nodeRef NodeRef
 */
public void createThumbnails(NodeRef nodeRef,Set<String> thumbnailNames){
  if (thumbnailNames == null || thumbnailNames.size() == 0) {
    return;
  }
  ThumbnailRegistry registry=thumbnailService.getThumbnailRegistry();
  Serializable value=this.nodeService.getProperty(nodeRef,ContentModel.PROP_CONTENT);
  ContentData contentData=DefaultTypeConverter.INSTANCE.convert(ContentData.class,value);
  if (contentData == null) {
    logger.info("String_Node_Str");
    return;
  }
  long size=contentData.getSize();
  String mimeType=contentData.getMimetype();
  for (  String thumbnailName : thumbnailNames) {
    ThumbnailDefinition details=registry.getThumbnailDefinition(thumbnailName);
    if (details == null) {
      logger.warn("String_Node_Str" + thumbnailName + "String_Node_Str");
      continue;
    }
 else {
      if (registry.isThumbnailDefinitionAvailable(contentData.getContentUrl(),mimeType,size,nodeRef,details)) {
        org.alfresco.service.cmr.action.Action action=ThumbnailHelper.createCreateThumbnailAction(details,serviceRegistry);
        actionService.executeAction(action,nodeRef,true,true);
      }
 else {
        logger.info("String_Node_Str" + details.getName() + "String_Node_Str"+ mimeType+ "String_Node_Str");
      }
    }
  }
}
Program: 172047
Project: 172047
Buggy source:
/** 
 * @param id String
 * @param actionConditionDefinitionName String
 * @param parameterValues Map<String, Serializable>
 */
public ActionConditionImpl(String id,String actionConditionDefinitionName,Map<String,Serializable> parameterValues){
  super(id,parameterValues);
  this.actionConditionDefinitionName=actionConditionDefinitionName;
}

Fixed version (ground truth):
/** 
 * @param id String
 * @param actionConditionDefinitionName String
 */
public ActionConditionImpl(String id,String actionConditionDefinitionName,Map<String,Serializable> parameterValues){
  super(id,parameterValues);
  this.actionConditionDefinitionName=actionConditionDefinitionName;
}
Program: 172048
Project: 172048
Buggy source:
/** 
 * Set the asynchronous action execution queues
 * @param asynchronousActionExecutionQueues the asynchronous action executionqueues
 * @deprecated Rather than inject a Map<String, AsynchronousActionExecutionQueue>, it ispreferable to inject individual  {@link AsynchronousActionExecutionQueue} instancesduring bean initialisation in a spring init-method.
 */
public void setAsynchronousActionExecutionQueues(Map<String,AsynchronousActionExecutionQueue> asynchronousActionExecutionQueues){
  this.asynchronousActionExecutionQueues=asynchronousActionExecutionQueues;
}

Fixed version (ground truth):
/** 
 * Set the asynchronous action execution queues
 * @param asynchronousActionExecutionQueues the asynchronous action executionqueues
 * @deprecated Rather than inject a map, it ispreferable to inject individual  {@link AsynchronousActionExecutionQueue} instancesduring bean initialisation in a spring init-method.
 */
public void setAsynchronousActionExecutionQueues(Map<String,AsynchronousActionExecutionQueue> asynchronousActionExecutionQueues){
  this.asynchronousActionExecutionQueues=asynchronousActionExecutionQueues;
}
Program: 172049
Project: 172049
Buggy source:
/** 
 * @param actionService RuntimeActionService
 * @param action Action
 * @param actionedUponNodeRef NodeRef
 * @param checkConditions boolean
 * @param actionChain Set<String>
 */
void executeAction(RuntimeActionService actionService,Action action,NodeRef actionedUponNodeRef,boolean checkConditions,Set<String> actionChain);

Fixed version (ground truth):
/** 
 * @param actionService RuntimeActionService
 * @param action Action
 * @param actionedUponNodeRef NodeRef
 * @param checkConditions boolean
 */
void executeAction(RuntimeActionService actionService,Action action,NodeRef actionedUponNodeRef,boolean checkConditions,Set<String> actionChain);
Program: 172050
Project: 172050
Buggy source:
/** 
 * @return List<Action>
 * @see org.alfresco.service.cmr.action.ActionList#getActions()
 */
public List<Action> getActions(){
  return this.actions.getActions();
}

Fixed version (ground truth):
/** 
 * @see org.alfresco.service.cmr.action.ActionList#getActions()
 */
public List<Action> getActions(){
  return this.actions.getActions();
}
Program: 172051
Project: 172051
Buggy source:
/** 
 * Set the action templates - IOC.
 * @param templateActionDefinitions List<TemplateActionDefinition>
 */
public void setTemplateActionDefinitions(List<TemplateActionDefinition> templateActionDefinitions){
  this.templateActionDefinitions=templateActionDefinitions;
}

Fixed version (ground truth):
/** 
 * Set the action templates - IOC.
 */
public void setTemplateActionDefinitions(List<TemplateActionDefinition> templateActionDefinitions){
  this.templateActionDefinitions=templateActionDefinitions;
}
Program: 172052
Project: 172052
Buggy source:
/** 
 * Set the map of parameters used by the template. These are processed via the template service to produce the actual poarameters.
 * @param parameterTemplates Map<String, String>
 */
public void setParameterTemplates(Map<String,String> parameterTemplates){
  this.parameterTemplates=parameterTemplates;
}

Fixed version (ground truth):
/** 
 * Set the map of parameters used by the template. These are processed via the template service to produce the actual poarameters.
 */
public void setParameterTemplates(Map<String,String> parameterTemplates){
  this.parameterTemplates=parameterTemplates;
}
Program: 172054
Project: 172054
Buggy source:
/** 
 * Sets the Workflow Definitions
 * @param workflowDefinitions List<Properties>
 */
public void setWorkflowDefinitions(List<Properties> workflowDefinitions){
  this.workflowDefinitions=workflowDefinitions;
}

Fixed version (ground truth):
/** 
 * Sets the Workflow Definitions
 */
public void setWorkflowDefinitions(List<Properties> workflowDefinitions){
  this.workflowDefinitions=workflowDefinitions;
}
Program: 172055
Project: 172055
Buggy source:
/** 
 * The same as   {@link AuditComponent#recordAuditValues(String,Map)}, but with controlled usage of userFilter
 * @param rootPath          a base path of {@link AuditPath} key entries concatenated with the path separator'/' ( {@link AuditApplication#AUDIT_PATH_SEPARATOR})
 * @param values            the values to audit mapped by {@link AuditPath} key relative to root path(may be <tt>null</tt>)
 * @param useUserFilter     if <tt>false<tt> the user filter is disabled.
 * @return                  Returns the values that were actually persisted, keyed by their full path.
 * @throws IllegalStateException if the transaction state could not be determined
 */
Map<String,Serializable> recordAuditValuesWithUserFilter(String rootPath,Map<String,Serializable> values,boolean useUserFilter);

Fixed version (ground truth):
/** 
 * The same as   {@link AuditComponent#recordAuditValues(String,Map)}, but with controlled usage of userFilter
 * @param rootPath          a base path of {@link AuditPath} key entries concatenated with the path separator'/' ( {@link AuditApplication#AUDIT_PATH_SEPARATOR})
 * @param values            the values to audit mapped by {@link AuditPath} key relative to root path(may be <tt>null</tt>)
 * @param useUserFilter     if <tt>false</tt> the user filter is disabled.
 * @return                  Returns the values that were actually persisted, keyed by their full path.
 * @throws IllegalStateException if the transaction state could not be determined
 */
Map<String,Serializable> recordAuditValuesWithUserFilter(String rootPath,Map<String,Serializable> values,boolean useUserFilter);
Program: 172056
Project: 172056
Buggy source:
/** 
 * @param rootPath String
 * @param auditMap Map<String, Serializable>
 * @return boolean
 */
@Override public boolean accept(String rootPath,Map<String,Serializable> auditMap){
  String[] root=splitPath(rootPath);
  String rootProperty=getPropertyName(PROPERY_NAME_PREFIX,getPropertyName(root));
  String defaultRootProperty=getDefaultRootProperty(root);
  if ("String_Node_Str".equalsIgnoreCase(getProperty(rootProperty,defaultRootProperty,ENABLED))) {
    for (    Map.Entry<String,Serializable> entry : auditMap.entrySet()) {
      Serializable value=entry.getValue();
      if (value == null) {
        value="String_Node_Str";
      }
      String stringValue=(value instanceof String) ? (String)value : value.toString();
      String[] key=splitPath(entry.getKey());
      String propertyValue=getProperty(rootProperty,defaultRootProperty,key);
      if (!acceptValue(stringValue,propertyValue,rootProperty,key)) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str" + rootPath + '/'+ entry.getKey()+ "String_Node_Str"+ stringValue+ "String_Node_Str"+ getPropertyName(rootProperty,getPropertyName(key))+ "String_Node_Str"+ propertyValue);
        }
        return false;
      }
    }
  }
  return true;
}

Fixed version (ground truth):
/** 
 * @param rootPath String
 * @return boolean
 */
@Override public boolean accept(String rootPath,Map<String,Serializable> auditMap){
  String[] root=splitPath(rootPath);
  String rootProperty=getPropertyName(PROPERY_NAME_PREFIX,getPropertyName(root));
  String defaultRootProperty=getDefaultRootProperty(root);
  if ("String_Node_Str".equalsIgnoreCase(getProperty(rootProperty,defaultRootProperty,ENABLED))) {
    for (    Map.Entry<String,Serializable> entry : auditMap.entrySet()) {
      Serializable value=entry.getValue();
      if (value == null) {
        value="String_Node_Str";
      }
      String stringValue=(value instanceof String) ? (String)value : value.toString();
      String[] key=splitPath(entry.getKey());
      String propertyValue=getProperty(rootProperty,defaultRootProperty,key);
      if (!acceptValue(stringValue,propertyValue,rootProperty,key)) {
        if (logger.isDebugEnabled()) {
          logger.debug("String_Node_Str" + rootPath + '/'+ entry.getKey()+ "String_Node_Str"+ stringValue+ "String_Node_Str"+ getPropertyName(rootProperty,getPropertyName(key))+ "String_Node_Str"+ propertyValue);
        }
        return false;
      }
    }
  }
  return true;
}
Program: 172057
Project: 172057
Buggy source:
/** 
 * Set the registry with which to register
 * @param registry NamedObjectRegistry<DataGenerator>
 */
public void setRegistry(NamedObjectRegistry<DataGenerator> registry){
  this.registry=registry;
}

Fixed version (ground truth):
/** 
 * Set the registry with which to register
 */
public void setRegistry(NamedObjectRegistry<DataGenerator> registry){
  this.registry=registry;
}
Program: 172058
Project: 172058
Buggy source:
/** 
 * Get the property representing the set of disabled paths for the application
 * @return          Returns an ID <code>Set<String></code> of disabled paths
 */
public Long getDisabledPathsId(){
  return disabledPathsId;
}

Fixed version (ground truth):
/** 
 * Get the property representing the set of disabled paths for the application
 * @return          Returns an ID of disabled paths
 */
public Long getDisabledPathsId(){
  return disabledPathsId;
}
Program: 172059
Project: 172059
Buggy source:
/** 
 * Get a list of the registered integration implementations.
 * @return List<BlogIntegrationImplementaion>   list of registered blog integration implementations
 */
List<BlogIntegrationImplementation> getBlogIntegrationImplementations();

Fixed version (ground truth):
/** 
 * Get a list of the registered integration implementations.
 * @return list of registered blog integration implementations
 */
List<BlogIntegrationImplementation> getBlogIntegrationImplementations();
Program: 172060
Project: 172060
Buggy source:
/** 
 * Given a node reference, gets a list of 'in scope' BlogDetails.  The node itself and then the primary parent hierarchy is searched and any blog details found returned in  a list, with the 'nearest' first.
 * @param nodeRef               the node reference
 * @return List<BlogDetails>    list of the blog details found 'in scope' for the node, empty if none found
 */
List<BlogDetails> getBlogDetails(NodeRef nodeRef);

Fixed version (ground truth):
/** 
 * Given a node reference, gets a list of 'in scope' BlogDetails.  The node itself and then the primary parent hierarchy is searched and any blog details found returned in  a list, with the 'nearest' first.
 * @param nodeRef               the node reference
 * @return list of the blog details found 'in scope' for the node, empty if none found
 */
List<BlogDetails> getBlogDetails(NodeRef nodeRef);
Program: 172061
Project: 172061
Buggy source:
/** 
 * Executes an XML RPC method
 * @param url String
 * @param method String
 * @param params List<Object>
 * @return Object
 */
protected Object execute(String url,String method,List<Object> params){
  Object result=null;
  try {
    XmlRpcClient client=getClient(url);
    result=client.execute(method,params);
  }
 catch (  XmlRpcException exception) {
    throw new BlogIntegrationRuntimeException("String_Node_Str" + method + "String_Node_Str"+ url+ "String_Node_Str",exception);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Executes an XML RPC method
 * @param url String
 * @param method String
 * @return Object
 */
protected Object execute(String url,String method,List<Object> params){
  Object result=null;
  try {
    XmlRpcClient client=getClient(url);
    result=client.execute(method,params);
  }
 catch (  XmlRpcException exception) {
    throw new BlogIntegrationRuntimeException("String_Node_Str" + method + "String_Node_Str"+ url+ "String_Node_Str",exception);
  }
  return result;
}
Program: 172062
Project: 172062
Buggy source:
/** 
 * Adapt a 
 * @param cache SimpleCache<Serializable, Object>
 * @param regionName String
 */
public HibernateSimpleCacheAdapter(SimpleCache<Serializable,Object> cache,String regionName){
  this.cache=cache;
  this.regionName=regionName;
}

Fixed version (ground truth):
/** 
 * Adapt a 
 * @param regionName String
 */
public HibernateSimpleCacheAdapter(SimpleCache<Serializable,Object> cache,String regionName){
  this.cache=cache;
  this.regionName=regionName;
}
Program: 172063
Project: 172063
Buggy source:
/** 
 * @param workingCopyNodeRef NodeRef
 * @param versionProperties Map<String,Serializable>
 * @param contentUrl String
 * @param keepCheckedOut boolean
 */
void beforeCheckIn(NodeRef workingCopyNodeRef,Map<String,Serializable> versionProperties,String contentUrl,boolean keepCheckedOut);

Fixed version (ground truth):
/** 
 * @param workingCopyNodeRef NodeRef
 * @param contentUrl String
 * @param keepCheckedOut boolean
 */
void beforeCheckIn(NodeRef workingCopyNodeRef,Map<String,Serializable> versionProperties,String contentUrl,boolean keepCheckedOut);
Program: 172064
Project: 172064
Buggy source:
/** 
 * The Constructor.
 * @param source the source content store
 * @param extendedEventParams Map<String, Serializable>
 */
public ContentStoreCreatedEvent(ContentStore source,Map<String,Serializable> extendedEventParams){
  super(source);
  this.extendedEventParams=extendedEventParams;
}

Fixed version (ground truth):
/** 
 * The Constructor.
 * @param source the source content store
 */
public ContentStoreCreatedEvent(ContentStore source,Map<String,Serializable> extendedEventParams){
  super(source);
  this.extendedEventParams=extendedEventParams;
}
Program: 172065
Project: 172065
Buggy source:
/** 
 * Sets the map of source mimetypes to metadata extracter limits.
 * @param mimetypeLimits Map<String, MetadataExtracterLimits>
 */
public void setMimetypeLimits(Map<String,MetadataExtracterLimits> mimetypeLimits){
  this.mimetypeLimits=mimetypeLimits;
}

Fixed version (ground truth):
/** 
 * Sets the map of source mimetypes to metadata extracter limits.
 */
public void setMimetypeLimits(Map<String,MetadataExtracterLimits> mimetypeLimits){
  this.mimetypeLimits=mimetypeLimits;
}
Program: 172066
Project: 172066
Buggy source:
/** 
 * Set the mimetypes that are supported for embedding.
 * @param supportedEmbedMimetypes Collection<String>
 */
public void setSupportedEmbedMimetypes(Collection<String> supportedEmbedMimetypes){
  this.supportedEmbedMimetypes.clear();
  this.supportedEmbedMimetypes.addAll(supportedEmbedMimetypes);
}

Fixed version (ground truth):
/** 
 * Set the mimetypes that are supported for embedding.
 */
public void setSupportedEmbedMimetypes(Collection<String> supportedEmbedMimetypes){
  this.supportedEmbedMimetypes.clear();
  this.supportedEmbedMimetypes.addAll(supportedEmbedMimetypes);
}
Program: 172068
Project: 172068
Buggy source:
/** 
 * Set whether the extractor should discard metadata that fails to convert to the target type defined in the data dictionary model.  This is <tt>true</tt> by default i.e. if the data extracted is not compatible with the target model then the extraction will fail.  If this is <tt>false<tt> then any extracted data that fails to convert will be discarded.
 * @param failOnTypeConversion      <tt>false</tt> to discard properties that can't get convertedto the dictionary-defined type, or <tt>true</tt> (default) to fail the extraction if the type doesn't convert
 */
public void setFailOnTypeConversion(boolean failOnTypeConversion){
  this.failOnTypeConversion=failOnTypeConversion;
}

Fixed version (ground truth):
/** 
 * Set whether the extractor should discard metadata that fails to convert to the target type defined in the data dictionary model.  This is <tt>true</tt> by default i.e. if the data extracted is not compatible with the target model then the extraction will fail.  If this is <tt>false</tt> then any extracted data that fails to convert will be discarded.
 * @param failOnTypeConversion      <tt>false</tt> to discard properties that can't get convertedto the dictionary-defined type, or <tt>true</tt> (default) to fail the extraction if the type doesn't convert
 */
public void setFailOnTypeConversion(boolean failOnTypeConversion){
  this.failOnTypeConversion=failOnTypeConversion;
}
Program: 172069
Project: 172069
Buggy source:
/** 
 * Set the mimetypes that are supported by the extracter.
 * @param supportedMimetypes Collection<String>
 */
public void setSupportedMimetypes(Collection<String> supportedMimetypes){
  this.supportedMimetypes.clear();
  this.supportedMimetypes.addAll(supportedMimetypes);
}

Fixed version (ground truth):
/** 
 * Set the mimetypes that are supported by the extracter.
 */
public void setSupportedMimetypes(Collection<String> supportedMimetypes){
  this.supportedMimetypes.clear();
  this.supportedMimetypes.addAll(supportedMimetypes);
}
Program: 172070
Project: 172070
Buggy source:
/** 
 * Sets any properties to be set on the TransformationOption as passed in. This allows you to force certain properties to always be set on it,  to control the transformers in a different way to their default. Note that only properties that are supported by the passed-in   {@link TransformationOptions} are changed, others are ignored.
 * @param transformationOptionOverrides Map<String, Serializable>
 */
public void setTransformationOptionOverrides(Map<String,Serializable> transformationOptionOverrides){
  this.transformationOptionOverrides=transformationOptionOverrides;
}

Fixed version (ground truth):
/** 
 * Sets any properties to be set on the TransformationOption as passed in. This allows you to force certain properties to always be set on it,  to control the transformers in a different way to their default. Note that only properties that are supported by the passed-in   {@link TransformationOptions} are changed, others are ignored.
 */
public void setTransformationOptionOverrides(Map<String,Serializable> transformationOptionOverrides){
  this.transformationOptionOverrides=transformationOptionOverrides;
}
Program: 172071
Project: 172071
Buggy source:
/** 
 * Helper method for   {@link #getComments(boolean)} tocreate a line that indicates which source and target mimetypes it supports.
 * @param sourceMimetypes List<String>
 * @param targetMimetypes List<String>
 * @param available TODO
 * @return a String of the form "# only supports xxx, yyy or zzz to aaa or bb\n".
 */
protected String getCommentsOnlySupports(List<String> sourceMimetypes,List<String> targetMimetypes,boolean available){
  StringBuilder sb=new StringBuilder();
  sb.append(getCommentNameAndAvailable(available));
  sb.append("String_Node_Str");
  sb.append(getExtensions(sourceMimetypes));
  sb.append("String_Node_Str");
  sb.append(getExtensions(targetMimetypes));
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * Helper method for   {@link #getComments(boolean)} tocreate a line that indicates which source and target mimetypes it supports.
 * @param available TODO
 * @return a String of the form "# only supports xxx, yyy or zzz to aaa or bb\n".
 */
protected String getCommentsOnlySupports(List<String> sourceMimetypes,List<String> targetMimetypes,boolean available){
  StringBuilder sb=new StringBuilder();
  sb.append(getCommentNameAndAvailable(available));
  sb.append("String_Node_Str");
  sb.append(getExtensions(sourceMimetypes));
  sb.append("String_Node_Str");
  sb.append(getExtensions(targetMimetypes));
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 172072
Project: 172072
Buggy source:
/** 
 * Create the row for the <b>alf_content_data<b>
 */
protected abstract ContentDataEntity createContentDataEntity(Long contentUrlId,Long mimetypeId,Long encodingId,Long localeId);

Fixed version (ground truth):
/** 
 * Create the row for the <b>alf_content_data</b>
 */
protected abstract ContentDataEntity createContentDataEntity(Long contentUrlId,Long mimetypeId,Long encodingId,Long localeId);
Program: 172073
Project: 172073
Buggy source:
/** 
 * Determine if the lock is logically exclusive.  A lock is <b>exclusive</b> if the shared lock resource matches the exclusive lock resource.
 * @return      Returns <tt>true</tt> if the lock is exclusive or <tt>false<tt> if it is not
 */
public boolean isExclusive(){
  if (sharedResourceId == null || exclusiveResourceId == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  return sharedResourceId.equals(exclusiveResourceId);
}

Fixed version (ground truth):
/** 
 * Determine if the lock is logically exclusive.  A lock is <b>exclusive</b> if the shared lock resource matches the exclusive lock resource.
 * @return      Returns <tt>true</tt> if the lock is exclusive or <tt>false</tt> if it is not
 */
public boolean isExclusive(){
  if (sharedResourceId == null || exclusiveResourceId == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  return sharedResourceId.equals(exclusiveResourceId);
}
Program: 172074
Project: 172074
Buggy source:
@Override public void characters(char[] ch,int start,int length) throws SAXException {
  String text=new String(ch,start,length).trim();
  if (text.length() > 0) {
    lastText.append(text);
  }
}

Fixed version (ground truth):
@Override public void characters(char[] ch,int start,int length) throws SAXException {
  String text=new String(ch,start,length);
  if (text.length() > 0) {
    lastText.append(text);
  }
}
Program: 172075
Project: 172075
Buggy source:
private void authenticateMultiTenantWork(String userName,String password){
  String hashedPassword=dao.getMD4HashedPassword(userName);
  assertNotNull(hashedPassword);
  UserDetails userDetails=(UserDetails)dao.loadUserByUsername(userName);
  assertEquals(passwordEncoder.encodePassword(password,dao.getSalt(userDetails)),hashedPassword);
}

Fixed version (ground truth):
private void authenticateMultiTenantWork(String userName,String password){
  String hashedPassword=dao.getMD4HashedPassword(userName);
  assertNotNull(hashedPassword);
  UserDetails userDetails=(UserDetails)dao.loadUserByUsername(userName);
  assertEquals(compositePasswordEncoder.encodePassword(password,dao.getSalt(userDetails)),hashedPassword);
}
Program: 172076
Project: 172076
Buggy source:
private void authenticateMultiTenantWork(String userName,String password){
  String hashedPassword=dao.getMD4HashedPassword(userName);
  assertNotNull(hashedPassword);
  UserDetails userDetails=(UserDetails)dao.loadUserByUsername(userName);
  assertEquals(compositePasswordEncoder.encodePassword(password,dao.getSalt(userDetails)),hashedPassword);
}

Fixed version (ground truth):
private void authenticateMultiTenantWork(String userName,String password){
  String hashedPassword=dao.getMD4HashedPassword(userName);
  assertNotNull(hashedPassword);
  assertEquals(compositePasswordEncoder.encode("String_Node_Str",password,null),hashedPassword);
}
Program: 172077
Project: 172077
Buggy source:
/** 
 * Called after an <b>cm:ownable</b> aspect has been added to a node
 * @param nodeRef the node to which the aspect was added
 * @param aspectTypeQName the type of the aspect
 */
private void incrementUserUsage(String userName,long contentSize,NodeRef contentNodeRef){
  if (!authenticationContext.isSystemUserName(userName)) {
    if (logger.isDebugEnabled())     logger.debug("String_Node_Str" + userName + "String_Node_Str"+ contentSize+ "String_Node_Str"+ contentNodeRef);
    long currentSize=getUserUsage(userName);
    long quotaSize=getUserQuota(userName);
    long newSize=currentSize + contentSize;
    if ((quotaSize != -1) && (newSize > quotaSize)) {
      if (logger.isWarnEnabled()) {
        logger.warn("String_Node_Str" + userName + "String_Node_Str"+ contentSize+ "String_Node_Str"+ currentSize+ "String_Node_Str"+ quotaSize);
      }
      throw new ContentQuotaException("String_Node_Str");
    }
    NodeRef personNodeRef=getPerson(userName);
    if (personNodeRef != null) {
      usageService.insertDelta(personNodeRef,contentSize);
    }
  }
}

Fixed version (ground truth):
/** 
 * Called after an <b>cm:ownable</b> aspect has been added to a node
 * @param nodeRef the node to which the aspect was added
 * @param aspectTypeQName the type of the aspect
 */
private void incrementUserUsage(String userName,long contentSize,NodeRef contentNodeRef){
  if (!authenticationContext.isSystemUserName(userName)) {
    if (logger.isDebugEnabled())     logger.debug("String_Node_Str" + userName + "String_Node_Str"+ contentSize+ "String_Node_Str"+ contentNodeRef);
    long currentSize=getUserUsage(userName);
    long quotaSize=getUserQuota(userName);
    long newSize=currentSize + contentSize;
    if ((quotaSize != -1) && (newSize > quotaSize)) {
      if (logger.isWarnEnabled()) {
        logger.warn("String_Node_Str" + userName + "String_Node_Str"+ contentSize+ "String_Node_Str"+ currentSize+ "String_Node_Str"+ quotaSize);
      }
      throw new ContentQuotaException("String_Node_Str",newSize,quotaSize,ContentModel.TYPE_CONTENT);
    }
    NodeRef personNodeRef=getPerson(userName);
    if (personNodeRef != null) {
      usageService.insertDelta(personNodeRef,contentSize);
    }
  }
}
Program: 172078
Project: 172078
Buggy source:
public ContentQuotaException(String msg,Throwable cause){
  super(msg,cause);
}

Fixed version (ground truth):
public ContentQuotaException(String msg,Throwable cause,long usage,long quotaLimit,QName quotaRestrictedType){
  super(msg,cause,usage,quotaLimit,quotaRestrictedType);
}
Program: 172084
Project: 172084
Buggy source:
/** 
 * Convert a list of   {@link HistoricDetail} to a map with key-value pairs.
 * @param details the histroicDetails. Should be a list of {@link HistoricVariableUpdate}s.
 */
public Map<String,Object> convertHistoricDetails(List<HistoricDetail> details){
  Collections.sort(details,new Comparator<HistoricDetail>(){
    @Override public int compare(    HistoricDetail o1,    HistoricDetail o2){
      Long id1=Long.valueOf(o1.getId());
      Long id2=Long.valueOf(o2.getId());
      return -id1.compareTo(id2);
    }
  }
);
  Map<String,Object> variables=new HashMap<String,Object>();
  for (  HistoricDetail detail : details) {
    HistoricDetailVariableInstanceUpdateEntity varUpdate=(HistoricDetailVariableInstanceUpdateEntity)detail;
    if (!variables.containsKey(varUpdate.getVariableName())) {
      variables.put(varUpdate.getVariableName(),varUpdate.getValue());
    }
  }
  return variables;
}

Fixed version (ground truth):
/** 
 * Convert a list of   {@link HistoricDetail} to a map with key-value pairs.
 * @param details the histroicDetails. Should be a list of {@link HistoricVariableUpdate}s.
 */
public Map<String,Object> convertHistoricDetails(List<HistoricDetail> details){
  Collections.sort(details,new Comparator<HistoricDetail>(){
    @Override public int compare(    HistoricDetail o1,    HistoricDetail o2){
      Long id1=Long.valueOf(o1.getId());
      Long id2=Long.valueOf(o2.getId());
      return -id1.compareTo(id2);
    }
  }
);
  Map<String,Object> variables=new HashMap<String,Object>();
  for (  HistoricDetail detail : details) {
    HistoricVariableUpdate varUpdate=(HistoricVariableUpdate)detail;
    if (!variables.containsKey(varUpdate.getVariableName())) {
      variables.put(varUpdate.getVariableName(),varUpdate.getValue());
    }
  }
  return variables;
}
Program: 172086
Project: 172086
Buggy source:
public void testForcedInstall() throws Exception {
  manager.setVerbose(true);
  String warLocation=getFileLocation("String_Node_Str","String_Node_Str");
  String ampLocation=getFileLocation("String_Node_Str","String_Node_Str");
  this.manager.installModule(ampLocation,warLocation,false,false,false);
  this.manager.installModule(ampLocation,warLocation,false,true,false);
}

Fixed version (ground truth):
public void testForcedInstall() throws Exception {
  manager.setVerbose(true);
  String warLocation=getFileLocation("String_Node_Str","String_Node_Str");
  String ampLocation=getFileLocation("String_Node_Str","String_Node_Str");
  try {
    this.manager.installModule(ampLocation,warLocation,false,false,false);
    fail("String_Node_Str");
  }
 catch (  ModuleManagementToolException e) {
    assertTrue(e.getMessage().contains("String_Node_Str"));
  }
  this.manager.installModule(ampLocation,warLocation,false,true,false);
  this.manager.installModule(ampLocation,warLocation,false,true,false);
}
Program: 172087
Project: 172087
Buggy source:
public void testExistingFilesInWar() throws Exception {
  manager.setVerbose(true);
  String warLocation=getFileLocation("String_Node_Str","String_Node_Str");
  String ampLocation=getFileLocation("String_Node_Str","String_Node_Str");
  try {
    this.manager.installModule(ampLocation,warLocation,false,false,true);
  }
 catch (  ModuleManagementToolException exception) {
    assertTrue(exception.getMessage().contains("String_Node_Str"));
  }
  this.manager.installModule(ampLocation,warLocation,false,true,true);
  checkContentsOfFile(warLocation + "String_Node_Str","String_Node_Str");
  checkContentsOfFile(warLocation + "String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
public void testExistingFilesInWar() throws Exception {
  manager.setVerbose(true);
  String warLocation=getFileLocation("String_Node_Str","String_Node_Str");
  String ampLocation=getFileLocation("String_Node_Str","String_Node_Str");
  try {
    this.manager.installModule(ampLocation,warLocation,false,false,true);
  }
 catch (  ModuleManagementToolException exception) {
    assertTrue(exception.getMessage().contains("String_Node_Str"));
  }
  this.manager.installModule(ampLocation,warLocation,false,true,true);
  checkContentsOfFile(warLocation + "String_Node_Str","String_Node_Str");
  checkContentsOfFile(warLocation + "String_Node_Str","String_Node_Str");
  this.manager.installModule(ampLocation,warLocation,false,true,false);
}
Program: 172088
Project: 172088
Buggy source:
/** 
 * Helper setter of the mimetypeService. 
 * @param mimetypeService
 */
public void setMimetypeService(MimetypeService mimetypeService){
  this.mimetypeService=mimetypeService;
}

Fixed version (ground truth):
public void setMimetypeService(MimetypeService mimetypeService){
  this.mimetypeService=mimetypeService;
}
Program: 172091
Project: 172091
Buggy source:
/** 
 * Parse and validate the parameter string and create a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares. <p>
 * @deprecated - no longer used.   Construction of context is via spring now. 
 * @param deviceName The name of the device
 * @param cfg ConfigElement the configuration of the device context.
 * @return DeviceContext
 * @exception DeviceContextException
 */
public DeviceContext createContext(String deviceName,ConfigElement cfg) throws DeviceContextException {
  throw new DeviceContextException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Parse and validate the parameter string and create a device context object for this instance of the shared device. The same DeviceInterface implementation may be used for multiple shares. <p>
 * @deprecated - no longer used.   Construction of context is via spring now. 
 * @param deviceName The name of the device
 * @param cfg ConfigElement the configuration of the device context.
 * @return DeviceContext
 * @exception DeviceContextException
 */
public DeviceContext createContext(String deviceName,ConfigElement cfg) throws DeviceContextException {
  logger.error("String_Node_Str");
  throw new DeviceContextException("String_Node_Str");
}
Program: 172093
Project: 172093
Buggy source:
@SuppressWarnings("String_Node_Str") @Override protected List<ContentDataEntity> getContentDataEntitiesForNodes(Set<Long> nodeIds){
  if (nodeIds.size() == 0) {
    return Collections.emptyList();
  }
  IdsEntity idsEntity=new IdsEntity();
  idsEntity.setIds(new ArrayList<Long>(nodeIds));
  return template.queryForList(SELECT_CONTENT_DATA_BY_NODE_IDS,idsEntity);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected List<ContentDataEntity> getContentDataEntitiesForNodes(Set<Long> nodeIds){
  if (nodeIds.size() == 0) {
    return Collections.emptyList();
  }
  IdsEntity idsEntity=new IdsEntity();
  idsEntity.setIds(new ArrayList<Long>(nodeIds));
  return (List<ContentDataEntity>)template.selectList(SELECT_CONTENT_DATA_BY_NODE_IDS,idsEntity);
}
Program: 172094
Project: 172094
Buggy source:
private <R>R doAsSystem(RunAsWork<R> work){
  policyBehaviourFilter.disableBehaviour(ContentModel.ASPECT_AUDITABLE);
  policyBehaviourFilter.disableBehaviour(ContentModel.ASPECT_VERSIONABLE);
  try {
    return AuthenticationUtil.runAs(work,AuthenticationUtil.getSystemUserName());
  }
  finally {
    policyBehaviourFilter.enableBehaviour(ContentModel.ASPECT_AUDITABLE);
    policyBehaviourFilter.enableBehaviour(ContentModel.ASPECT_VERSIONABLE);
  }
  return null;
}

Fixed version (ground truth):
private <R>R doAsSystem(RunAsWork<R> work){
  policyBehaviourFilter.disableBehaviour(ContentModel.ASPECT_AUDITABLE);
  policyBehaviourFilter.disableBehaviour(ContentModel.ASPECT_VERSIONABLE);
  try {
    return AuthenticationUtil.runAs(work,AuthenticationUtil.getSystemUserName());
  }
  finally {
    policyBehaviourFilter.enableBehaviour(ContentModel.ASPECT_AUDITABLE);
    policyBehaviourFilter.enableBehaviour(ContentModel.ASPECT_VERSIONABLE);
  }
}
Program: 172096
Project: 172096
Buggy source:
/** 
 * Create a node monitor
 * @param filesysDriver ContentDiskDriver
 * @param filesysCtx ContentContext
 */
public NodeMonitor createNodeMonitor(final ContentContext filesysCtx){
  RetryingTransactionHelper tran=m_transService.getRetryingTransactionHelper();
  RetryingTransactionCallback<NodeMonitor> initialiseCB=new RetryingTransactionCallback<NodeMonitor>(){
    @Override public NodeMonitor execute() throws Throwable {
      NodeMonitor nodeMonitor=new NodeMonitor(filesysCtx,m_nodeService,m_policyComponent,m_fileFolderService,m_permissionService,m_transService);
      return nodeMonitor;
    }
  }
;
  return tran.doInTransaction(initialiseCB);
}

Fixed version (ground truth):
/** 
 * Create a node monitor
 * @param filesysDriver ContentDiskDriver
 * @param filesysCtx ContentContext
 */
public NodeMonitor createNodeMonitor(final ContentContext filesysCtx){
  RetryingTransactionHelper tran=m_transService.getRetryingTransactionHelper();
  RetryingTransactionCallback<NodeMonitor> initialiseCB=new RetryingTransactionCallback<NodeMonitor>(){
    @Override public NodeMonitor execute() throws Throwable {
      NodeMonitor nodeMonitor=new NodeMonitor(filesysCtx,m_nodeService,m_policyComponent,m_fileFolderService,m_permissionService,m_transService);
      return nodeMonitor;
    }
  }
;
  return tran.doInTransaction(initialiseCB,true);
}
Program: 172097
Project: 172097
Buggy source:
public void index(){
  int done=0;
  while (done == 0) {
    final StoreRef toIndex=getNextRef();
    try {
      if (toIndex != null) {
        if (s_logger.isDebugEnabled()) {
          s_logger.debug("String_Node_Str" + toIndex + "String_Node_Str"+ (new java.util.Date()));
        }
        try {
          done+=transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Integer>(){
            @Override public Integer execute() throws Throwable {
              Indexer indexer=indexerAndSearcherFactory.getIndexer(toIndex);
              indexer.setReadThrough(true);
              if (indexer instanceof BackgroundIndexerAware) {
                BackgroundIndexerAware backgroundIndexerAware=(BackgroundIndexerAware)indexer;
                backgroundIndexerAware.registerCallBack(FullTextSearchIndexerImpl.this);
                return backgroundIndexerAware.updateFullTextSearch(batchSize);
              }
              return 0;
            }
          }
);
        }
 catch (        Exception ex) {
          indexCompleted(toIndex,0,ex);
          if (s_logger.isWarnEnabled()) {
            s_logger.warn("String_Node_Str",ex);
          }
        }
      }
 else {
        if (s_logger.isTraceEnabled()) {
          s_logger.trace("String_Node_Str" + (new java.util.Date()));
        }
        break;
      }
    }
 catch (    Throwable t) {
      indexCompleted(toIndex,0,t);
    }
  }
}

Fixed version (ground truth):
public void index(){
  int done=0;
  while (done == 0) {
    final StoreRef toIndex=getNextRef();
    try {
      if (toIndex != null) {
        if (s_logger.isDebugEnabled()) {
          s_logger.debug("String_Node_Str" + toIndex + "String_Node_Str"+ (new java.util.Date()));
        }
        try {
          done+=transactionService.getRetryingTransactionHelper().doInTransaction(new RetryingTransactionCallback<Integer>(){
            @Override public Integer execute() throws Throwable {
              Indexer indexer=indexerAndSearcherFactory.getIndexer(toIndex);
              indexer.setReadThrough(true);
              if (indexer instanceof BackgroundIndexerAware) {
                BackgroundIndexerAware backgroundIndexerAware=(BackgroundIndexerAware)indexer;
                backgroundIndexerAware.registerCallBack(FullTextSearchIndexerImpl.this);
                return backgroundIndexerAware.updateFullTextSearch(batchSize);
              }
              return 0;
            }
          }
,true);
        }
 catch (        Exception ex) {
          indexCompleted(toIndex,0,ex);
          if (s_logger.isWarnEnabled()) {
            s_logger.warn("String_Node_Str",ex);
          }
        }
      }
 else {
        if (s_logger.isTraceEnabled()) {
          s_logger.trace("String_Node_Str" + (new java.util.Date()));
        }
        break;
      }
    }
 catch (    Throwable t) {
      indexCompleted(toIndex,0,t);
    }
  }
}
Program: 172098
Project: 172098
Buggy source:
/** 
 */
public void testGetInvitation(){
  try {
    invitationService.getInvitation("String_Node_Str");
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void testGetInvitation(){
  try {
    invitationService.getInvitation("String_Node_Str");
    fail("String_Node_Str");
  }
 catch (  Exception e) {
  }
}
Program: 172099
Project: 172099
Buggy source:
@Override protected void onTearDownInTransaction() throws Exception {
  this.authenticationComponent.setSystemUserAsCurrentUser();
  workflowAdminService.setEnabledEngines(enabledEngines);
  workflowAdminService.setVisibleEngines(visibleEngines);
  invitationServiceImpl.setSendEmails(startSendEmails);
  siteService.deleteSite(SITE_SHORT_NAME_INVITE);
  siteService.deleteSite(SITE_SHORT_NAME_RED);
  siteService.deleteSite(SITE_SHORT_NAME_BLUE);
  deletePersonByUserName(USER_ONE);
  deletePersonByUserName(USER_TWO);
  deletePersonByUserName(USER_EVE);
  deletePersonByUserName(USER_MANAGER);
  super.onTearDownInTransaction();
}

Fixed version (ground truth):
@Override protected void onTearDownInTransaction() throws Exception {
  this.authenticationComponent.setSystemUserAsCurrentUser();
  workflowAdminService.setEnabledEngines(enabledEngines);
  workflowAdminService.setVisibleEngines(visibleEngines);
  super.onTearDownInTransaction();
}
Program: 172100
Project: 172100
Buggy source:
public static void main(String[] args){
  if (args.length != 2) {
    System.err.println("String_Node_Str");
    System.err.println("String_Node_Str" + DbToXML.class.getName() + "String_Node_Str");
    System.exit(1);
  }
  String contextPath=args[0];
  File outputFile=new File(args[1]);
  ApplicationContext context=new FileSystemXmlApplicationContext(contextPath);
  DbToXML dbToXML=new DbToXML(context,outputFile);
  dbToXML.execute();
}

Fixed version (ground truth):
public static void main(String[] args){
  if (args.length != 2) {
    System.err.println("String_Node_Str");
    System.err.println("String_Node_Str" + DbToXML.class.getName() + "String_Node_Str");
    System.exit(1);
  }
  String contextPath=args[0];
  File outputFile=new File(args[1]);
  FileSystemXmlApplicationContext context=new FileSystemXmlApplicationContext(contextPath);
  DbToXML dbToXML=new DbToXML(context,outputFile);
  dbToXML.execute();
  context.close();
}