Program: 10707
Project: 10707
Buggy source:
private void createChromeBrowser(DesiredCapabilities capabilities) throws MalformedURLException {
  log.info("String_Node_Str");
  ChromeDriverManager.getInstance().setup();
  log.info("String_Node_Str");
  ChromeOptions options=new ChromeOptions();
  if (extensions != null && !extensions.isEmpty()) {
    for (    Map<String,String> extension : extensions) {
      InputStream is=getExtensionAsInputStream(extension.values().iterator().next());
      if (is != null) {
        try {
          File crx=File.createTempFile(extension.keySet().iterator().next(),"String_Node_Str");
          FileUtils.copyInputStreamToFile(is,crx);
          options.addExtensions(crx);
        }
 catch (        Throwable t) {
          log.error("String_Node_Str",extension,t.getClass(),t.getMessage());
        }
      }
    }
  }
  if (enableScreenCapture) {
    options.addArguments("String_Node_Str");
    String windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT;
    if (platform != null && (platform == Platform.WINDOWS || platform == Platform.XP || platform == Platform.VISTA || platform == Platform.WIN8 || platform == Platform.WIN8_1)) {
      windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT_WIN;
    }
    options.addArguments("String_Node_Str" + getProperty(TEST_SCREEN_SHARE_TITLE_PROPERTY,windowTitle));
  }
 else {
    options.addArguments("String_Node_Str");
  }
  options.addArguments("String_Node_Str");
  if (protocol == Protocol.FILE) {
    options.addArguments("String_Node_Str");
  }
  if (!usePhysicalCam) {
    options.addArguments("String_Node_Str");
    if (video != null && isLocal()) {
      options.addArguments("String_Node_Str" + video);
    }
  }
  capabilities.setCapability(ChromeOptions.CAPABILITY,options);
  capabilities.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
  createDriver(capabilities,options);
}

Fixed version (ground truth):
private void createChromeBrowser(DesiredCapabilities capabilities) throws MalformedURLException {
  log.info("String_Node_Str");
  ChromeDriverManager.getInstance().setup();
  log.info("String_Node_Str");
  ChromeOptions options=new ChromeOptions();
  if (extensions != null && !extensions.isEmpty()) {
    for (    Map<String,String> extension : extensions) {
      InputStream is=getExtensionAsInputStream(extension.values().iterator().next());
      if (is != null) {
        try {
          File crx=File.createTempFile(extension.keySet().iterator().next(),"String_Node_Str");
          FileUtils.copyInputStreamToFile(is,crx);
          options.addExtensions(crx);
        }
 catch (        Throwable t) {
          log.error("String_Node_Str",extension,t.getClass(),t.getMessage());
        }
      }
    }
  }
  if (enableScreenCapture) {
    options.addArguments("String_Node_Str");
    String windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT;
    if (platform != null && (platform == Platform.WINDOWS || platform == Platform.XP || platform == Platform.VISTA || platform == Platform.WIN8 || platform == Platform.WIN8_1)) {
      windowTitle=TEST_SCREEN_SHARE_TITLE_DEFAULT_WIN;
    }
    options.addArguments("String_Node_Str" + getProperty(TEST_SCREEN_SHARE_TITLE_PROPERTY,windowTitle));
  }
 else {
    options.addArguments("String_Node_Str");
  }
  options.addArguments("String_Node_Str");
  if (protocol == Protocol.FILE) {
    options.addArguments("String_Node_Str");
  }
  if (!usePhysicalCam) {
    options.addArguments("String_Node_Str");
    if (video != null && (isLocal() || isDocker())) {
      options.addArguments("String_Node_Str" + video);
    }
  }
  capabilities.setCapability(ChromeOptions.CAPABILITY,options);
  capabilities.setBrowserName(DesiredCapabilities.chrome().getBrowserName());
  createDriver(capabilities,options);
}