nus-yam/ex-repair huggingface dataset:
Program: 18304
Project: 18304
Buggy source:
/** 
 * Adds the given URL to an asynchronous download & parsing pool.
 * @param url The URL to download. Must not be null.
 * @param targetModel The target model on which to store extracted information. If null, will be guessed.
 * @param storageProp A property on which to store the downloaded blob (ex: file:content). If null, the blob won't be saved.
 * @param options Any options to pass to the file parsers.
 */
void append(URL url,DocumentModel targetModel,String storageProp,Map<String,String> options) throws InvalidArgumentException ;

Fixed version (ground truth):
/** 
 * Adds the given URL to an asynchronous download & parsing pool.
 * @param url The URL to download. Must not be null.
 * @param targetModel The target model on which to store extracted information. If null, will be guessed.
 * @param storageProp A property on which to store the downloaded blob (ex: file:content). If null, the blob won't be saved.
 * @param options Any options to pass to the file parsers.
 */
void append(URL url,DocumentModel targetModel,String storageProp,Map<String,String> options) throws IllegalArgumentException ;
Program: 18305
Project: 18305
Buggy source:
@Override public void append(URL url,DocumentModel targetModel,String storageProp,Map<String,String> options) throws InvalidArgumentException {
synchronized (parsingPool) {
    parsingPool.push(new WebFileParsingPoolEntry(url,targetModel,storageProp,options));
synchronized (this) {
      notifyAll();
    }
  }
}

Fixed version (ground truth):
@Override public void append(URL url,DocumentModel targetModel,String storageProp,Map<String,String> options) throws IllegalArgumentException {
synchronized (parsingPool) {
    parsingPool.push(new WebFileParsingPoolEntry(url,targetModel,storageProp,options));
synchronized (this) {
      notifyAll();
    }
  }
}
Program: 18306
Project: 18306
Buggy source:
public void handleEvent(Event event){
  EventContext ctx=event.getContext();
  if (!(ctx instanceof DocumentEventContext)) {
    return;
  }
  CoreSession session=ctx.getCoreSession();
  DocumentModel appliImplModel=((DocumentEventContext)ctx).getSourceDocument();
  if (appliImplModel == null) {
    return;
  }
  String type=appliImplModel.getType();
  if (!type.equals(DOCTYPE)) {
    return;
  }
  if (maintainInternalProperties(session,appliImplModel)) {
    setDefaultPropertyValues(session,appliImplModel);
  }
  try {
    updateVocabulary(session,(String)appliImplModel.getProperty(AppliImpl.SCHEMA,AppliImpl.PROP_SERVER),(String)appliImplModel.getProperty(AppliImpl.SCHEMA,AppliImpl.PROP_ENVIRONMENT));
  }
 catch (  ClientException e) {
    log.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void handleEvent(Event event){
  EventContext ctx=event.getContext();
  if (!(ctx instanceof DocumentEventContext)) {
    return;
  }
  CoreSession session=ctx.getCoreSession();
  DocumentModel appliImplModel=((DocumentEventContext)ctx).getSourceDocument();
  if (appliImplModel == null) {
    return;
  }
  String type=appliImplModel.getType();
  if (!type.equals(DOCTYPE)) {
    return;
  }
  if (event.getName().equals(DocumentEventTypes.DOCUMENT_UPDATED)) {
    Events.instance().raiseEvent(APPLI_IMPL_CHANGED,appliImplModel);
  }
 else {
    if (maintainInternalProperties(session,appliImplModel)) {
      setDefaultPropertyValues(session,appliImplModel);
    }
    try {
      updateVocabulary(session,(String)appliImplModel.getProperty(AppliImpl.SCHEMA,AppliImpl.PROP_SERVER),(String)appliImplModel.getProperty(AppliImpl.SCHEMA,AppliImpl.PROP_ENVIRONMENT));
    }
 catch (    ClientException e) {
      log.error("String_Node_Str",e);
    }
  }
}
Program: 18308
Project: 18308
Buggy source:
public BrowsingContext(URL url) throws Exception {
  if (url != null) {
    HttpDownloaderService httpDownloaderService=Framework.getService(HttpDownloaderService.class);
    HttpDownloader file=httpDownloaderService.createHttpDownloader(url);
    try {
      file.download();
      FileInputStream fis=new FileInputStream(file.getFile());
      StringBuffer dataBuffer=new StringBuffer();
      char c;
      while ((c=(char)fis.read()) != -1) {
        dataBuffer.append(c);
      }
      data=dataBuffer.toString();
    }
 catch (    Exception e) {
      data=null;
    }
 finally {
      file.delete();
    }
  }
}

Fixed version (ground truth):
public BrowsingContext(URL url) throws Exception {
  if (url != null) {
    this.url=url;
    HttpDownloaderService httpDownloaderService=Framework.getService(HttpDownloaderService.class);
    HttpDownloader file=httpDownloaderService.createHttpDownloader(url);
    try {
      file.download();
      FileInputStream fis=new FileInputStream(file.getFile());
      StringBuffer dataBuffer=new StringBuffer();
      int c;
      while ((c=fis.read()) != -1) {
        dataBuffer.append((char)c);
      }
      data=dataBuffer.toString();
    }
 catch (    Exception e) {
      data=null;
    }
 finally {
      file.delete();
    }
  }
}
Program: 18309
Project: 18309
Buggy source:
@GET @Path("String_Node_Str") public Object doGet(@Context UriInfo uriInfo) throws Exception {
  URL url=null;
  String callback=null;
  try {
    String restServiceURL=uriInfo.getBaseUri().toString() + "String_Node_Str";
    url=new URL(uriInfo.getRequestUri().toString().substring(restServiceURL.length()));
    if (url.getQuery().contains("String_Node_Str")) {
      List<NameValuePair> queryTokens=URLEncodedUtils.parse(url.toURI(),"String_Node_Str");
      for (      NameValuePair token : queryTokens) {
        if (token.getName().equals("String_Node_Str")) {
          callback=token.getValue();
        }
      }
    }
  }
 catch (  MalformedURLException e) {
    return "String_Node_Str" + formatError(e) + "String_Node_Str";
  }
  if (callback != null) {
    return callback + '(' + findWSDls(new BrowsingContext(url))+ ')';
  }
 else {
    return findWSDls(new BrowsingContext(url));
  }
}

Fixed version (ground truth):
@GET @Path("String_Node_Str") public Object doGet(@Context UriInfo uriInfo) throws Exception {
  URL url=null;
  String callback=null;
  try {
    String restServiceURL=uriInfo.getBaseUri().toString() + "String_Node_Str";
    url=new URL(uriInfo.getRequestUri().toString().substring(restServiceURL.length()));
    if (url.getQuery() != null && url.getQuery().contains("String_Node_Str")) {
      List<NameValuePair> queryTokens=URLEncodedUtils.parse(url.toURI(),"String_Node_Str");
      for (      NameValuePair token : queryTokens) {
        if (token.getName().equals("String_Node_Str")) {
          callback=token.getValue();
        }
      }
    }
  }
 catch (  MalformedURLException e) {
    return "String_Node_Str" + formatError(e) + "String_Node_Str";
  }
  if (callback != null) {
    return callback + '(' + findWSDls(new BrowsingContext(url))+ ')';
  }
 else {
    return findWSDls(new BrowsingContext(url));
  }
}
Program: 18310
Project: 18310
Buggy source:
HttpDownloader download() throws IOException, URISyntaxException ;

Fixed version (ground truth):
/** 
 * Downloads the page at the given URL.
 * @return
 * @throws Exception
 */
HttpDownloader download() throws Exception ;
Program: 18311
Project: 18311
Buggy source:
boolean isDownloaded();

Fixed version (ground truth):
/** 
 * Checks if the page has been successfully downloaded. (note: you must explicitly call download() to fetch the page)
 * @return
 */
boolean isDownloaded();
Program: 18312
Project: 18312
Buggy source:
boolean isURLAvailable();

Fixed version (ground truth):
/** 
 * Checks if the given URL is available.
 * @return
 */
boolean isURLAvailable();
Program: 18313
Project: 18313
Buggy source:
void delete();

Fixed version (ground truth):
/** 
 * Deletes all stored data (including the eventual file) if the page has been downloaded. 
 */
void delete();
Program: 18314
Project: 18314
Buggy source:
File getFile();

Fixed version (ground truth):
/** 
 * Returns the downloaded page as a file, or null if it has not been downloaded, or the export to a file failed.
 * @return
 * @throws IOException
 */
File getFile() throws IOException ;
Program: 18315
Project: 18315
Buggy source:
Blob getBlob();

Fixed version (ground truth):
/** 
 * Returns the downloaded page as a blob (ready for storage in a Nuxeo document), or null if it has not been downloaded.
 * @return
 */
Blob getBlob();
Program: 18316
Project: 18316
Buggy source:
@Override public HttpDownloader download() throws IOException, URISyntaxException {
  this.file=File.createTempFile("String_Node_Str","String_Node_Str");
  FileOutputStream fos=new FileOutputStream(this.file);
  try {
    GetMethod getMethod=new GetMethod(url.toString());
    int responseCode=client.executeMethod(getMethod);
    if (responseCode == 200) {
      byte[] body=getMethod.getResponseBody();
      fos.write(body);
      fos.flush();
    }
  }
  finally {
    fos.close();
  }
  return this;
}

Fixed version (ground truth):
@Override public HttpDownloader download() throws Exception {
  GetMethod getMethod=new GetMethod(url.toString());
  int responseCode=client.executeMethod(getMethod);
  if (responseCode == 200) {
    this.bytes=getMethod.getResponseBody();
  }
  return this;
}
Program: 18317
Project: 18317
Buggy source:
@Override public boolean isDownloaded(){
  return (this.file != null) && (this.file.exists());
}

Fixed version (ground truth):
@Override public boolean isDownloaded(){
  return this.bytes != null;
}
Program: 18318
Project: 18318
Buggy source:
@Override public void delete(){
  if (isDownloaded()) {
    this.file.delete();
  }
}

Fixed version (ground truth):
@Override public void delete(){
  if (this.file != null) {
    this.file.delete();
  }
  this.bytes=null;
}
Program: 18319
Project: 18319
Buggy source:
@Override public File getFile(){
  return this.file;
}

Fixed version (ground truth):
@Override public File getFile() throws IOException {
  if (this.file == null && this.bytes != null) {
    FileOutputStream fos=null;
    try {
      this.file=File.createTempFile("String_Node_Str","String_Node_Str");
      fos=new FileOutputStream(this.file);
      fos.write(this.bytes);
      fos.flush();
    }
 catch (    Exception e) {
      if (this.file != null) {
        this.file.delete();
      }
      this.file=null;
    }
 finally {
      if (fos != null) {
        fos.close();
      }
    }
  }
  return this.file;
}
Program: 18320
Project: 18320
Buggy source:
@Override public Blob getBlob(){
  return isDownloaded() ? new FileBlob(this.file) : null;
}

Fixed version (ground truth):
@Override public Blob getBlob(){
  return this.bytes != null ? new ByteArrayBlob(this.bytes) : null;
}
Program: 18321
Project: 18321
Buggy source:
@SuppressWarnings("String_Node_Str") @Test public void test() throws FrascatiException {
  Trip tripService=frascati.getService(componentList.get(0),"String_Node_Str",Trip.class);
  Trip spyTripService=spy(tripService);
  logger.info("String_Node_Str");
  String tripServiceResponse=spyTripService.process("String_Node_Str","String_Node_Str",10);
  logger.info("String_Node_Str" + tripServiceResponse);
  verify(((Delegated<CurrencyServerWebServiceSoap>)(server.getCurrencyImplementor())).getDelegate()).getCurrencyValue("String_Node_Str","String_Node_Str","String_Node_Str");
  verify(server.getMeteoImplementor().getDelegate()).getWeather("String_Node_Str","String_Node_Str");
  verify(server.getTranslateImplementor().getDelegate()).translate("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  verify(spyTripService).process("String_Node_Str","String_Node_Str",10);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Test public void test() throws FrascatiException {
  Trip tripService=frascati.getService(componentList.get(0),"String_Node_Str",Trip.class);
  Trip spyTripService=spy(tripService);
  logger.info("String_Node_Str");
  String tripServiceResponse=spyTripService.process("String_Node_Str","String_Node_Str",10);
  logger.info("String_Node_Str" + tripServiceResponse);
  verify(server.getCurrencyImplementor().getDelegate()).getCurrencyValue("String_Node_Str","String_Node_Str","String_Node_Str");
  verify(server.getMeteoImplementor().getDelegate()).getWeather("String_Node_Str","String_Node_Str");
  verify(server.getTranslateImplementor().getDelegate()).translate("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  verify(spyTripService).process("String_Node_Str","String_Node_Str",10);
}
Program: 18322
Project: 18322
Buggy source:
@Override public void visit(BindingInfoProvider bindingInfoProvider) throws ClientException, IOException {
  RestNotificationFactory factory=new RestNotificationFactory();
  String refUrl=bindingInfoProvider.getBindingUrl();
}

Fixed version (ground truth):
@Override public void visit(BindingInfoProvider bindingInfoProvider) throws ClientException, IOException {
}
Program: 18323
Project: 18323
Buggy source:
@Override public void importSCA() throws Exception {
  String scaFileName=compositeFile.getFilename();
  log.debug("String_Node_Str" + compositeFile.getFilename());
  if (scaFileName.endsWith("String_Node_Str")) {
    importSCAComposite();
  }
 else   if (scaFileName.endsWith("String_Node_Str") || scaFileName.endsWith("String_Node_Str")) {
    importSCAZip();
  }
 else {
    throw new Exception("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void importSCA() throws Exception {
  log.debug("String_Node_Str" + compositeFile.getFilename());
  if (compositeFile.getFilename() == null || "String_Node_Str".equals(compositeFile.getFilename())) {
    throw new Exception("String_Node_Str");
  }
  String scaFileName=compositeFile.getFilename();
  if (scaFileName.endsWith("String_Node_Str")) {
    importSCAComposite();
  }
 else   if (scaFileName.endsWith("String_Node_Str") || scaFileName.endsWith("String_Node_Str")) {
    importSCAZip();
  }
 else {
    throw new Exception("String_Node_Str");
  }
}
Program: 18324
Project: 18324
Buggy source:
public void validateUrl(FacesContext context,UIComponent component,Object value){
  try {
    new URL((String)value);
  }
 catch (  MalformedURLException e) {
    throw new ValidatorException(new FacesMessage("String_Node_Str"),e);
  }
}

Fixed version (ground truth):
public void validateUrl(FacesContext context,UIComponent component,Object value){
  String urlString=(String)value;
  if (urlString.equals(urlString.trim())) {
    try {
      new URL((String)value);
    }
 catch (    MalformedURLException e) {
      throw new ValidatorException(ERROR_MESSAGE,e);
    }
  }
 else {
    throw new ValidatorException(ERROR_MESSAGE);
  }
}
Program: 18326
Project: 18326
Buggy source:
public void activate(ComponentContext context) throws Exception {
  RepositoryManager repoService=Framework.getService(RepositoryManager.class);
  String defaultRepository=repoService.getDefaultRepository().getName();
  if (defaultRepository != null) {
    new DomainInit(defaultRepository).runUnrestricted();
  }
 else {
    log.warn("String_Node_Str");
  }
  new UserInit(defaultRepository).runUnrestricted();
}

Fixed version (ground truth):
public void activate(ComponentContext context) throws Exception {
  RepositoryManager repoService=Framework.getService(RepositoryManager.class);
  Repository defaultRepository=repoService.getDefaultRepository();
  try {
    new DomainInit(defaultRepository.toString()).runUnrestricted();
    new UserInit(defaultRepository.toString()).runUnrestricted();
  }
 catch (  Exception e) {
    log.warn("String_Node_Str" + e.getMessage());
  }
}
Program: 18329
Project: 18329
Buggy source:
public void activate(ComponentContext context) throws Exception {
  RepositoryManager repoService=Framework.getService(RepositoryManager.class);
  try {
    String defaultRepoName=repoService.getDefaultRepository().getName();
    new DomainInit(defaultRepoName).runUnrestricted();
  }
 catch (  Exception e) {
    Log.warn("String_Node_Str" + e.getMessage());
  }
}

Fixed version (ground truth):
public void activate(ComponentContext context) throws Exception {
  RepositoryManager repoService=Framework.getService(RepositoryManager.class);
  try {
    String defaultRepoName=repoService.getDefaultRepository().getName();
    new DomainInit(defaultRepoName).runUnrestricted();
  }
 catch (  Exception e) {
    log.warn("String_Node_Str" + e.getMessage());
  }
}
Program: 18331
Project: 18331
Buggy source:
/** 
 * Merges properties from a document to another, i.e. copies properties from a source model to the destination. The source document is deleted, and the destination saved.
 * @param from
 * @param to
 * @param overwrite If destination properties have to be overwritten
 * @return
 * @throws ClientException
 */
public boolean mergeDocument(CoreSession session,DocumentModel from,DocumentModel to,boolean overwrite) throws ClientException {
  if (from.getType().equals(to.getType())) {
    for (    String dataModelKey : from.getDataModels().keySet()) {
      String schema=from.getDataModels().get(dataModelKey).getSchema();
      Map<String,Object> schemaPropertiesFrom=from.getProperties(schema);
      Map<String,Object> schemaPropertiesTo=to.getProperties(schema);
      for (      String property : schemaPropertiesFrom.keySet()) {
        Serializable fromValue=(Serializable)schemaPropertiesFrom.get(property);
        if (fromValue != null && (schemaPropertiesTo.get(property) == null || overwrite)) {
          to.setPropertyValue(property,fromValue);
        }
      }
    }
    session.saveDocument(to);
    session.save();
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
/** 
 * Merges properties from a document to another, i.e. copies properties from a source model to the destination. The source document is deleted, and the destination saved.
 * @param from
 * @param to
 * @param overwrite If destination properties have to be overwritten
 * @return
 * @throws ClientException
 */
public boolean mergeDocument(CoreSession session,DocumentModel from,DocumentModel to,boolean overwrite) throws ClientException {
  if (from.getType().equals(to.getType())) {
    for (    String dataModelKey : from.getDataModels().keySet()) {
      String schema=from.getDataModels().get(dataModelKey).getSchema();
      Map<String,Object> schemaPropertiesFrom=from.getProperties(schema);
      Map<String,Object> schemaPropertiesTo=to.getProperties(schema);
      for (      String property : schemaPropertiesFrom.keySet()) {
        Serializable fromValue=(Serializable)schemaPropertiesFrom.get(property);
        if (fromValue != null && (schemaPropertiesTo.get(property) == null || overwrite)) {
          to.setPropertyValue(property,fromValue);
        }
      }
    }
    session.removeDocument(from.getRef());
    return true;
  }
 else {
    return false;
  }
}
Program: 18332
Project: 18332
Buggy source:
private String getNewCallcount(DocumentModel serviceModel,String newCalls){
  Long previousCallcount, newCallsLong;
  try {
    previousCallcount=(Long)serviceModel.getProperty(Service.SCHEMA,Service.PROP_CALLCOUNT);
  }
 catch (  ClientException e) {
    previousCallcount=new Long(0);
  }
  if (previousCallcount == null) {
    previousCallcount=new Long(0);
  }
  if (newCalls == null) {
    newCallsLong=new Long(0);
  }
 else {
    newCallsLong=Long.parseLong(newCalls);
  }
  return ((Long)(newCallsLong + previousCallcount)).toString();
}

Fixed version (ground truth):
private String getNewCallcount(DocumentModel serviceModel,String newCalls){
  Long previousCallcount, newCallsLong;
  try {
    previousCallcount=(Long)serviceModel.getProperty(Service.SCHEMA,Service.PROP_CALLCOUNT);
  }
 catch (  Exception e) {
    previousCallcount=new Long(0);
  }
  if (previousCallcount == null) {
    previousCallcount=new Long(0);
  }
  try {
    newCallsLong=Long.parseLong(newCalls);
  }
 catch (  Exception e) {
    newCallsLong=new Long(0);
  }
  return ((Long)(newCallsLong + previousCallcount)).toString();
}
Program: 18334
Project: 18334
Buggy source:
public AbstractNotificationTest() throws Exception {
  FileInputStream isProps=new FileInputStream("String_Node_Str");
  Properties props=new Properties();
  props.load(isProps);
  isProps.close();
  if (Boolean.parseBoolean(props.getProperty("String_Node_Str")))   throw new UnsupportedOperationException("String_Node_Str");
  String nuxeoHost=props.getProperty("String_Node_Str");
  String nuxeoPort=props.getProperty("String_Node_Str");
  if (nuxeoHost == null || nuxeoPort == null) {
    log.warn("String_Node_Str" + RestNotificationFactory.NUXEO_URL_LOCALHOST);
    nuxeoUrl=RestNotificationFactory.NUXEO_URL_LOCALHOST;
  }
 else {
    nuxeoUrl="String_Node_Str" + nuxeoHost + "String_Node_Str"+ nuxeoPort+ "String_Node_Str";
  }
  notificationFactory=new RestNotificationFactory(nuxeoUrl);
  automation=new AutomationHelper(nuxeoUrl);
}

Fixed version (ground truth):
public AbstractNotificationTest() throws Exception {
  FileInputStream isProps=new FileInputStream("String_Node_Str");
  Properties props=new Properties();
  props.load(isProps);
  isProps.close();
  if (Boolean.parseBoolean(props.getProperty("String_Node_Str")))   throw new UnsupportedOperationException("String_Node_Str");
  String nuxeoHost=props.getProperty("String_Node_Str");
  String nuxeoPort=props.getProperty("String_Node_Str");
  if (nuxeoHost == null || nuxeoPort == null) {
    log.warn("String_Node_Str" + RestNotificationFactory.NUXEO_URL_LOCALHOST);
    nuxeoUrl=RestNotificationFactory.NUXEO_URL_LOCALHOST;
  }
 else {
    nuxeoUrl="String_Node_Str" + nuxeoHost + "String_Node_Str"+ nuxeoPort+ "String_Node_Str";
  }
  notificationFactory=new RestNotificationFactory(nuxeoUrl);
  try {
    automation=new AutomationHelper(nuxeoUrl);
  }
 catch (  Exception e) {
    automation=null;
  }
}
Program: 18335
Project: 18335
Buggy source:
/** 
 * Creates an Appli Impl.
 * @throws Exception
 */
@Test public void createAppliImpl() throws Exception {
  String url="String_Node_Str", title="String_Node_Str";
  RestNotificationRequest notification=notificationFactory.createNotification(RestNotificationAPI.APPLIIMPL);
  notification.setProperty(AppliImpl.PROP_TITLE,title);
  notification.setProperty(AppliImpl.PROP_URL,url);
  notification.send();
  assertFalse(automation.findDocumentByUrl(AppliImpl.DOCTYPE,url).isEmpty());
}

Fixed version (ground truth):
/** 
 * Creates an Appli Impl.
 * @throws Exception
 */
@Test public void createAppliImpl() throws Exception {
  String url="String_Node_Str", title="String_Node_Str";
  RestNotificationRequest notification=notificationFactory.createNotification(RestNotificationAPI.APPLIIMPL);
  notification.setProperty(AppliImpl.PROP_TITLE,title);
  notification.setProperty(AppliImpl.PROP_URL,url);
  Assume.assumeTrue(notification.send());
  assertFalse(automation.findDocumentByUrl(AppliImpl.DOCTYPE,url).isEmpty());
}
Program: 18336
Project: 18336
Buggy source:
/** 
 * Sends the notification.
 * @throws IOException When the request failed.
 * @throws ProtocolException When the request returned an error.
 */
public void send() throws IOException, ProtocolException ;

Fixed version (ground truth):
/** 
 * Sends the notification.
 * @throws IOException When the request failed.
 * @throws ProtocolException When the request returned an error.
 * @return If the notification was successfully send
 */
public boolean send() throws IOException, ProtocolException ;
Program: 18338
Project: 18338
Buggy source:
private static DocumentModel findFirstDocument(CoreSession session,String type,String field,String value) throws ClientException {
  DocumentModelList apis=session.query("String_Node_Str" + type + "String_Node_Str"+ field+ "String_Node_Str"+ value+ "String_Node_Str");
  return (apis != null) ? apis.get(0) : null;
}

Fixed version (ground truth):
private static DocumentModel findFirstDocument(CoreSession session,String type,String field,String value) throws ClientException {
  DocumentModelList apis=session.query("String_Node_Str" + type + "String_Node_Str"+ field+ "String_Node_Str"+ value+ "String_Node_Str");
  return (apis != null && apis.size() > 0) ? apis.get(0) : null;
}
Program: 18339
Project: 18339
Buggy source:
public static DocumentModel findAppliImpl(CoreSession session,String appliUrl) throws ClientException {
  return findFirstDocument(session,SERVICEAPI_DOCTYPE,"String_Node_Str",appliUrl);
}

Fixed version (ground truth):
public static DocumentModel findAppliImpl(CoreSession session,String appliUrl) throws ClientException {
  return findFirstDocument(session,APPLIIMPL_DOCTYPE,"String_Node_Str",appliUrl);
}
Program: 18340
Project: 18340
Buggy source:
protected Resource createDynamicResource(ResourceKey resourceKey,boolean useDependencyInjection){
  Resource result=null;
  Map<String,String> params=null;
  MappedResourceData mappedResourceData=mappedResourceDataMap.get(resourceKey);
  ResourceKey actualKey;
  if (mappedResourceData != null) {
    actualKey=mappedResourceData.getResourceKey();
    if (useDependencyInjection) {
      params=mappedResourceData.getParams();
    }
  }
 else {
    actualKey=resourceKey;
    if (useDependencyInjection) {
      params=Collections.<String,String>emptyMap();
    }
  }
  if (Strings.isNullOrEmpty(resourceKey.getResourceName())) {
    return null;
  }
  if (actualKey.getResourceName().endsWith("String_Node_Str")) {
    result=createCompiledCSSResource(actualKey);
  }
 else {
    result=createHandlerDependentResource(actualKey,params);
  }
  if (result != null) {
    result.setLibraryName(resourceKey.getLibraryName());
    result.setResourceName(resourceKey.getResourceName());
  }
 else   if (mappedResourceData == null) {
    result=defaultHandler.createResource(actualKey.getResourceName(),actualKey.getLibraryName());
  }
  return result;
}

Fixed version (ground truth):
protected Resource createDynamicResource(ResourceKey resourceKey,boolean useDependencyInjection){
  Resource result=null;
  Map<String,String> params=null;
  MappedResourceData mappedResourceData=mappedResourceDataMap.get(resourceKey);
  ResourceKey actualKey;
  if (mappedResourceData != null) {
    actualKey=mappedResourceData.getResourceKey();
    if (useDependencyInjection) {
      params=mappedResourceData.getParams();
    }
  }
 else {
    actualKey=resourceKey;
    if (useDependencyInjection) {
      params=Collections.<String,String>emptyMap();
    }
  }
  if (Strings.isNullOrEmpty(resourceKey.getResourceName())) {
    return null;
  }
  if (actualKey.getResourceName().endsWith("String_Node_Str")) {
    result=createCompiledCSSResource(actualKey);
  }
 else {
    result=createHandlerDependentResource(actualKey,params);
  }
  if (result != null) {
    result.setLibraryName(resourceKey.getLibraryName());
    result.setResourceName(resourceKey.getResourceName());
  }
 else   if (mappedResourceData != null) {
    result=defaultHandler.createResource(actualKey.getResourceName(),actualKey.getLibraryName());
  }
  return result;
}
Program: 18341
Project: 18341
Buggy source:
protected Resource createDynamicResource(ResourceKey resourceKey,boolean useDependencyInjection){
  Resource result=null;
  Map<String,String> params=null;
  MappedResourceData mappedResourceData=mappedResourceDataMap.get(resourceKey);
  ResourceKey actualKey;
  if (mappedResourceData != null) {
    actualKey=mappedResourceData.getResourceKey();
    if (useDependencyInjection) {
      params=mappedResourceData.getParams();
    }
  }
 else {
    actualKey=resourceKey;
    if (useDependencyInjection) {
      params=Collections.<String,String>emptyMap();
    }
  }
  if (Strings.isNullOrEmpty(resourceKey.getResourceName())) {
    return null;
  }
  if (actualKey.getResourceName().endsWith("String_Node_Str")) {
    result=createCompiledCSSResource(actualKey);
  }
 else {
    result=createHandlerDependentResource(actualKey,params);
  }
  if (result != null) {
    result.setLibraryName(resourceKey.getLibraryName());
    result.setResourceName(resourceKey.getResourceName());
  }
 else   if (mappedResourceData == null) {
    result=defaultHandler.createResource(actualKey.getResourceName(),actualKey.getLibraryName());
  }
  return result;
}

Fixed version (ground truth):
protected Resource createDynamicResource(ResourceKey resourceKey,boolean useDependencyInjection){
  Resource result=null;
  Map<String,String> params=null;
  MappedResourceData mappedResourceData=mappedResourceDataMap.get(resourceKey);
  ResourceKey actualKey;
  if (mappedResourceData != null) {
    actualKey=mappedResourceData.getResourceKey();
    if (useDependencyInjection) {
      params=mappedResourceData.getParams();
    }
  }
 else {
    actualKey=resourceKey;
    if (useDependencyInjection) {
      params=Collections.<String,String>emptyMap();
    }
  }
  if (Strings.isNullOrEmpty(resourceKey.getResourceName())) {
    return null;
  }
  if (actualKey.getResourceName().endsWith("String_Node_Str")) {
    result=createCompiledCSSResource(actualKey);
  }
 else {
    result=createHandlerDependentResource(actualKey,params);
  }
  if (result != null) {
    result.setLibraryName(resourceKey.getLibraryName());
    result.setResourceName(resourceKey.getResourceName());
  }
 else   if (mappedResourceData != null) {
    result=defaultHandler.createResource(actualKey.getResourceName(),actualKey.getLibraryName());
  }
  return result;
}
Program: 18342
Project: 18342
Buggy source:
public RequestImpl(Meteor meteor,Session session){
  super();
  this.meteor=meteor;
  meteor.addListener(this);
  this.session=session;
}

Fixed version (ground truth):
public RequestImpl(Meteor meteor,Session session){
  super();
  this.meteor=meteor;
  meteor.addListener(this);
  this.session=session;
  policy=new BroadcasterLifeCyclePolicy.Builder().policy(BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY.EMPTY_DESTROY).build();
  this.meteor.getBroadcaster().setBroadcasterLifeCyclePolicy(policy);
}
Program: 18348
Project: 18348
Buggy source:
@Override protected Object doExecute() throws Exception {
  Group sourceGroup=groupManager.findGroupByName(sourceGroupName);
  if (sourceGroup == null) {
    System.err.println("String_Node_Str" + sourceGroupName + "String_Node_Str");
    return null;
  }
  Group targetGroup=groupManager.findGroupByName(targetGroupName);
  if (targetGroup == null) {
    System.err.println("String_Node_Str" + targetGroupName + "String_Node_Str");
    return null;
  }
  Set<Node> groupMembers=sourceGroup.getNodes();
  int i=0;
  for (  Node node : groupMembers) {
    if (i >= count)     break;
    List<String> recipients=new LinkedList<String>();
    recipients.add(node.getId());
    doExecute(ManageGroupAction.SET,targetGroupName,sourceGroup,recipients);
    i++;
  }
  return doExecute(ManageGroupAction.LIST,null,null,new ArrayList(),false);
}

Fixed version (ground truth):
@Override protected Object doExecute() throws Exception {
  Group sourceGroup=groupManager.findGroupByName(sourceGroupName);
  if (sourceGroup == null) {
    System.err.println("String_Node_Str" + sourceGroupName + "String_Node_Str");
    return null;
  }
  Group targetGroup=groupManager.findGroupByName(targetGroupName);
  if (targetGroup == null) {
    System.err.println("String_Node_Str" + targetGroupName + "String_Node_Str");
    return null;
  }
  Set<Node> groupMembers=sourceGroup.getNodes();
  if (count > groupMembers.size())   count=groupMembers.size();
  int i=0;
  for (  Node node : groupMembers) {
    if (i >= count)     break;
    List<String> recipients=new LinkedList<String>();
    recipients.add(node.getId());
    doExecute(ManageGroupAction.SET,targetGroupName,sourceGroup,recipients);
    i++;
  }
  return doExecute(ManageGroupAction.LIST,null,null,new ArrayList(),false);
}
Program: 18349
Project: 18349
Buggy source:
@Override protected Object doExecute() throws Exception {
  Group sourceGroup=groupManager.findGroupByName(sourceGroupName);
  if (sourceGroup == null) {
    System.err.println("String_Node_Str" + sourceGroupName + "String_Node_Str");
    return null;
  }
  Group targetGroup=groupManager.findGroupByName(targetGroupName);
  if (targetGroup == null) {
    System.err.println("String_Node_Str" + targetGroupName + "String_Node_Str");
    return null;
  }
  Set<Node> groupMembers=sourceGroup.getNodes();
  int i=0;
  for (  Node node : groupMembers) {
    if (i >= count)     break;
    List<String> recipients=new LinkedList<String>();
    recipients.add(node.getId());
    doExecute(ManageGroupAction.SET,targetGroupName,sourceGroup,recipients);
    i++;
  }
  return doExecute(ManageGroupAction.LIST,null,null,new ArrayList(),false);
}

Fixed version (ground truth):
@Override protected Object doExecute() throws Exception {
  Group sourceGroup=groupManager.findGroupByName(sourceGroupName);
  if (sourceGroup == null) {
    System.err.println("String_Node_Str" + sourceGroupName + "String_Node_Str");
    return null;
  }
  Group targetGroup=groupManager.findGroupByName(targetGroupName);
  if (targetGroup == null) {
    System.err.println("String_Node_Str" + targetGroupName + "String_Node_Str");
    return null;
  }
  Set<Node> groupMembers=sourceGroup.getNodes();
  if (count > groupMembers.size())   count=groupMembers.size();
  int i=0;
  for (  Node node : groupMembers) {
    if (i >= count)     break;
    List<String> recipients=new LinkedList<String>();
    recipients.add(node.getId());
    doExecute(ManageGroupAction.SET,targetGroupName,sourceGroup,recipients);
    i++;
  }
  return doExecute(ManageGroupAction.LIST,null,null,new ArrayList(),false);
}
Program: 18350
Project: 18350
Buggy source:
public void updateMemberList(){
  HazelcastInstance instance=lookupInstance();
  if (instance != null) {
    try {
      instance.getConfig().setGroupConfig(buildGroupConfig());
      instance.getConfig().getNetworkConfig().getJoin().setMulticastConfig(buildMulticastConfig());
      instance.getConfig().getNetworkConfig().getJoin().setTcpIpConfig(buildTcpIpConfig());
      instance.getLifecycleService().restart();
    }
 catch (    Exception ex) {
      LOGGER.error("String_Node_Str",ex);
    }
  }
}

Fixed version (ground truth):
public void updateMemberList(){
  HazelcastInstance instance=getInstance();
  if (instance != null) {
    try {
      instance.getConfig().setGroupConfig(buildGroupConfig());
      instance.getConfig().getNetworkConfig().getJoin().setMulticastConfig(buildMulticastConfig());
      instance.getConfig().getNetworkConfig().getJoin().setTcpIpConfig(buildTcpIpConfig());
      instance.getLifecycleService().restart();
    }
 catch (    Exception ex) {
      LOGGER.error("String_Node_Str",ex);
    }
  }
}
Program: 18351
Project: 18351
Buggy source:
public void init(){
  scheduler.scheduleAtFixedRate(discoveryTask,0,10,TimeUnit.SECONDS);
  if (combinedClassLoader != null) {
    combinedClassLoader.addBundle(bundleContext.getBundle());
  }
}

Fixed version (ground truth):
public void init(){
  if (discoveryTask != null) {
    scheduler.scheduleAtFixedRate(discoveryTask,0,10,TimeUnit.SECONDS);
  }
 else {
    LOGGER.warn("String_Node_Str");
  }
  if (combinedClassLoader != null) {
    combinedClassLoader.addBundle(bundleContext.getBundle());
  }
  createInstance();
}
Program: 18352
Project: 18352
Buggy source:
/** 
 * Builds a   {@link HazelcastInstance}
 * @return
 */
public HazelcastInstance buildInstance(){
  if (combinedClassLoader != null) {
    Thread.currentThread().setContextClassLoader(combinedClassLoader);
  }
  try {
    semaphore.acquire();
  }
 catch (  InterruptedException e) {
    LOGGER.error("String_Node_Str",e);
  }
  return Hazelcast.newHazelcastInstance(buildConfig());
}

Fixed version (ground truth):
/** 
 * Builds a   {@link HazelcastInstance}
 * @return
 */
private HazelcastInstance buildInstance(){
  if (combinedClassLoader != null) {
    Thread.currentThread().setContextClassLoader(combinedClassLoader);
  }
  return Hazelcast.newHazelcastInstance(buildConfig());
}
Program: 18353
Project: 18353
Buggy source:
public void updateMemberList(){
  HazelcastInstance instance=lookupInstance();
  if (instance != null) {
    try {
      instance.getConfig().setGroupConfig(buildGroupConfig());
      instance.getConfig().getNetworkConfig().getJoin().setMulticastConfig(buildMulticastConfig());
      instance.getConfig().getNetworkConfig().getJoin().setTcpIpConfig(buildTcpIpConfig());
      instance.getLifecycleService().restart();
    }
 catch (    Exception ex) {
      LOGGER.error("String_Node_Str",ex);
    }
  }
}

Fixed version (ground truth):
public void updateMemberList(){
  HazelcastInstance instance=getInstance();
  if (instance != null) {
    try {
      instance.getConfig().setGroupConfig(buildGroupConfig());
      instance.getConfig().getNetworkConfig().getJoin().setMulticastConfig(buildMulticastConfig());
      instance.getConfig().getNetworkConfig().getJoin().setTcpIpConfig(buildTcpIpConfig());
      instance.getLifecycleService().restart();
    }
 catch (    Exception ex) {
      LOGGER.error("String_Node_Str",ex);
    }
  }
}
Program: 18354
Project: 18354
Buggy source:
public void init(){
  scheduler.scheduleAtFixedRate(discoveryTask,0,10,TimeUnit.SECONDS);
  if (combinedClassLoader != null) {
    combinedClassLoader.addBundle(bundleContext.getBundle());
  }
}

Fixed version (ground truth):
public void init(){
  if (discoveryTask != null) {
    scheduler.scheduleAtFixedRate(discoveryTask,0,10,TimeUnit.SECONDS);
  }
 else {
    LOGGER.warn("String_Node_Str");
  }
  if (combinedClassLoader != null) {
    combinedClassLoader.addBundle(bundleContext.getBundle());
  }
  createInstance();
}
Program: 18355
Project: 18355
Buggy source:
/** 
 * Builds a   {@link HazelcastInstance}
 * @return
 */
public HazelcastInstance buildInstance(){
  if (combinedClassLoader != null) {
    Thread.currentThread().setContextClassLoader(combinedClassLoader);
  }
  try {
    semaphore.acquire();
  }
 catch (  InterruptedException e) {
    LOGGER.error("String_Node_Str",e);
  }
  return Hazelcast.newHazelcastInstance(buildConfig());
}

Fixed version (ground truth):
/** 
 * Builds a   {@link HazelcastInstance}
 * @return
 */
private HazelcastInstance buildInstance(){
  if (combinedClassLoader != null) {
    Thread.currentThread().setContextClassLoader(combinedClassLoader);
  }
  return Hazelcast.newHazelcastInstance(buildConfig());
}
Program: 18357
Project: 18357
Buggy source:
/** 
 * {@inheritDoc}
 */
public void stop(){
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void stop(){
  if (_context != null) {
    Registry registry=(Registry)_context.getServletContext().getAttribute(Registry.class.getName());
    if (registry != null) {
      for (      Class<?> clazz : _classes) {
        LOG.debug("String_Node_Str" + clazz);
        registry.removeRegistrations(clazz);
      }
      if ((registry.getSize() == 0) && (!_context.getPath().equals("String_Node_Str"))) {
        try {
          Container container=_context.getParent();
          container.removeChild(_context);
          _context.stop();
          _context.destroy();
          LOG.info("String_Node_Str" + _context.getPath());
        }
 catch (        Exception e) {
          LOG.error("String_Node_Str",e);
        }
      }
    }
  }
}
Program: 18360
Project: 18360
Buggy source:
/** 
 * Mark the top level deployment as being a SwitchYard deployment. If the deployment is not a top level deployment the parent is marked instead
 * @param unit the deployment unit.
 */
public static void mark(DeploymentUnit unit){
  if (unit.getParent() == null) {
    unit.putAttachment(MARKER,Boolean.TRUE);
  }
 else {
    unit.getParent().putAttachment(MARKER,Boolean.TRUE);
  }
}

Fixed version (ground truth):
/** 
 * Mark the top level deployment as being a SwitchYard deployment. If the deployment is not a top level deployment the parent is marked instead
 * @param unit the deployment unit.
 */
public static void mark(DeploymentUnit unit){
  unit.putAttachment(MARKER,Boolean.TRUE);
}
Program: 18361
Project: 18361
Buggy source:
private void flushInputDocuments(boolean force) throws SolrServerException, IOException {
  if (force || (_inputDocs.size() >= MAX_DOCS_PER_ADD)) {
    Thread reporterThread=new Thread(){
      @Override public void run(){
        while (!isInterrupted()) {
          _progress.progress();
          try {
            sleep(10 * 1000);
          }
 catch (          InterruptedException e) {
            interrupt();
          }
        }
      }
    }
;
    reporterThread.start();
    try {
      _solrServer.add(_inputDocs);
      if (force) {
        _solrServer.commit(true,true);
        _solrServer.optimize(true,true,_maxSegments);
      }
    }
 catch (    SolrServerException e) {
      throw new IOException(e);
    }
 finally {
      _inputDocs.clear();
      reporterThread.interrupt();
    }
  }
}

Fixed version (ground truth):
private void flushInputDocuments(boolean force) throws SolrServerException, IOException {
  if (force || (_inputDocs.size() >= MAX_DOCS_PER_ADD)) {
    Thread reporterThread=startProgressThread();
    try {
      _solrServer.add(_inputDocs);
      if (force) {
        _solrServer.commit(true,true);
        _solrServer.optimize(true,true,_maxSegments);
      }
    }
 catch (    SolrServerException e) {
      throw new IOException(e);
    }
 finally {
      _inputDocs.clear();
      reporterThread.interrupt();
    }
  }
}
Program: 18362
Project: 18362
Buggy source:
@Override public void close(final Reporter reporter) throws IOException {
  try {
    flushInputDocuments(true);
    _coreContainer.shutdown();
    _solrServer=null;
    File indexDir=new File(_localIndexDir,"String_Node_Str");
    LOGGER.info(String.format("String_Node_Str",_localIndexDir,_outputPath));
    removeCrcFiles(indexDir);
    _outputFS.copyFromLocalFile(true,new Path(indexDir.getAbsolutePath()),_outputPath);
  }
 catch (  SolrServerException e) {
    throw new IOException(e);
  }
}

Fixed version (ground truth):
@Override public void close(final Reporter reporter) throws IOException {
  try {
    flushInputDocuments(true);
    _coreContainer.shutdown();
    _solrServer=null;
  }
 catch (  SolrServerException e) {
    throw new IOException(e);
  }
  copyToHDFS();
}
Program: 18363
Project: 18363
Buggy source:
/** 
 * Set the original feature of FSTTerminals, because the tree is composed and this information would be lost.
 */
private void setOriginalFeatureName(FSTNonTerminal node,String feature){
  if (node.getType().equals("String_Node_Str")) {
    feature=node.getName();
  }
  for (  FSTNode child : node.getChildren()) {
    if (child instanceof FSTNonTerminal) {
      setOriginalFeatureName((FSTNonTerminal)child,feature);
    }
 else     if (child instanceof FSTTerminal) {
      ((FSTTerminal)child).setOriginalFeatureName(feature);
    }
  }
}

Fixed version (ground truth):
/** 
 * Set the original feature of FSTTerminals, because the tree is composed and this information would be lost.
 */
protected void setOriginalFeatureName(FSTNonTerminal node,String feature){
  if (node.getType().equals("String_Node_Str")) {
    feature=node.getName();
  }
  for (  FSTNode child : node.getChildren()) {
    if (child instanceof FSTNonTerminal) {
      setOriginalFeatureName((FSTNonTerminal)child,feature);
    }
 else     if (child instanceof FSTTerminal) {
      ((FSTTerminal)child).setOriginalFeatureName(feature);
    }
  }
}
Program: 18364
Project: 18364
Buggy source:
private FSTNode composeMeta(List<FSTNonTerminal> tl){
  FSTNode composed=null;
  for (  FSTNode current : tl) {
    if (metaproduct) {
      preProcessSubtree(current);
    }
    if (composed != null) {
      composed=compose(current,composed);
    }
 else     composed=current;
  }
  if (metaproduct) {
    postProcess(composed);
  }
  return composed;
}

Fixed version (ground truth):
private FSTNode composeMeta(List<FSTNonTerminal> tl){
  FSTNode composed=null;
  for (  FSTNode current : tl) {
    if (metaproduct) {
      preProcessSubtree(current);
    }
    setOriginalFeatureName((FSTNonTerminal)current,"String_Node_Str");
    if (composed != null) {
      composed=compose(current,composed);
    }
 else     composed=current;
  }
  if (metaproduct) {
    postProcess(composed);
  }
  return composed;
}
Program: 18366
Project: 18366
Buggy source:
@Test public void testDefaultComposition(){
}

Fixed version (ground truth):
@Test public void testDefaultComposition(){
  try {
    String expression="String_Node_Str";
    String outputDir="String_Node_Str";
    compose(expression,outputDir,null,null);
    assertEquals("String_Node_Str",Checksum.calculateChecksum(new File(outputDir)));
    System.out.println("String_Node_Str");
  }
 catch (  Throwable t) {
    System.err.println(t.getMessage());
    t.printStackTrace();
    throw t;
  }
}
Program: 18367
Project: 18367
Buggy source:
@Test public void testAbstractKeywordComposition() throws IOException {
}

Fixed version (ground truth):
@Test public void testAbstractKeywordComposition() throws IOException {
  try {
    List<Feature> features=new ArrayList<Feature>();
    Feature a=new Feature("String_Node_Str");
    features.add(a);
    a.addFile("String_Node_Str","String_Node_Str");
    Feature b=new Feature("String_Node_Str");
    features.add(b);
    a.addFile("String_Node_Str","String_Node_Str");
    File mainDir=setupProductLineFeatures(features);
    File outputDir=new File(mainDir,"String_Node_Str");
    compose(new File(mainDir,"String_Node_Str").getAbsolutePath(),outputDir.getAbsolutePath(),new File(mainDir,"String_Node_Str").getAbsolutePath(),null);
    assertEquals("String_Node_Str" + mainDir.getAbsolutePath(),"String_Node_Str",Checksum.calculateChecksum(outputDir));
    deleteDirWithContents(mainDir);
    System.out.println("String_Node_Str");
  }
 catch (  Throwable t) {
    System.err.println(t.getMessage());
    t.printStackTrace();
    throw t;
  }
}
Program: 18368
Project: 18368
Buggy source:
public void process(){
  headerContents="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  for (  String feature : meta.getFeatures()) {
    headerContents+="String_Node_Str" + feature + "String_Node_Str";
  }
  cFileContents="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  cFileContents+="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  for (  String feature : meta.getFeatures()) {
    cFileContents+="String_Node_Str" + feature + "String_Node_Str";
  }
  cFileContents+="String_Node_Str";
  processRestrictions();
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
}

Fixed version (ground truth):
public void process(){
  headerContents="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  Set<String> featureSet=new HashSet<String>(meta.getFeatures());
  for (  String feature : featureSet) {
    headerContents+="String_Node_Str" + feature + "String_Node_Str";
  }
  cFileContents="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  cFileContents+="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  for (  String feature : featureSet) {
    cFileContents+="String_Node_Str" + feature + "String_Node_Str";
  }
  cFileContents+="String_Node_Str";
  processRestrictions();
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
  headerContents+="String_Node_Str";
}