nus-yam/ex-repair huggingface dataset:
Program: 188780
Project: 188780
Buggy source:
public void setParameterValues(Map<String,String> parameters) throws InvalidParameterException {
  super.setParameterValues(parameters);
  if (parameters.containsKey("String_Node_Str")) {
    outputArguments=parameters.get("String_Node_Str");
  }
  fillFileFormatStructures();
}

Fixed version (ground truth):
public void setParameterValues(Map<String,String> parameters) throws InvalidParameterException {
  super.setParameterValues(parameters);
  if (parameters.containsKey("String_Node_Str")) {
    outputArguments=parameters.get("String_Node_Str");
  }
}
Program: 188781
Project: 188781
Buggy source:
private static Path executeAvconv(Path input,Path output,String commandArguments,String outputArguments) throws CommandException, IOException, UnsupportedOperationException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  command=command.replace("String_Node_Str",commandArguments);
  command=command.replace("String_Node_Str",outputArguments);
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}

Fixed version (ground truth):
public static String executeAvconv(Path input,Path output,String commandArguments,String outputArguments) throws CommandException, IOException, UnsupportedOperationException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  command=command.replace("String_Node_Str",commandArguments);
  command=command.replace("String_Node_Str",outputArguments);
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  return CommandUtility.execute(commandList);
}
Program: 188782
Project: 188782
Buggy source:
@Override public Path executePlugin(Path uriPath,String fileFormat){
  try {
    return GeneralCommandConvertPluginUtils.runGeneralCommandConvert(uriPath,fileFormat,outputFormat,commandArguments);
  }
 catch (  IOException|CommandException e) {
    return null;
  }
}

Fixed version (ground truth):
@Override public String executePlugin(Path inputPath,Path outputPath,String fileFormat){
  try {
    return GeneralCommandConvertPluginUtils.executeGeneralCommand(inputPath,outputPath,commandArguments);
  }
 catch (  IOException|CommandException e) {
    return null;
  }
}
Program: 188783
Project: 188783
Buggy source:
private static Path executeGeneralCommand(Path input,Path output,String command) throws CommandException, IOException, UnsupportedOperationException {
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}

Fixed version (ground truth):
public static String executeGeneralCommand(Path input,Path output,String command) throws CommandException, IOException, UnsupportedOperationException {
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  return CommandUtility.execute(commandList);
}
Program: 188784
Project: 188784
Buggy source:
@Override public String getVersion(){
  try {
    return GhostScriptConvertPluginUtils.getVersion();
  }
 catch (  CommandException|IOException|UnsupportedOperationException e) {
    logger.debug("String_Node_Str");
    return new String();
  }
}

Fixed version (ground truth):
@Override public String getVersion(){
  try {
    return GhostScriptConvertPluginUtils.getVersion();
  }
 catch (  CommandException|IOException|UnsupportedOperationException e) {
    LoggerFactory.getLogger(SoxConvertPlugin.class).debug("String_Node_Str");
    return new String();
  }
}
Program: 188785
Project: 188785
Buggy source:
@Override public Path executePlugin(Path uriPath,String fileFormat) throws UnsupportedOperationException, IOException, CommandException {
  try {
    return GhostScriptConvertPluginUtils.runGhostScriptConvert(uriPath,fileFormat,outputFormat,commandArguments);
  }
 catch (  GhostscriptException e) {
    return null;
  }
}

Fixed version (ground truth):
@Override public String executePlugin(Path inputPath,Path outputPath,String fileFormat) throws UnsupportedOperationException, IOException, CommandException {
  try {
    return GhostScriptConvertPluginUtils.executeGS(inputPath,outputPath,commandArguments);
  }
 catch (  GhostscriptException e) {
    return null;
  }
}
Program: 188786
Project: 188786
Buggy source:
private static Path executeGS(Path input,Path output,String commandArguments) throws GhostscriptException, IOException, UnsupportedOperationException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  if (commandArguments.length() > 0) {
    command=command.replace("String_Node_Str",commandArguments);
  }
 else {
    command=command.replace("String_Node_Str","String_Node_Str");
  }
  String[] gsArgs=command.split("String_Node_Str");
  Ghostscript gs=Ghostscript.getInstance();
  try {
    gs.initialize(gsArgs);
    gs.exit();
  }
 catch (  GhostscriptException e) {
    throw new GhostscriptException("String_Node_Str",e);
  }
  return output;
}

Fixed version (ground truth):
public static String executeGS(Path input,Path output,String commandArguments) throws GhostscriptException, IOException, UnsupportedOperationException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  if (commandArguments.length() > 0) {
    command=command.replace("String_Node_Str",commandArguments);
  }
 else {
    command=command.replace("String_Node_Str","String_Node_Str");
  }
  String[] gsArgs=command.split("String_Node_Str");
  Ghostscript gs=Ghostscript.getInstance();
  try {
    gs.initialize(gsArgs);
    gs.exit();
  }
 catch (  GhostscriptException e) {
    throw new GhostscriptException("String_Node_Str",e);
  }
  return "String_Node_Str";
}
Program: 188791
Project: 188791
Buggy source:
@Override public void preservationMetadataCreated(PreservationMetadata preservationMetadata){
  try {
    if (preservationMetadata.getAipId() != null) {
      AIP aip=model.retrieveAIP(preservationMetadata.getAipId());
      indexAIP(aip);
    }
    LOGGER.debug("String_Node_Str");
    StoragePath storagePath=ModelUtils.getPreservationMetadataStoragePath(preservationMetadata);
    Binary binary=model.getStorage().getBinary(storagePath);
    SolrInputDocument premisFileDocument=SolrUtils.premisToSolr(preservationMetadata.getAipId(),preservationMetadata.getRepresentationId(),preservationMetadata.getId(),binary);
    PreservationMetadataType type=preservationMetadata.getType();
    if (type.equals(PreservationMetadataType.EVENT)) {
      LOGGER.debug("String_Node_Str");
      index.add(RodaConstants.INDEX_PRESERVATION_EVENTS,premisFileDocument);
      index.commit(RodaConstants.INDEX_PRESERVATION_EVENTS);
    }
 else     if (type.equals(PreservationMetadataType.AGENT)) {
      LOGGER.debug("String_Node_Str");
      index.add(RodaConstants.INDEX_PRESERVATION_AGENTS,premisFileDocument);
      index.commit(RodaConstants.INDEX_PRESERVATION_EVENTS);
    }
  }
 catch (  IOException|SolrServerException|GenericException|RequestNotValidException|NotFoundException|AuthorizationDeniedException e) {
    LOGGER.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void preservationMetadataCreated(PreservationMetadata preservationMetadata){
  try {
    if (preservationMetadata.getAipId() != null) {
      AIP aip=model.retrieveAIP(preservationMetadata.getAipId());
      indexAIP(aip);
    }
    LOGGER.debug("String_Node_Str");
    StoragePath storagePath=ModelUtils.getPreservationMetadataStoragePath(preservationMetadata);
    Binary binary=model.getStorage().getBinary(storagePath);
    SolrInputDocument premisFileDocument=SolrUtils.premisToSolr(preservationMetadata.getAipId(),preservationMetadata.getRepresentationId(),preservationMetadata.getId(),binary);
    PreservationMetadataType type=preservationMetadata.getType();
    if (type.equals(PreservationMetadataType.EVENT)) {
      index.add(RodaConstants.INDEX_PRESERVATION_EVENTS,premisFileDocument);
      index.commit(RodaConstants.INDEX_PRESERVATION_EVENTS);
    }
 else     if (type.equals(PreservationMetadataType.AGENT)) {
      index.add(RodaConstants.INDEX_PRESERVATION_AGENTS,premisFileDocument);
      index.commit(RodaConstants.INDEX_PRESERVATION_AGENTS);
    }
  }
 catch (  IOException|SolrServerException|GenericException|RequestNotValidException|NotFoundException|AuthorizationDeniedException e) {
    LOGGER.error("String_Node_Str",e);
  }
}
Program: 188793
Project: 188793
Buggy source:
@Override public FileVisitResult visitFile(Path file,BasicFileAttributes attrs) throws IOException {
  try {
    Path relativePath=transferredResourcePath.relativize(file);
    String fileId=file.getFileName().toString();
    List<String> directoryPath=new ArrayList<>();
    for (int i=0; i < relativePath.getNameCount() - 1; i++) {
      directoryPath.add(relativePath.getName(i).toString());
    }
    ContentPayload payload=new FSPathContentPayload(transferredResourcePath);
    boolean notifyFileCreated=false;
    model.createFile(aip.getId(),representationId,directoryPath,fileId,payload,notifyFileCreated);
  }
 catch (  RODAException e) {
  }
  return FileVisitResult.CONTINUE;
}

Fixed version (ground truth):
@Override public FileVisitResult visitFile(Path file,BasicFileAttributes attrs) throws IOException {
  try {
    Path relativePath=transferredResourcePath.relativize(file);
    String fileId=file.getFileName().toString();
    List<String> directoryPath=new ArrayList<>();
    for (int i=0; i < relativePath.getNameCount() - 2; i++) {
      directoryPath.add(relativePath.getName(i).toString());
    }
    ContentPayload payload=new FSPathContentPayload(file);
    boolean notifyFileCreated=false;
    model.createFile(aip.getId(),representationId,directoryPath,fileId,payload,notifyFileCreated);
  }
 catch (  RODAException e) {
  }
  return FileVisitResult.CONTINUE;
}
Program: 188795
Project: 188795
Buggy source:
public void run(){
  StringBuffer outputBuffer=new StringBuffer();
  try {
    BufferedReader reader=new BufferedReader(new InputStreamReader(is));
    String line=null;
    do {
      line=reader.readLine();
      if (line != null) {
        outputBuffer.append(line + "String_Node_Str");
        logger.trace(line);
      }
    }
 while (line != null);
  }
 catch (  IOException e) {
    logger.error("String_Node_Str" + e.getMessage(),e);
  }
  output=outputBuffer.toString();
synchronized (is) {
    is.notify();
  }
}

Fixed version (ground truth):
public void run(){
  StringBuffer outputBuffer=new StringBuffer();
  try {
    BufferedReader reader=new BufferedReader(new InputStreamReader(is));
    String line=null;
    while ((line=reader.readLine()) != null) {
      outputBuffer.append(line + "String_Node_Str");
      logger.trace(line);
    }
  }
 catch (  IOException e) {
    logger.error("String_Node_Str" + e.getMessage(),e);
  }
  output=outputBuffer.toString();
synchronized (is) {
    is.notify();
  }
}
Program: 188796
Project: 188796
Buggy source:
public static Path runFFMPEGVideoConvert(Path input,String inputFormat,String outputFormat) throws IOException, CommandException {
  Path output=Files.createTempFile("String_Node_Str","String_Node_Str" + outputFormat);
  List<String> command=new ArrayList<String>();
  command.add("String_Node_Str");
  command.add("String_Node_Str");
  command.add(input.toString());
  command.add(output.toString());
  CommandUtility.execute(command);
  return output;
}

Fixed version (ground truth):
public static Path runFFMPEGVideoConvert(Path input,String inputFormat,String outputFormat) throws IOException, CommandException {
  Path output=Files.createTempFile("String_Node_Str","String_Node_Str" + outputFormat);
  List<String> command=new ArrayList<String>();
  command.add("String_Node_Str");
  command.add("String_Node_Str");
  command.add("String_Node_Str");
  command.add(input.toString());
  command.add(output.toString());
  CommandUtility.execute(command);
  return output;
}
Program: 188797
Project: 188797
Buggy source:
public static Path runJODConverter(Path input,String inputFormat,String outputFormat) throws IOException, CommandException {
  Path output=Files.createTempFile("String_Node_Str","String_Node_Str" + outputFormat);
  File inputFile=new File(input.toString());
  File outputFile=new File(output.toString());
  OpenOfficeConnection connection=new SocketOpenOfficeConnection(8100);
  connection.connect();
  DocumentConverter converter=new OpenOfficeDocumentConverter(connection);
  converter.convert(inputFile,outputFile);
  connection.disconnect();
  return output;
}

Fixed version (ground truth):
public static Path runJODConverter(Path input,String inputFormat,String outputFormat) throws IOException, CommandException {
  Path output=Files.createTempFile("String_Node_Str","String_Node_Str" + outputFormat);
  File inputFile=new File(input.toString());
  File outputFile=new File(output.toString());
  OpenOfficeConnection connection=new SocketOpenOfficeConnection(PluginHelper.OPENOFFICE_PORT);
  connection.connect();
  DocumentConverter converter=new OpenOfficeDocumentConverter(connection);
  converter.convert(inputFile,outputFile);
  connection.disconnect();
  return output;
}
Program: 188799
Project: 188799
Buggy source:
private static Path executeFFMPEG(Path input,Path output) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command.replace("String_Node_Str",input.toString());
  command.replace("String_Node_Str",output.toString());
  System.out.println("String_Node_Str" + command);
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}

Fixed version (ground truth):
private static Path executeFFMPEG(Path input,Path output) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  command=command.replace("String_Node_Str","String_Node_Str");
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}
Program: 188800
Project: 188800
Buggy source:
private static Path executeImageMagick(Path input,Path output,String inputFormat,String outputFormat) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command.replace("String_Node_Str",inputFormat + "String_Node_Str" + input.toString());
  command.replace("String_Node_Str",outputFormat + "String_Node_Str" + output.toString());
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}

Fixed version (ground truth):
private static Path executeImageMagick(Path input,Path output,String inputFormat,String outputFormat) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",inputFormat + "String_Node_Str" + input.toString());
  command=command.replace("String_Node_Str",outputFormat + "String_Node_Str" + output.toString());
  command=command.replace("String_Node_Str","String_Node_Str");
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}
Program: 188801
Project: 188801
Buggy source:
private static Path executeSox(Path input,Path output) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command.replace("String_Node_Str",input.toString());
  command.replace("String_Node_Str",output.toString());
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}

Fixed version (ground truth):
private static Path executeSox(Path input,Path output) throws CommandException {
  String command=RodaCoreFactory.getRodaConfigurationAsString("String_Node_Str","String_Node_Str","String_Node_Str");
  command=command.replace("String_Node_Str",input.toString());
  command=command.replace("String_Node_Str",output.toString());
  command=command.replace("String_Node_Str","String_Node_Str");
  List<String> commandList=Arrays.asList(command.split("String_Node_Str"));
  CommandUtility.execute(commandList);
  return output;
}
Program: 188802
Project: 188802
Buggy source:
private void indexFile(File file,boolean commit){
  RepresentationFilePreservationObject premisFile=null;
  try {
    premisFile=PremisUtils.getPremisFile(model.getStorage(),file.getAipId(),file.getRepresentationId(),file.getId() + "String_Node_Str");
  }
 catch (  PremisMetadataException|RODAException|IOException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
  SolrInputDocument fileDocument=SolrUtils.fileToSolrDocument(file,premisFile);
  try {
    index.add(RodaConstants.INDEX_FILE,fileDocument);
    if (commit) {
      index.commit();
    }
  }
 catch (  SolrServerException|IOException e) {
    LOGGER.error("String_Node_Str" + file,e);
  }
}

Fixed version (ground truth):
private void indexFile(File file,boolean commit){
  RepresentationFilePreservationObject premisFile=null;
  try {
    premisFile=PremisUtils.getPremisFile(model.getStorage(),file.getAipId(),file.getRepresentationId(),file.getId() + "String_Node_Str");
  }
 catch (  PremisMetadataException|RODAException|IOException e) {
    LOGGER.warn("String_Node_Str" + file,e);
  }
  SolrInputDocument fileDocument=SolrUtils.fileToSolrDocument(file,premisFile);
  try {
    index.add(RodaConstants.INDEX_FILE,fileDocument);
    if (commit) {
      index.commit(RodaConstants.INDEX_FILE);
    }
  }
 catch (  SolrServerException|IOException e) {
    LOGGER.error("String_Node_Str" + file,e);
  }
}
Program: 188804
Project: 188804
Buggy source:
public void run(){
  long start=System.currentTimeMillis();
  LOGGER.error("String_Node_Str" + basePath.toString());
  try {
    EnumSet<FileVisitOption> opts=EnumSet.of(FileVisitOption.FOLLOW_LINKS);
    Files.walkFileTree(basePath,opts,Integer.MAX_VALUE,new FileVisitor<Path>(){
      @Override public FileVisitResult preVisitDirectory(      Path dir,      BasicFileAttributes attrs) throws IOException {
        indexPath(dir,attrs);
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult visitFile(      Path file,      BasicFileAttributes attrs) throws IOException {
        indexPath(file,attrs);
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult visitFileFailed(      Path file,      IOException exc) throws IOException {
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult postVisitDirectory(      Path dir,      IOException exc) throws IOException {
        return FileVisitResult.CONTINUE;
      }
    }
);
    index.commit(RodaConstants.INDEX_SIP);
    LOGGER.error("String_Node_Str");
    LOGGER.error("String_Node_Str" + ((System.currentTimeMillis() - start) / 1000) + "String_Node_Str");
    RodaCoreFactory.setFolderMonitorDate(basePath,new Date());
  }
 catch (  IOException|SolrServerException e) {
    LOGGER.error("String_Node_Str");
  }
}

Fixed version (ground truth):
public void run(){
  long start=System.currentTimeMillis();
  LOGGER.debug("String_Node_Str" + basePath.toString());
  try {
    EnumSet<FileVisitOption> opts=EnumSet.of(FileVisitOption.FOLLOW_LINKS);
    Files.walkFileTree(basePath,opts,Integer.MAX_VALUE,new FileVisitor<Path>(){
      @Override public FileVisitResult preVisitDirectory(      Path dir,      BasicFileAttributes attrs) throws IOException {
        indexPath(dir,attrs);
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult visitFile(      Path file,      BasicFileAttributes attrs) throws IOException {
        indexPath(file,attrs);
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult visitFileFailed(      Path file,      IOException exc) throws IOException {
        return FileVisitResult.CONTINUE;
      }
      @Override public FileVisitResult postVisitDirectory(      Path dir,      IOException exc) throws IOException {
        return FileVisitResult.CONTINUE;
      }
    }
);
    index.commit(RodaConstants.INDEX_SIP);
    LOGGER.debug("String_Node_Str");
    LOGGER.debug("String_Node_Str" + ((System.currentTimeMillis() - start) / 1000) + "String_Node_Str");
    RodaCoreFactory.setFolderMonitorDate(basePath,new Date());
  }
 catch (  IOException|SolrServerException e) {
    LOGGER.error("String_Node_Str");
  }
}
Program: 188806
Project: 188806
Buggy source:
private void indexPath(Path file,BasicFileAttributes attrs){
  Date modifiedDate=new Date(attrs.lastModifiedTime().toMillis());
  if (from == null || from.before(modifiedDate)) {
    transferredResourceAdded(FolderMonitorNIO.createTransferredResource(file,basePath),false);
    counter++;
    if (counter >= 1000) {
      try {
        LOGGER.error("String_Node_Str");
        index.commit(RodaConstants.INDEX_SIP);
        counter=0;
      }
 catch (      IOException|SolrServerException e) {
        LOGGER.error(e.getMessage(),e);
      }
    }
  }
}

Fixed version (ground truth):
private void indexPath(Path file,BasicFileAttributes attrs){
  Date modifiedDate=new Date(attrs.lastModifiedTime().toMillis());
  if (from == null || from.before(modifiedDate)) {
    transferredResourceAdded(FolderMonitorNIO.createTransferredResource(file,basePath),false);
    counter++;
    if (counter >= 1000) {
      try {
        LOGGER.debug("String_Node_Str");
        index.commit(RodaConstants.INDEX_SIP);
        counter=0;
      }
 catch (      IOException|SolrServerException e) {
        LOGGER.error(e.getMessage(),e);
      }
    }
  }
}
Program: 188807
Project: 188807
Buggy source:
private <T extends Serializable>void addPluginToPluginTypeMapping(Plugin<T> plugin){
  PluginInfo pluginInfo=getPluginInfo(plugin.getName());
  PluginType pluginType=plugin.getType();
  if (pluginInfoPerType.get(pluginType) == null) {
    List<PluginInfo> list=new ArrayList<>();
    list.add(pluginInfo);
    pluginInfoPerType.put(pluginType,list);
  }
 else   if (!pluginInfoPerType.get(pluginType).contains(plugin)) {
    pluginInfoPerType.get(pluginType).add(pluginInfo);
  }
}

Fixed version (ground truth):
private <T extends Serializable>void addPluginToPluginTypeMapping(Plugin<T> plugin){
  PluginInfo pluginInfo=getPluginInfo(plugin.getClass().getCanonicalName());
  PluginType pluginType=plugin.getType();
  if (pluginInfoPerType.get(pluginType) == null) {
    List<PluginInfo> list=new ArrayList<>();
    list.add(pluginInfo);
    pluginInfoPerType.put(pluginType,list);
  }
 else   if (!pluginInfoPerType.get(pluginType).contains(plugin)) {
    pluginInfoPerType.get(pluginType).add(pluginInfo);
  }
}
Program: 188808
Project: 188808
Buggy source:
@Override public FileVisitResult visitFile(Path file,BasicFileAttributes attrs) throws IOException {
  Date modifiedDate=new Date(attrs.lastModifiedTime().toMillis());
  if (from == null || from.before(modifiedDate)) {
    transferredResourceAdded(FolderMonitorNIO.createTransferredResource(file,basePath),false);
    counter++;
    if (counter >= 1000) {
      try {
        LOGGER.error("String_Node_Str");
        index.commit(RodaConstants.INDEX_SIP);
        counter=0;
      }
 catch (      IOException|SolrServerException e) {
        LOGGER.error(e.getMessage(),e);
      }
    }
  }
  return FileVisitResult.CONTINUE;
}

Fixed version (ground truth):
@Override public FileVisitResult visitFile(Path file,BasicFileAttributes attrs) throws IOException {
  indexPath(file,attrs);
  return FileVisitResult.CONTINUE;
}
Program: 188810
Project: 188810
Buggy source:
@Override public FileVisitResult preVisitDirectory(Path dir,BasicFileAttributes attrs) throws IOException {
  return FileVisitResult.CONTINUE;
}

Fixed version (ground truth):
@Override public FileVisitResult preVisitDirectory(Path dir,BasicFileAttributes attrs) throws IOException {
  indexPath(dir,attrs);
  return FileVisitResult.CONTINUE;
}
Program: 188812
Project: 188812
Buggy source:
@Override public String getValue(){
  List<TransferredResource> items=display.getVisibleItems();
  if (items.size() == 0) {
    return "String_Node_Str";
  }
 else {
    long totalSize=0;
    for (    TransferredResource item : items) {
      totalSize+=item.getSize();
    }
    return Humanize.readableFileSize(totalSize);
  }
}

Fixed version (ground truth):
@Override public String getValue(){
  List<TransferredResource> items=display.getVisibleItems();
  if (items.size() == 0) {
    return "String_Node_Str";
  }
 else {
    long totalSize=0;
    for (    TransferredResource item : items) {
      totalSize+=item.getSize();
    }
    return totalSize > 0 ? Humanize.readableFileSize(totalSize) : "String_Node_Str";
  }
}
Program: 188813
Project: 188813
Buggy source:
@Override public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException, ServletException {
  LOGGER.debug("String_Node_Str");
  final HttpServletRequest httpRequest=(HttpServletRequest)request;
  final HttpServletResponse httpResponse=(HttpServletResponse)response;
  String url=httpRequest.getRequestURL().toString();
  String requestURI=httpRequest.getRequestURI();
  String service=httpRequest.getParameter("String_Node_Str");
  String hash=httpRequest.getParameter("String_Node_Str");
  LOGGER.debug("String_Node_Str" + url);
  LOGGER.debug("String_Node_Str" + requestURI);
  LOGGER.debug("String_Node_Str" + service);
  LOGGER.debug("String_Node_Str" + hash);
  if (requestURI.equals("String_Node_Str")) {
    String redirect="String_Node_Str";
    if (hash != null) {
      redirect+=Tools.HISTORY_SEP + hash;
    }
    httpResponse.sendRedirect(redirect);
  }
 else   if (requestURI.equals("String_Node_Str")) {
    UserUtility.logout(httpRequest);
    httpResponse.sendRedirect("String_Node_Str");
  }
 else {
    chain.doFilter(request,response);
  }
}

Fixed version (ground truth):
@Override public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException, ServletException {
  LOGGER.debug("String_Node_Str");
  final HttpServletRequest httpRequest=(HttpServletRequest)request;
  final HttpServletResponse httpResponse=(HttpServletResponse)response;
  String url=httpRequest.getRequestURL().toString();
  String requestURI=httpRequest.getRequestURI();
  String service=httpRequest.getParameter("String_Node_Str");
  String hash=httpRequest.getParameter("String_Node_Str");
  LOGGER.debug("String_Node_Str" + url);
  LOGGER.debug("String_Node_Str" + requestURI);
  LOGGER.debug("String_Node_Str" + service);
  LOGGER.debug("String_Node_Str" + hash);
  if (requestURI.equals("String_Node_Str")) {
    String redirect="String_Node_Str" + Login.RESOLVER.getHistoryToken();
    if (hash != null) {
      redirect+=Tools.HISTORY_SEP + hash;
    }
    httpResponse.sendRedirect(redirect);
  }
 else   if (requestURI.equals("String_Node_Str")) {
    UserUtility.logout(httpRequest);
    httpResponse.sendRedirect("String_Node_Str" + About.RESOLVER.getHistoryToken());
  }
 else {
    chain.doFilter(request,response);
  }
}
Program: 188814
Project: 188814
Buggy source:
@Override public void run(){
  if (create) {
    notifyPathCreated(basePath,updatedPath);
  }
 else   if (modify) {
    notifyPathModified(basePath,updatedPath);
  }
 else   if (delete) {
    notifyPathDeleted(basePath,updatedPath);
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (kind == ENTRY_CREATE) {
    notifyPathCreated(basePath,updatedPath);
  }
 else   if (kind == ENTRY_MODIFY) {
    notifyPathModified(basePath,updatedPath);
  }
 else   if (kind == ENTRY_DELETE) {
    notifyPathDeleted(basePath,updatedPath);
  }
}
Program: 188815
Project: 188815
Buggy source:
void processEvents(){
  for (; ; ) {
    WatchKey key;
    try {
      key=watcher.poll(timeout,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException x) {
      return;
    }
    Path dir=keys.get(key);
    if (dir == null) {
      continue;
    }
    for (    WatchEvent<?> event : key.pollEvents()) {
      WatchEvent.Kind<?> kind=event.kind();
      if (kind == OVERFLOW) {
        continue;
      }
      WatchEvent<Path> ev=cast(event);
      Path name=ev.context();
      Path child=dir.resolve(name);
      if (recursive && (kind == ENTRY_CREATE)) {
        try {
          if (Files.isDirectory(child,NOFOLLOW_LINKS)) {
            registerAll(child,false,null);
          }
        }
 catch (        IOException x) {
        }
      }
      if (kind == ENTRY_CREATE) {
        LOGGER.debug("String_Node_Str" + child.toString());
        NotifierThread nt=new NotifierThread(observers,basePath,child,true,false,false);
        executor.execute(nt);
      }
 else       if (kind == ENTRY_MODIFY) {
        LOGGER.debug("String_Node_Str" + child.toString());
        NotifierThread nt=new NotifierThread(observers,basePath,child,true,false,false);
        executor.execute(nt);
      }
 else       if (kind == ENTRY_DELETE) {
        LOGGER.debug("String_Node_Str" + child.toString());
        NotifierThread nt=new NotifierThread(observers,basePath,child,true,false,false);
        executor.execute(nt);
      }
 else       if (kind == OVERFLOW) {
        LOGGER.debug("String_Node_Str");
      }
    }
    boolean valid=key.reset();
    if (!valid) {
      keys.remove(key);
      if (keys.isEmpty()) {
        break;
      }
    }
  }
}

Fixed version (ground truth):
void processEvents(){
  for (; ; ) {
    WatchKey key;
    try {
      key=watcher.poll(timeout,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException x) {
      return;
    }
    Path dir=keys.get(key);
    if (dir == null) {
      continue;
    }
    for (    WatchEvent<?> event : key.pollEvents()) {
      WatchEvent.Kind<?> kind=event.kind();
      if (kind == OVERFLOW) {
        continue;
      }
      WatchEvent<Path> ev=cast(event);
      Path name=ev.context();
      Path child=dir.resolve(name);
      if (recursive && (kind == ENTRY_CREATE)) {
        try {
          if (Files.isDirectory(child,NOFOLLOW_LINKS)) {
            registerAll(child,false,null);
          }
        }
 catch (        IOException x) {
        }
      }
      NotifierThread nt=new NotifierThread(observers,basePath,child,kind);
      executor.execute(nt);
    }
    boolean valid=key.reset();
    if (!valid) {
      keys.remove(key);
      if (keys.isEmpty()) {
        break;
      }
    }
  }
}
Program: 188816
Project: 188816
Buggy source:
public NotifierThread(List<FolderObserver> observers,Path basePath,Path updatedPath,boolean create,boolean modify,boolean delete){
  this.observers=observers;
  this.basePath=basePath;
  this.updatedPath=updatedPath;
  this.create=create;
  this.modify=modify;
  this.delete=delete;
}

Fixed version (ground truth):
public NotifierThread(List<FolderObserver> observers,Path basePath,Path updatedPath,WatchEvent.Kind<?> kind){
  this.observers=observers;
  this.basePath=basePath;
  this.updatedPath=updatedPath;
  this.kind=kind;
}
Program: 188817
Project: 188817
Buggy source:
@Override public void onClick(ClickEvent event){
  dialogBox.hide();
  callback.onSuccess(null);
}

Fixed version (ground truth):
@Override public void onClick(ClickEvent event){
  dialogBox.hide();
  callback.onSuccess(inputBox.getText());
}
Program: 188818
Project: 188818
Buggy source:
private IngestSubmit(){
  layout=new TabPanel();
  uploadSIP=new UploadSIP();
  createSIP=new CreateSIP();
  layout.add(createSIP.getWidget(),constants.createTabTitle());
  layout.add(uploadSIP.getWidget(),constants.uploadTabTitle());
  layout.addSelectionHandler(new SelectionHandler<Integer>(){
    @Override public void onSelection(    SelectionEvent<Integer> event){
      String newHistoryToken;
switch (event.getSelectedItem()) {
case 0:
        newHistoryToken=RESOLVER.getHistoryPath() + "String_Node_Str";
      break;
case 1:
default :
    newHistoryToken=RESOLVER.getHistoryPath() + "String_Node_Str";
  break;
}
if (!History.getToken().equals(newHistoryToken)) {
History.newItem(newHistoryToken);
}
}
}
);
layout.addStyleName("String_Node_Str");
}

Fixed version (ground truth):
private IngestSubmit(){
  layout=new TabPanel();
  uploadSIP=new UploadSIP();
  createSIP=new CreateSIP();
  layout.add(createSIP.getWidget(),constants.createTabTitle());
  layout.add(uploadSIP.getWidget(),constants.uploadTabTitle());
  layout.addSelectionHandler(new SelectionHandler<Integer>(){
    @Override public void onSelection(    SelectionEvent<Integer> event){
      String newHistoryToken;
switch (event.getSelectedItem()) {
case 0:
        newHistoryToken="String_Node_Str";
      break;
case 1:
default :
    newHistoryToken="String_Node_Str";
  break;
}
if (!History.getToken().equals(newHistoryToken)) {
Tools.newHistory(RESOLVER,newHistoryToken);
}
}
}
);
layout.addStyleName("String_Node_Str");
}
Program: 188819
Project: 188819
Buggy source:
@Override public void onSelection(SelectionEvent<Integer> event){
  String newHistoryToken;
switch (event.getSelectedItem()) {
case 0:
    newHistoryToken=RESOLVER.getHistoryPath() + "String_Node_Str";
  break;
case 1:
default :
newHistoryToken=RESOLVER.getHistoryPath() + "String_Node_Str";
break;
}
if (!History.getToken().equals(newHistoryToken)) {
History.newItem(newHistoryToken);
}
}

Fixed version (ground truth):
@Override public void onSelection(SelectionEvent<Integer> event){
  String newHistoryToken;
switch (event.getSelectedItem()) {
case 0:
    newHistoryToken="String_Node_Str";
  break;
case 1:
default :
newHistoryToken="String_Node_Str";
break;
}
if (!History.getToken().equals(newHistoryToken)) {
Tools.newHistory(RESOLVER,newHistoryToken);
}
}
Program: 188821
Project: 188821
Buggy source:
/** 
 * @throws RODAServiceException
 */
public AbstractSynchronousConverter() throws RODAServiceException {
  super();
  String rodaServicesURL=getConfiguration().getString("String_Node_Str");
  String username=getClientUser().getName();
  String password=getClientUserPassword();
  String casURL=getConfiguration().getString("String_Node_Str");
  String coreURL=getConfiguration().getString("String_Node_Str");
  CASUserPrincipal cup=null;
  CASUtility casUtility=null;
  try {
    casUtility=new CASUtility(new URL(casURL),new URL(coreURL));
  }
 catch (  Throwable e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    cup=casUtility.getCASUserPrincipal(username,password);
  }
 catch (  Exception e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    this.rodaDownloader=new Downloader(new URL(rodaServicesURL),cup,casUtility);
  }
 catch (  DownloaderException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
catch (  MalformedURLException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    rodaClient=new RODAClient(new URL(rodaServicesURL),cup,casUtility);
  }
 catch (  RODAClientException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
catch (  MalformedURLException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
}

Fixed version (ground truth):
/** 
 * @throws RODAServiceException
 */
public AbstractSynchronousConverter() throws RODAServiceException {
  super();
  String rodaServicesURL=getConfiguration().getString("String_Node_Str");
  String username=getClientUser().getName();
  String password=getClientUserPassword();
  String casURL=getConfiguration().getString("String_Node_Str");
  String coreURL=getConfiguration().getString("String_Node_Str");
  CASUserPrincipal cup=null;
  CASUtility casUtility=null;
  try {
    casUtility=new CASUtility(new URL(casURL),new URL(coreURL));
  }
 catch (  Throwable e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    cup=casUtility.getCASUserPrincipal(username,password,"String_Node_Str");
  }
 catch (  Exception e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    this.rodaDownloader=new Downloader(new URL(rodaServicesURL),cup,casUtility);
  }
 catch (  DownloaderException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
catch (  MalformedURLException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
  try {
    rodaClient=new RODAClient(new URL(rodaServicesURL),cup,casUtility);
  }
 catch (  RODAClientException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
catch (  MalformedURLException e) {
    throw new RODAServiceException("String_Node_Str" + e.getMessage(),e);
  }
}
Program: 188822
Project: 188822
Buggy source:
public static String preservationObjectFromStorageToHtml(SimplePreservationMetadata object,ModelService model,Locale locale) throws ModelServiceException {
  try {
    if (locale == null) {
      locale=new Locale("String_Node_Str","String_Node_Str");
    }
    StoragePath storagePath=ModelUtils.getPreservationFilePath(object.getAipId(),object.getRepresentationId(),object.getFileId());
    Binary binary=model.getStorage().getBinary(storagePath);
    InputStream inputStream=binary.getContent().createInputStream();
    Reader descMetadataReader=new InputStreamReader(inputStream);
    InputStream transformerStream=getStylesheetInputStream("String_Node_Str",locale,"String_Node_Str");
    Reader xsltReader=new InputStreamReader(transformerStream);
    CharArrayWriter transformerResult=new CharArrayWriter();
    Map<String,String> stylesheetOpt=new HashMap<String,String>();
    stylesheetOpt.put("String_Node_Str",RodaConstants.INDEX_OTHER_DESCRIPTIVE_DATA_PREFIX);
    RodaUtils.applyStylesheet(xsltReader,descMetadataReader,stylesheetOpt,transformerResult);
    descMetadataReader.close();
    return transformerResult.toString();
  }
 catch (  StorageActionException|TransformerException|IOException e) {
    LOGGER.error("String_Node_Str",e);
    throw new ModelServiceException("String_Node_Str",ModelServiceException.INTERNAL_SERVER_ERROR,e);
  }
}

Fixed version (ground truth):
public static String preservationObjectFromStorageToHtml(SimplePreservationMetadata object,ModelService model,Locale locale) throws ModelServiceException {
  try {
    if (locale == null) {
      locale=new Locale("String_Node_Str","String_Node_Str");
    }
    StoragePath storagePath=ModelUtils.getPreservationFilePath(object.getAipId(),object.getRepresentationId(),object.getFileId());
    Binary binary=model.getStorage().getBinary(storagePath);
    InputStream inputStream=binary.getContent().createInputStream();
    Reader descMetadataReader=new InputStreamReader(inputStream);
    InputStream transformerStream=getStylesheetInputStream("String_Node_Str",locale,"String_Node_Str");
    Reader xsltReader=new InputStreamReader(transformerStream);
    CharArrayWriter transformerResult=new CharArrayWriter();
    Map<String,String> stylesheetOpt=new HashMap<String,String>();
    stylesheetOpt.put("String_Node_Str",RodaConstants.INDEX_OTHER_DESCRIPTIVE_DATA_PREFIX);
    RodaUtils.applyStylesheet(xsltReader,descMetadataReader,stylesheetOpt,transformerResult);
    descMetadataReader.close();
    return transformerResult.toString();
  }
 catch (  StorageServiceException|TransformerException|IOException e) {
    LOGGER.error("String_Node_Str",e);
    throw new ModelServiceException("String_Node_Str",ModelServiceException.INTERNAL_SERVER_ERROR,e);
  }
}
Program: 188824
Project: 188824
Buggy source:
/** 
 * Validates all descriptive metadata files contained in the AIP
 */
public static boolean isAIPDescriptiveMetadataValid(ModelService model,String aipId) throws ModelServiceException {
  boolean valid=true;
  ClosableIterable<DescriptiveMetadata> descriptiveMetadataBinaries=model.listDescriptiveMetadataBinaries(aipId);
  try {
    for (    DescriptiveMetadata descriptiveMetadata : descriptiveMetadataBinaries) {
      if (!isDescriptiveMetadataValid(model,descriptiveMetadata)) {
        valid=false;
        break;
      }
    }
  }
  finally {
    try {
      descriptiveMetadataBinaries.close();
    }
 catch (    IOException e) {
      LOGGER.error("String_Node_Str",e);
    }
  }
  return valid;
}

Fixed version (ground truth):
/** 
 * Validates all descriptive metadata files contained in the AIP
 */
public static boolean isAIPDescriptiveMetadataValid(ModelService model,String aipId,boolean failIfNoSchema) throws ModelServiceException {
  boolean valid=true;
  ClosableIterable<DescriptiveMetadata> descriptiveMetadataBinaries=model.listDescriptiveMetadataBinaries(aipId);
  try {
    for (    DescriptiveMetadata descriptiveMetadata : descriptiveMetadataBinaries) {
      if (!isDescriptiveMetadataValid(model,descriptiveMetadata,failIfNoSchema)) {
        valid=false;
        break;
      }
    }
  }
  finally {
    try {
      descriptiveMetadataBinaries.close();
    }
 catch (    IOException e) {
      LOGGER.error("String_Node_Str",e);
    }
  }
  return valid;
}
Program: 188825
Project: 188825
Buggy source:
private void indexAIPandSDO(final AIP aip){
  try {
    SolrInputDocument aipDoc=SolrUtils.aipToSolrInputDocument(aip);
    SolrInputDocument sdoDoc=SolrUtils.aipToSolrInputDocumentAsSDO(aip,model);
    index.add(RodaConstants.INDEX_AIP,aipDoc);
    LOGGER.debug("String_Node_Str" + sdoDoc);
    index.add(RodaConstants.INDEX_SDO,sdoDoc);
  }
 catch (  SolrServerException|IOException|ModelServiceException|StorageActionException|IndexActionException e) {
    LOGGER.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
private void indexAIPandSDO(final AIP aip){
  try {
    SolrInputDocument aipDoc=SolrUtils.aipToSolrInputDocument(aip);
    SolrInputDocument sdoDoc=SolrUtils.aipToSolrInputDocumentAsSDO(aip,model);
    index.add(RodaConstants.INDEX_AIP,aipDoc);
    index.commit(RodaConstants.INDEX_AIP);
    LOGGER.debug("String_Node_Str" + sdoDoc);
    index.add(RodaConstants.INDEX_SDO,sdoDoc);
    index.commit(RodaConstants.INDEX_SDO);
  }
 catch (  SolrServerException|IOException|ModelServiceException|StorageServiceException|IndexServiceException e) {
    LOGGER.error("String_Node_Str",e);
  }
}
Program: 188826
Project: 188826
Buggy source:
private void ensureAllContainersExist(){
  try {
    storage.createContainer(DefaultStoragePath.parse(RodaConstants.STORAGE_CONTAINER_ACTIONLOG),new HashMap<String,Set<String>>());
  }
 catch (  StorageServiceException e) {
    if (e.getCode() != StorageServiceException.ALREADY_EXISTS) {
      LOGGER.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
private void ensureAllContainersExist(){
  try {
    storage.createContainer(DefaultStoragePath.parse(RodaConstants.STORAGE_CONTAINER_ACTIONLOG),new HashMap<String,Set<String>>());
  }
 catch (  StorageServiceException e) {
    if (e.getCode() != StorageServiceException.ALREADY_EXISTS) {
      LOGGER.error("String_Node_Str",e);
    }
  }
  try {
    storage.createContainer(DefaultStoragePath.parse(RodaConstants.STORAGE_CONTAINER_SIP_STATE),new HashMap<String,Set<String>>());
  }
 catch (  StorageServiceException e) {
    if (e.getCode() != StorageServiceException.ALREADY_EXISTS) {
      LOGGER.error("String_Node_Str",e);
    }
  }
}
Program: 188827
Project: 188827
Buggy source:
@BeforeClass public static void setUp() throws IOException, StorageServiceException, URISyntaxException, ModelServiceException {
  basePath=Files.createTempDirectory("String_Node_Str");
  logPath=basePath.resolve("String_Node_Str");
  Files.createDirectories(logPath);
  storage=new FileStorageService(basePath);
  model=new ModelService(storage);
  URL corporaURL=ModelServiceTest.class.getResource("String_Node_Str");
  corporaPath=Paths.get(corporaURL.toURI());
  corporaService=new FileStorageService(corporaPath);
  logger.debug("String_Node_Str" + basePath);
}

Fixed version (ground truth):
@BeforeClass public static void setUp() throws IOException, StorageServiceException, URISyntaxException, ModelServiceException {
  basePath=Files.createTempDirectory("String_Node_Str");
  logPath=basePath.resolve("String_Node_Str");
  storage=new FileStorageService(basePath);
  model=new ModelService(storage);
  URL corporaURL=ModelServiceTest.class.getResource("String_Node_Str");
  corporaPath=Paths.get(corporaURL.toURI());
  corporaService=new FileStorageService(corporaPath);
  logger.debug("String_Node_Str" + basePath);
}
Program: 188828
Project: 188828
Buggy source:
@Test public void createSIPState() throws ModelServiceException, StorageActionException {
  SIPState state=new SIPState();
  state.setComplete(true);
  state.setCompletePercentage(99.9F);
  state.setDatetime(new Date());
  state.setFileID("String_Node_Str");
  state.setId("String_Node_Str");
  state.setIngestedID("String_Node_Str");
  state.setOriginalFilename("String_Node_Str");
  state.setParentID("String_Node_Str");
  state.setProcessing(false);
  state.setState("String_Node_Str");
  SIPStateTransition[] stateTransitions=new SIPStateTransition[2];
  SIPStateTransition st1=new SIPStateTransition("String_Node_Str","String_Node_Str","String_Node_Str",new Date(),"String_Node_Str",true,"String_Node_Str");
  SIPStateTransition st2=new SIPStateTransition("String_Node_Str","String_Node_Str","String_Node_Str",new Date(),"String_Node_Str",false,"String_Node_Str");
  stateTransitions[0]=st1;
  stateTransitions[1]=st2;
  state.setStateTransitions(stateTransitions);
  state.setUsername("String_Node_Str");
  model.addSipState(state);
}

Fixed version (ground truth):
@Test public void createSIPState() throws ModelServiceException, StorageServiceException {
  SIPState state=new SIPState();
  state.setComplete(true);
  state.setCompletePercentage(99.9F);
  state.setDatetime(new Date());
  state.setFileID("String_Node_Str");
  state.setId("String_Node_Str");
  state.setIngestedID("String_Node_Str");
  state.setOriginalFilename("String_Node_Str");
  state.setParentID("String_Node_Str");
  state.setProcessing(false);
  state.setState("String_Node_Str");
  SIPStateTransition[] stateTransitions=new SIPStateTransition[2];
  SIPStateTransition st1=new SIPStateTransition("String_Node_Str","String_Node_Str","String_Node_Str",new Date(),"String_Node_Str",true,"String_Node_Str");
  SIPStateTransition st2=new SIPStateTransition("String_Node_Str","String_Node_Str","String_Node_Str",new Date(),"String_Node_Str",false,"String_Node_Str");
  stateTransitions[0]=st1;
  stateTransitions[1]=st2;
  state.setStateTransitions(stateTransitions);
  state.setUsername("String_Node_Str");
  model.addSipState(state);
}