nus-yam/ex-repair huggingface dataset:
Program: 8368
Project: 8368
Buggy source:
/** 
 * Forcefully shuts the node down by calling   {@link NodeForceRestartServlet}
 */
public synchronized void forceNodeShutdown(){
  LOGGER.entering();
  CloseableHttpClient client=HttpClientBuilder.create().build();
  String url=String.format("String_Node_Str",machine,this.getRemoteHost().getPort(),NodeForceRestartServlet.class.getSimpleName());
  HttpPost post=new HttpPost(url);
  int responseStatusCode=HttpStatus.SC_NOT_FOUND;
  try {
    HttpResponse response=client.execute(post);
    responseStatusCode=response.getStatusLine().getStatusCode();
  }
 catch (  IOException e) {
    LOGGER.log(Level.SEVERE,e.getMessage(),e);
  }
 finally {
    if (responseStatusCode == HttpStatus.SC_OK) {
      proxyLogger.info("String_Node_Str" + machine + "String_Node_Str");
    }
 else {
      proxyLogger.info("String_Node_Str" + machine + "String_Node_Str"+ responseStatusCode);
    }
    try {
      client.close();
    }
 catch (    IOException e) {
      LOGGER.log(Level.SEVERE,e.getMessage(),e);
    }
  }
  stopNodeRecycleThread();
  if (responseStatusCode == HttpStatus.SC_OK) {
    getRegistry().removeIfPresent(this);
  }
  LOGGER.exiting();
}

Fixed version (ground truth):
/** 
 * Forcefully shuts the node down by calling   {@link NodeForceRestartServlet}
 */
public synchronized void forceNodeShutdown(){
  LOGGER.entering();
  for (  TestSlot slot : getTestSlots()) {
    getRegistry().forceRelease(slot,SessionTerminationReason.TIMEOUT);
  }
  CloseableHttpClient client=HttpClientBuilder.create().build();
  String url=String.format("String_Node_Str",machine,this.getRemoteHost().getPort(),NodeForceRestartServlet.class.getSimpleName());
  HttpPost post=new HttpPost(url);
  int responseStatusCode=HttpStatus.SC_NOT_FOUND;
  try {
    HttpResponse response=client.execute(post);
    responseStatusCode=response.getStatusLine().getStatusCode();
  }
 catch (  IOException e) {
    LOGGER.log(Level.SEVERE,e.getMessage(),e);
  }
 finally {
    if (responseStatusCode == HttpStatus.SC_OK) {
      proxyLogger.info("String_Node_Str" + machine + "String_Node_Str");
    }
 else {
      proxyLogger.info("String_Node_Str" + machine + "String_Node_Str"+ responseStatusCode);
    }
    try {
      client.close();
    }
 catch (    IOException e) {
      LOGGER.log(Level.SEVERE,e.getMessage(),e);
    }
  }
  stopNodeRecycleThread();
  if (responseStatusCode == HttpStatus.SC_OK) {
    getRegistry().removeIfPresent(this);
  }
  LOGGER.exiting();
}
Program: 8369
Project: 8369
Buggy source:
@Override public void afterSession(TestSession session){
  LOGGER.entering();
synchronized (this) {
    totalSessionsCompleted++;
    if (totalSessionsCompleted <= maxSessionsAllowed) {
      proxyLogger.fine("String_Node_Str" + totalSessionsCompleted + "String_Node_Str"+ session.toString()+ "String_Node_Str");
    }
    proxyLogger.fine("String_Node_Str" + getTotalUsed() + "String_Node_Str"+ getId());
  }
  LOGGER.exiting();
}

Fixed version (ground truth):
@Override public void afterSession(TestSession session){
  LOGGER.entering();
  totalSessionsCompleted++;
  proxyLogger.fine("String_Node_Str" + totalSessionsCompleted + "String_Node_Str"+ session.toString()+ "String_Node_Str");
  proxyLogger.fine("String_Node_Str" + getTotalUsed() + "String_Node_Str"+ getId());
  LOGGER.exiting();
}
Program: 8370
Project: 8370
Buggy source:
private static void loadValuesFromEnvironment(){
  final String PREFIX="String_Node_Str";
  for (  ConfigProperty configProps : ConfigProperty.values()) {
    String envValue=System.getenv(PREFIX + configProps.name());
    if (StringUtils.isNotBlank(envValue)) {
      config.setProperty(configProps.getName(),envValue);
    }
    String sysValue=System.getProperty(PREFIX + configProps.name());
    if (StringUtils.isNotBlank(sysValue)) {
      config.setProperty(configProps.getName(),sysValue);
    }
  }
}

Fixed version (ground truth):
private static void loadValuesFromEnvironment(){
  final String PREFIX="String_Node_Str";
  for (  ConfigProperty configProps : ConfigProperty.values()) {
    String envValue=System.getenv(PREFIX + configProps.name());
    if (StringUtils.isNotBlank(envValue)) {
      xmlConfig.setProperty(configProps.getName(),envValue);
    }
    String sysValue=System.getProperty(PREFIX + configProps.name());
    if (StringUtils.isNotBlank(sysValue)) {
      xmlConfig.setProperty(configProps.getName(),sysValue);
    }
  }
}
Program: 8371
Project: 8371
Buggy source:
private static void loadInitialValues(){
  for (  ConfigProperty configProps : ConfigProperty.values()) {
    config.setProperty(configProps.getName(),configProps.getDefaultValue());
  }
}

Fixed version (ground truth):
private static void loadInitialValues(){
  for (  ConfigProperty configProps : ConfigProperty.values()) {
    xmlConfig.setProperty(configProps.getName(),configProps.getDefaultValue());
  }
}
Program: 8372
Project: 8372
Buggy source:
/** 
 * Initializes the configuration, reloading all data while adding the supplied <code>initialValues</code> to the configuration.
 * @param initialValues The initial set of values used to configure SeLion
 */
public synchronized static void initConfig(Map<ConfigProperty,String> initialValues){
  SeLionLogger.getLogger().entering(initialValues);
  boolean permitClogging=Boolean.valueOf(System.getProperty("String_Node_Str","String_Node_Str")).booleanValue();
  if (!permitClogging) {
    LogFactory factory=LogFactory.getFactory();
    factory.setAttribute("String_Node_Str","String_Node_Str");
  }
  if (config == null) {
    config=new XMLConfiguration();
    config.setThrowExceptionOnMissing(false);
    config.setAutoSave(false);
    loadInitialValues();
  }
  loadValuesFromUser(initialValues);
  loadValuesFromEnvironment();
  boolean runLocally=config.getBoolean(ConfigProperty.SELENIUM_RUN_LOCALLY.getName());
  if (runLocally) {
    config.setProperty(ConfigProperty.SELENIUM_HOST.getName(),"String_Node_Str");
  }
  SeLionLogger.getLogger().exiting();
}

Fixed version (ground truth):
/** 
 * Initializes the configuration, reloading all data while adding the supplied <code>initialValues</code> to the configuration.
 * @param initialValues The initial set of values used to configure SeLion
 */
public synchronized static void initConfig(Map<ConfigProperty,String> initialValues){
  SeLionLogger.getLogger().entering(initialValues);
  boolean permitClogging=Boolean.valueOf(System.getProperty("String_Node_Str","String_Node_Str")).booleanValue();
  if (!permitClogging) {
    LogFactory factory=LogFactory.getFactory();
    factory.setAttribute("String_Node_Str","String_Node_Str");
  }
  if (xmlConfig == null) {
    xmlConfig=new XMLConfiguration();
    xmlConfig.setThrowExceptionOnMissing(false);
    xmlConfig.setAutoSave(false);
    loadInitialValues();
  }
  loadValuesFromUser(initialValues);
  loadValuesFromEnvironment();
  boolean runLocally=xmlConfig.getBoolean(ConfigProperty.SELENIUM_RUN_LOCALLY.getName());
  if (runLocally) {
    xmlConfig.setProperty(ConfigProperty.SELENIUM_HOST.getName(),"String_Node_Str");
  }
  SeLionLogger.getLogger().exiting();
}
Program: 8373
Project: 8373
Buggy source:
static XMLConfiguration getConfig(){
  if (config != null) {
    return config;
  }
  initConfig();
  return config;
}

Fixed version (ground truth):
static XMLConfiguration getConfig(){
  if (xmlConfig != null) {
    return xmlConfig;
  }
  initConfig();
  return xmlConfig;
}
Program: 8374
Project: 8374
Buggy source:
private static void loadValuesFromUser(Map<ConfigProperty,String> initialValues){
  if (!initialValues.isEmpty()) {
    for (    Entry<ConfigProperty,String> eachConfig : initialValues.entrySet()) {
      config.setProperty(eachConfig.getKey().getName(),eachConfig.getValue());
    }
  }
}

Fixed version (ground truth):
private static void loadValuesFromUser(Map<ConfigProperty,String> initialValues){
  if (!initialValues.isEmpty()) {
    for (    Entry<ConfigProperty,String> eachConfig : initialValues.entrySet()) {
      xmlConfig.setProperty(eachConfig.getKey().getName(),eachConfig.getValue());
    }
  }
}
Program: 8375
Project: 8375
Buggy source:
/** 
 * Check if   {@link ITestNGListener} is to be skipped
 * @param listener the  {@link ITestNGListener}
 * @return true if method is to be skipped.
 */
public static boolean isCurrentMethodSkipped(ITestNGListener listener){
  return (executeCurrentMethod(listener) == false);
}

Fixed version (ground truth):
/** 
 * Check if   {@link ITestNGListener} is to be skipped
 * @param listener the  {@link ITestNGListener}
 * @return true if method is to be skipped.
 */
public static boolean isCurrentMethodSkipped(ITestNGListener listener){
  return !executeCurrentMethod(listener);
}
Program: 8376
Project: 8376
Buggy source:
/** 
 * Prints the configuration values associated with the LocalConfig. Used for logging/debug.
 * @param testName - The &lt;test&gt; to which this configuration pertains to.
 */
public synchronized void printConfigValues(String testName){
  if (localConfig.isEmpty()) {
    return;
  }
  StringBuilder builder=new StringBuilder(String.format("String_Node_Str",testName));
  for (  ConfigProperty configProperty : ConfigProperty.values()) {
    String value=Config.getConfig().getString(configProperty.getName());
    String msg=null;
    if (localConfig.containsKey(configProperty.getName())) {
      value=localConfig.getString(configProperty.getName());
    }
    if (value != null && !value.trim().isEmpty()) {
      msg=String.format("String_Node_Str",configProperty,value);
      builder.append(msg);
    }
  }
  builder.append("String_Node_Str");
  SeLionLogger.getLogger().info(builder.toString());
}

Fixed version (ground truth):
/** 
 * Prints the configuration values associated with the LocalConfig. Used for logging/debug.
 * @param testName - The &lt;test&gt; to which this configuration pertains to.
 */
public synchronized void printConfigValues(String testName){
  if (baseConfig.isEmpty()) {
    return;
  }
  StringBuilder builder=new StringBuilder(String.format("String_Node_Str",testName));
  for (  ConfigProperty configProperty : ConfigProperty.values()) {
    String value=Config.getConfig().getString(configProperty.getName());
    String msg=null;
    if (baseConfig.containsKey(configProperty.getName())) {
      value=baseConfig.getString(configProperty.getName());
    }
    if (value != null && !value.trim().isEmpty()) {
      msg=String.format("String_Node_Str",configProperty,value);
      builder.append(msg);
    }
  }
  builder.append("String_Node_Str");
  SeLionLogger.getLogger().info(builder.toString());
}
Program: 8377
Project: 8377
Buggy source:
/** 
 * Returns only the local configuration values associated with the Local Config. Used for logging/reporting.
 * @return The local configuration property name/values as map.
 */
public synchronized Map<String,String> getLocalConfigValues(){
  Map<String,String> result=new HashMap<String,String>();
  Iterator<String> iter=localConfig.getKeys();
  while (iter.hasNext()) {
    String key=iter.next();
    result.put(key,localConfig.getString(key));
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Returns only the local configuration values associated with the Local Config. Used for logging/reporting.
 * @return The local configuration property name/values as map.
 */
public synchronized Map<String,String> getLocalConfigValues(){
  Map<String,String> result=new HashMap<String,String>();
  Iterator<String> iter=baseConfig.getKeys();
  while (iter.hasNext()) {
    String key=iter.next();
    result.put(key,baseConfig.getString(key));
  }
  return result;
}
Program: 8378
Project: 8378
Buggy source:
/** 
 * Constructs a new instance of this class from the specified initial values.
 * @param initialValues Map The initial MAP of ConfigProperty values used to create the local configuration.
 */
public LocalConfig(Map<ConfigProperty,String> initialValues){
  this();
  if (initialValues != null && !initialValues.isEmpty()) {
    for (    Map.Entry<ConfigProperty,String> entry : initialValues.entrySet()) {
      if (entry.getKey().isGlobalScopeOnly()) {
        String message=String.format("String_Node_Str",entry.getKey());
        throw new IllegalArgumentException(message);
      }
      localConfig.setProperty(entry.getKey().getName(),entry.getValue());
    }
  }
}

Fixed version (ground truth):
/** 
 * Constructs a new instance of this class from the specified initial values.
 * @param initialValues Map The initial MAP of ConfigProperty values used to create the local configuration.
 */
public LocalConfig(Map<ConfigProperty,String> initialValues){
  this();
  if (initialValues != null && !initialValues.isEmpty()) {
    for (    Map.Entry<ConfigProperty,String> entry : initialValues.entrySet()) {
      if (entry.getKey().isGlobalScopeOnly()) {
        String message=String.format("String_Node_Str",entry.getKey());
        throw new IllegalArgumentException(message);
      }
      baseConfig.setProperty(entry.getKey().getName(),entry.getValue());
    }
  }
}
Program: 8379
Project: 8379
Buggy source:
/** 
 * Answer if local configuration contains a value for specified property.
 * @return True if local configuration has value for configProperty.
 */
public synchronized boolean isLocalValuePresent(ConfigProperty configProperty){
  checkArgument(configProperty != null,"String_Node_Str");
  String value=localConfig.getString(configProperty.getName());
  return (value != null ? true : false);
}

Fixed version (ground truth):
/** 
 * Answer if local configuration contains a value for specified property.
 * @return True if local configuration has value for configProperty.
 */
public synchronized boolean isLocalValuePresent(ConfigProperty configProperty){
  checkArgument(configProperty != null,"String_Node_Str");
  String value=baseConfig.getString(configProperty.getName());
  return (value != null ? true : false);
}
Program: 8380
Project: 8380
Buggy source:
/** 
 * Get the configuration property value for configProperty.
 * @param configProperty The configuration property value to get
 * @return The configuration property value or null if property does not exit.
 */
public synchronized String getConfigProperty(Config.ConfigProperty configProperty){
  SeLionLogger.getLogger().entering(configProperty);
  checkArgument(configProperty != null,"String_Node_Str");
  String propValue=null;
  if (localConfig.containsKey(configProperty.getName())) {
    propValue=localConfig.getString(configProperty.getName());
  }
  if (StringUtils.isBlank(propValue)) {
    propValue=Config.getConfigProperty(configProperty);
  }
  SeLionLogger.getLogger().exiting(propValue);
  return propValue;
}

Fixed version (ground truth):
/** 
 * Get the configuration property value for configProperty.
 * @param configProperty The configuration property value to get
 * @return The configuration property value or null if property does not exit.
 */
public synchronized String getConfigProperty(Config.ConfigProperty configProperty){
  SeLionLogger.getLogger().entering(configProperty);
  checkArgument(configProperty != null,"String_Node_Str");
  String propValue=null;
  if (baseConfig.containsKey(configProperty.getName())) {
    propValue=baseConfig.getString(configProperty.getName());
  }
  if (StringUtils.isBlank(propValue)) {
    propValue=Config.getConfigProperty(configProperty);
  }
  SeLionLogger.getLogger().exiting(propValue);
  return propValue;
}
Program: 8381
Project: 8381
Buggy source:
/** 
 * Sets the SeLion configuration property value.
 * @param configProperty The configuration property to set.
 * @param configPropertyValue The configuration property value to set.
 */
public synchronized void setConfigProperty(Config.ConfigProperty configProperty,String configPropertyValue){
  checkArgument(configProperty != null,"String_Node_Str");
  checkArgument(checkNotInGlobalScope(configProperty),String.format("String_Node_Str",configProperty));
  checkArgument(configPropertyValue != null,"String_Node_Str");
  localConfig.setProperty(configProperty.getName(),configPropertyValue);
}

Fixed version (ground truth):
/** 
 * Sets the SeLion configuration property value.
 * @param configProperty The configuration property to set.
 * @param configPropertyValue The configuration property value to set.
 */
public synchronized void setConfigProperty(Config.ConfigProperty configProperty,String configPropertyValue){
  checkArgument(configProperty != null,"String_Node_Str");
  checkArgument(checkNotInGlobalScope(configProperty),String.format("String_Node_Str",configProperty));
  checkArgument(configPropertyValue != null,"String_Node_Str");
  baseConfig.setProperty(configProperty.getName(),configPropertyValue);
}
Program: 8382
Project: 8382
Buggy source:
private boolean checkNotInGlobalScope(ConfigProperty configProperty){
  return (configProperty.isGlobalScopeOnly() == false);
}

Fixed version (ground truth):
private boolean checkNotInGlobalScope(ConfigProperty configProperty){
  return !configProperty.isGlobalScopeOnly();
}
Program: 8383
Project: 8383
Buggy source:
/** 
 * @return whether the session is started <code>true</code> or <code>false</code>
 */
public boolean isStarted(){
  return isStarted;
}

Fixed version (ground truth):
/** 
 * @return whether the session is started <code>true</code> or <code>false</code>
 */
public boolean isStarted(){
  return isSessionStarted;
}
Program: 8384
Project: 8384
Buggy source:
protected final void initTestSession(InvokedMethodInformation method){
  logger.entering(method);
  isSessionShared=isSessionShared(method);
  this.dependsOnMethods=method.getMethodsDependedUpon();
  this.className=method.getCurrentClassName();
  this.methodName=method.getCurrentMethodName();
  this.parameters=getParamsInfo(method);
  this.xmlTestName=method.getCurrentTestName();
  logger.exiting();
}

Fixed version (ground truth):
protected final void initTestSession(InvokedMethodInformation method){
  logger.entering(method);
  isSharedSession=isSessionShared(method);
  this.dependsOnMethods=method.getMethodsDependedUpon();
  this.className=method.getCurrentClassName();
  this.methodName=method.getCurrentMethodName();
  this.parameters=getParamsInfo(method);
  this.xmlTestName=method.getCurrentTestName();
  logger.exiting();
}
Program: 8385
Project: 8385
Buggy source:
/** 
 * Returns a test name for the current method. This method returns the the Class name, Method name, and Method parameters if any, for a test case running on a Non-Session-Sharing context. For a test case running under Session-Sharing context this method returns the Class name, Method name, and Method parameters if any.
 * @return - test name.
 */
public final String getTestName(){
  StringBuilder stringBuilder=new StringBuilder();
  if (isSessionShared) {
    stringBuilder.append(getDeclaringClassName());
  }
 else {
    stringBuilder.append(getDeclaringClassName()).append(':').append(getMethodName()).append('(').append(')');
  }
  if (parameters != null) {
    stringBuilder.append('[').append(parameters).append(']');
  }
  return stringBuilder.toString();
}

Fixed version (ground truth):
/** 
 * Returns a test name for the current method. This method returns the the Class name, Method name, and Method parameters if any, for a test case running on a Non-Session-Sharing context. For a test case running under Session-Sharing context this method returns the Class name, Method name, and Method parameters if any.
 * @return - test name.
 */
public final String getTestName(){
  StringBuilder stringBuilder=new StringBuilder();
  if (isSharedSession) {
    stringBuilder.append(getDeclaringClassName());
  }
 else {
    stringBuilder.append(getDeclaringClassName()).append(':').append(getMethodName()).append('(').append(')');
  }
  if (parameters != null) {
    stringBuilder.append('[').append(parameters).append(']');
  }
  return stringBuilder.toString();
}
Program: 8386
Project: 8386
Buggy source:
/** 
 * Set the session to started.
 * @param started <code>true</code> or <code>false</code>
 */
protected final void setStarted(boolean started){
  this.isStarted=started;
}

Fixed version (ground truth):
/** 
 * Set the session to started.
 * @param started <code>true</code> or <code>false</code>
 */
protected final void setStarted(boolean started){
  this.isSessionStarted=started;
}
Program: 8387
Project: 8387
Buggy source:
/** 
 * A method that helps in closing off the current session.
 */
public void closeSession(){
  logger.entering();
  if (isStarted() && (Grid.getTestSession() != null)) {
    new SauceLabsHelper().embedSauceLabsJobUrlToTestReport();
    try {
      Grid.driver().quit();
    }
 catch (    Exception e) {
      logger.log(Level.SEVERE,"String_Node_Str" + e.getMessage(),e);
    }
  }
  Grid.getThreadLocalWebDriver().set(null);
  Grid.getThreadLocalTestSession().set(null);
  Grid.getThreadLocalException().set(null);
  this.isStarted=false;
  logger.exiting();
}

Fixed version (ground truth):
/** 
 * A method that helps in closing off the current session.
 */
public void closeSession(){
  logger.entering();
  if (isStarted() && (Grid.getTestSession() != null)) {
    new SauceLabsHelper().embedSauceLabsJobUrlToTestReport();
    try {
      Grid.driver().quit();
    }
 catch (    Exception e) {
      logger.log(Level.SEVERE,"String_Node_Str" + e.getMessage(),e);
    }
  }
  Grid.getThreadLocalWebDriver().set(null);
  Grid.getThreadLocalTestSession().set(null);
  Grid.getThreadLocalException().set(null);
  this.isSessionStarted=false;
  logger.exiting();
}
Program: 8388
Project: 8388
Buggy source:
/** 
 * This method helps shut down the already spawned hub for local runs
 */
final static synchronized void shutDownHub(){
  LOGGER.entering();
  if (!isRunLocally()) {
    LOGGER.exiting();
    return;
  }
  Collections.reverse(toBoot);
  for (  LocalServerComponent eachItem : toBoot) {
    eachItem.shutdown();
  }
  clearToBootList();
  LOGGER.exiting();
}

Fixed version (ground truth):
/** 
 * This method helps shut down the already spawned hub for local runs
 */
static synchronized void shutDownHub(){
  LOGGER.entering();
  if (!isRunLocally()) {
    LOGGER.exiting();
    return;
  }
  Collections.reverse(toBoot);
  for (  LocalServerComponent eachItem : toBoot) {
    eachItem.shutdown();
  }
  clearToBootList();
  LOGGER.exiting();
}
Program: 8389
Project: 8389
Buggy source:
synchronized final LocalHub getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalHub();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(Integer.parseInt(Config.getConfigProperty(ConfigProperty.SELENIUM_PORT)));
    LauncherOptions launcherOptions=new LauncherOptionsImpl().setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    instance.setLauncher(new ThreadedLauncher(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",instance.getHost()},launcherOptions));
  }
  return instance;
}

Fixed version (ground truth):
synchronized LocalHub getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalHub();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(Integer.parseInt(Config.getConfigProperty(ConfigProperty.SELENIUM_PORT)));
    LauncherOptions launcherOptions=new LauncherOptionsImpl().setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    instance.setLauncher(new ThreadedLauncher(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",instance.getHost()},launcherOptions));
  }
  return instance;
}
Program: 8390
Project: 8390
Buggy source:
static synchronized final LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalHub().getLocalServerComponent();
  }
  return instance;
}

Fixed version (ground truth):
static synchronized LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalHub().getLocalServerComponent();
  }
  return instance;
}
Program: 8391
Project: 8391
Buggy source:
synchronized final LocalIOSNode getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalIOSNode();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(PortProber.findFreePort());
    String hubPort=Config.getConfigProperty(ConfigProperty.SELENIUM_PORT);
    String hub=String.format("String_Node_Str",instance.getHost(),hubPort);
    String[] folder=new String[]{"String_Node_Str","String_Node_Str"};
    String autFolder=Config.getConfigProperty(ConfigProperty.MOBILE_APP_FOLDER);
    if (StringUtils.isNotEmpty(autFolder)) {
      folder=new String[]{"String_Node_Str",autFolder};
    }
    ProcessLauncherOptions processOptions=new ProcessLauncherOptionsImpl().setContinuouslyRestart(false).setIncludeJarsInPresentWorkingDir(false).setIncludeParentProcessClassPath(false).setIncludeJavaSystemProperties(false).setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    instance.setLauncher(new IOSDriverJarSpawner(new String[]{"String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",instance.getHost(),"String_Node_Str",hub,folder[0],folder[1],"String_Node_Str",Config.getConfigProperty(ConfigProperty.MOBILE_DRIVER_SESSION_TIMEOUT)},processOptions));
  }
  return instance;
}

Fixed version (ground truth):
synchronized LocalIOSNode getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalIOSNode();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(PortProber.findFreePort());
    String hubPort=Config.getConfigProperty(ConfigProperty.SELENIUM_PORT);
    String hub=String.format("String_Node_Str",instance.getHost(),hubPort);
    String[] folder=new String[]{"String_Node_Str","String_Node_Str"};
    String autFolder=Config.getConfigProperty(ConfigProperty.MOBILE_APP_FOLDER);
    if (StringUtils.isNotEmpty(autFolder)) {
      folder=new String[]{"String_Node_Str",autFolder};
    }
    ProcessLauncherOptions processOptions=new ProcessLauncherOptionsImpl().setContinuouslyRestart(false).setIncludeJarsInPresentWorkingDir(false).setIncludeParentProcessClassPath(false).setIncludeJavaSystemProperties(false).setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    instance.setLauncher(new IOSDriverJarSpawner(new String[]{"String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",instance.getHost(),"String_Node_Str",hub,folder[0],folder[1],"String_Node_Str",Config.getConfigProperty(ConfigProperty.MOBILE_DRIVER_SESSION_TIMEOUT)},processOptions));
  }
  return instance;
}
Program: 8392
Project: 8392
Buggy source:
static synchronized final LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalIOSNode().getLocalServerComponent();
  }
  return instance;
}

Fixed version (ground truth):
static synchronized LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalIOSNode().getLocalServerComponent();
  }
  return instance;
}
Program: 8393
Project: 8393
Buggy source:
synchronized final LocalNode getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalNode();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(PortProber.findFreePort());
    String hubPort=Config.getConfigProperty(ConfigProperty.SELENIUM_PORT);
    String hub=String.format("String_Node_Str",instance.getHost(),hubPort);
    LauncherOptions launcherOptions=new LauncherOptionsImpl().setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    List<String> downloadList=determineListOfDownloadsToProcess();
    instance.setLauncher(new ThreadedLauncher(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",DefaultRemoteProxy.class.getName(),"String_Node_Str",instance.getHost(),"String_Node_Str",hub},launcherOptions,downloadList));
  }
  return instance;
}

Fixed version (ground truth):
synchronized LocalNode getLocalServerComponent(){
  if (instance == null) {
    instance=new LocalNode();
    instance.setHost(new NetworkUtils().getIpOfLoopBackIp4());
    instance.setPort(PortProber.findFreePort());
    String hubPort=Config.getConfigProperty(ConfigProperty.SELENIUM_PORT);
    String hub=String.format("String_Node_Str",instance.getHost(),hubPort);
    LauncherOptions launcherOptions=new LauncherOptionsImpl().setFileDownloadCheckTimeStampOnInvocation(false).setFileDownloadCleanupOnInvocation(false);
    List<String> downloadList=determineListOfDownloadsToProcess();
    instance.setLauncher(new ThreadedLauncher(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str",String.valueOf(instance.getPort()),"String_Node_Str",DefaultRemoteProxy.class.getName(),"String_Node_Str",instance.getHost(),"String_Node_Str",hub},launcherOptions,downloadList));
  }
  return instance;
}
Program: 8394
Project: 8394
Buggy source:
static synchronized final LocalServerComponent getSingleton(){
  if (instance == null) {
    return new LocalNode().getLocalServerComponent();
  }
  return instance;
}

Fixed version (ground truth):
static synchronized LocalServerComponent getSingleton(){
  if (instance == null) {
    return new LocalNode().getLocalServerComponent();
  }
  return instance;
}
Program: 8395
Project: 8395
Buggy source:
private List<String> determineListOfDownloadsToProcess(){
  List<String> list=new ArrayList<>();
  if (!Config.getBoolConfigProperty(ConfigProperty.DOWNLOAD_DEPENDENCIES)) {
    return list;
  }
  if (SystemUtils.IS_OS_WINDOWS) {
    if (!checkForPresenceOf(ConfigProperty.SELENIUM_IEDRIVER_PATH,SeLionConstants.WEBDRIVER_IE_DRIVER_PROPERTY,SeLionConstants.IE_DRIVER)) {
      Config.setConfigProperty(ConfigProperty.SELENIUM_IEDRIVER_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.IE_DRIVER);
      list.add("String_Node_Str");
    }
  }
  if (!checkForPresenceOf(ConfigProperty.SELENIUM_CHROMEDRIVER_PATH,SeLionConstants.WEBDRIVER_CHROME_DRIVER_PROPERTY,SeLionConstants.CHROME_DRIVER)) {
    Config.setConfigProperty(ConfigProperty.SELENIUM_CHROMEDRIVER_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.CHROME_DRIVER);
    list.add("String_Node_Str");
  }
  if (!checkForPresenceOf(ConfigProperty.SELENIUM_PHANTOMJS_PATH,SeLionConstants.WEBDRIVER_PHANTOMJS_DRIVER_PROPERTY,SeLionConstants.PHANTOMJS_DRIVER)) {
    Config.setConfigProperty(ConfigProperty.SELENIUM_PHANTOMJS_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.PHANTOMJS_DRIVER);
    list.add("String_Node_Str");
  }
  return list;
}

Fixed version (ground truth):
private List<String> determineListOfDownloadsToProcess(){
  List<String> list=new ArrayList<>();
  if (!Config.getBoolConfigProperty(ConfigProperty.DOWNLOAD_DEPENDENCIES)) {
    return list;
  }
  if (SystemUtils.IS_OS_WINDOWS && !checkForPresenceOf(ConfigProperty.SELENIUM_IEDRIVER_PATH,SeLionConstants.WEBDRIVER_IE_DRIVER_PROPERTY,SeLionConstants.IE_DRIVER)) {
    Config.setConfigProperty(ConfigProperty.SELENIUM_IEDRIVER_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.IE_DRIVER);
    list.add("String_Node_Str");
  }
  if (!checkForPresenceOf(ConfigProperty.SELENIUM_CHROMEDRIVER_PATH,SeLionConstants.WEBDRIVER_CHROME_DRIVER_PROPERTY,SeLionConstants.CHROME_DRIVER)) {
    Config.setConfigProperty(ConfigProperty.SELENIUM_CHROMEDRIVER_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.CHROME_DRIVER);
    list.add("String_Node_Str");
  }
  if (!checkForPresenceOf(ConfigProperty.SELENIUM_PHANTOMJS_PATH,SeLionConstants.WEBDRIVER_PHANTOMJS_DRIVER_PROPERTY,SeLionConstants.PHANTOMJS_DRIVER)) {
    Config.setConfigProperty(ConfigProperty.SELENIUM_PHANTOMJS_PATH,SeLionConstants.SELION_HOME_DIR + SeLionConstants.PHANTOMJS_DRIVER);
    list.add("String_Node_Str");
  }
  return list;
}
Program: 8397
Project: 8397
Buggy source:
static synchronized final LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalSelendroidNode().getLocalServerComponent();
  }
  return instance;
}

Fixed version (ground truth):
static synchronized LocalServerComponent getSingleton(){
  if (instance == null) {
    instance=new LocalSelendroidNode().getLocalServerComponent();
  }
  return instance;
}
Program: 8399
Project: 8399
Buggy source:
private static boolean isServiceLoaderDisabled(){
  return serviceLoaderEnabled == false;
}

Fixed version (ground truth):
private static boolean isServiceLoaderDisabled(){
  return !serviceLoaderEnabled;
}
Program: 8400
Project: 8400
Buggy source:
/** 
 * Return true when one of the following conditions is met <br> <br> 1. ConfigProperty for driverBinary is specified and not blank or null. <br> 2. System Property which Selenium uses to find driverBinary is present. <br> 3. driverBinary exists in the current working directory OR the PATH <br>
 */
private boolean checkForPresenceOf(ConfigProperty property,String systemProperty,String driverBinary){
  if (StringUtils.isBlank(Config.getConfigProperty(property)) && System.getProperty(systemProperty) == null) {
    @SuppressWarnings("String_Node_Str") String location=CommandLine.find(driverBinary.replace("String_Node_Str","String_Node_Str"));
    if (location != null) {
      return true;
    }
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Return true when one of the following conditions is met <br> <br> 1. ConfigProperty for driverBinary is specified and not blank or null. <br> 2. System Property which Selenium uses to find driverBinary is present. <br> 3. driverBinary exists in the current working directory OR the PATH <br>
 */
private boolean checkForPresenceOf(ConfigProperty property,String systemProperty,String driverBinary){
  if (StringUtils.isBlank(Config.getConfigProperty(property)) && System.getProperty(systemProperty) == null) {
    @SuppressWarnings("String_Node_Str") String location=CommandLine.find(driverBinary.replace("String_Node_Str","String_Node_Str"));
    return (location != null);
  }
  return true;
}
Program: 8401
Project: 8401
Buggy source:
private boolean isDeviceDefined(){
  if (device.contains("String_Node_Str") || device.contains("String_Node_Str") || device.contains("String_Node_Str")) {
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
private boolean isDeviceDefined(){
  return (device.contains("String_Node_Str") || device.contains("String_Node_Str") || device.contains("String_Node_Str"));
}
Program: 8402
Project: 8402
Buggy source:
private boolean isValidBeforeCondition(IInvokedMethod method){
  if (method.isTestMethod()) {
    return true;
  }
  if (method.getTestMethod().isBeforeClassConfiguration()) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
private boolean isValidBeforeCondition(IInvokedMethod method){
  if (method.isTestMethod()) {
    return true;
  }
  return method.getTestMethod().isBeforeClassConfiguration();
}
Program: 8403
Project: 8403
Buggy source:
private boolean isHighPriority(IInvokedMethod method){
  int high=method.getTestMethod().getPriority();
  for (  ITestNGMethod test : method.getTestMethod().getTestClass().getTestMethods()) {
    if (test.getPriority() > high) {
      return false;
    }
  }
  Test t=method.getTestMethod().getConstructorOrMethod().getMethod().getAnnotation(Test.class);
  if (!(t.dataProvider().isEmpty())) {
    int currentInvocationCount=method.getTestMethod().getCurrentInvocationCount();
    int parameterInvocationCount=method.getTestMethod().getParameterInvocationCount();
    if (currentInvocationCount == parameterInvocationCount) {
      return true;
    }
    return false;
  }
  return true;
}

Fixed version (ground truth):
private boolean isHighPriority(IInvokedMethod method){
  int high=method.getTestMethod().getPriority();
  for (  ITestNGMethod test : method.getTestMethod().getTestClass().getTestMethods()) {
    if (test.getPriority() > high) {
      return false;
    }
  }
  Test t=method.getTestMethod().getConstructorOrMethod().getMethod().getAnnotation(Test.class);
  if (!(t.dataProvider().isEmpty())) {
    int currentInvocationCount=method.getTestMethod().getCurrentInvocationCount();
    int parameterInvocationCount=method.getTestMethod().getParameterInvocationCount();
    return (currentInvocationCount == parameterInvocationCount);
  }
  return true;
}
Program: 8404
Project: 8404
Buggy source:
WebTestSession(){
}

Fixed version (ground truth):
WebTestSession(){
  super();
}
Program: 8405
Project: 8405
Buggy source:
@Override public DesiredCapabilities getCapabilities(DesiredCapabilities capabilities){
  MobileTestSession mobileSession=Grid.getMobileTestSession();
  capabilities=SelendroidCapabilities.android();
  if ((new File(mobileSession.getAppLocation()).exists()) && ((new File(mobileSession.getAppLocation() + File.separator + mobileSession.getAppName())).exists())) {
    capabilities.setBrowserName(SELENDROID);
  }
 else {
    capabilities.setBrowserName(ANDROID);
  }
  capabilities.setCapability(MOBILE_NODE_TYPE,mobileSession.getMobileNodeType().getAsString());
  capabilities.setCapability(SelendroidCapabilities.AUT,mobileSession.getAppName());
  capabilities.setCapability(SelendroidCapabilities.LOCALE,mobileSession.getAppLocale());
  if (StringUtils.isNotBlank(mobileSession.getDeviceType())) {
    capabilities.setCapability(SelendroidCapabilities.MODEL,mobileSession.getDeviceType());
  }
  if (StringUtils.isNotBlank(mobileSession.getPlatformVersion())) {
    capabilities.setCapability(SelendroidCapabilities.PLATFORM_VERSION,mobileSession.getPlatformVersion());
  }
  if (StringUtils.isNotBlank(mobileSession.getdeviceSerial())) {
    capabilities.setCapability(SelendroidCapabilities.SERIAL,mobileSession.getdeviceSerial());
  }
  return capabilities;
}

Fixed version (ground truth):
@Override public DesiredCapabilities getCapabilities(DesiredCapabilities capabilities){
  MobileTestSession mobileSession=Grid.getMobileTestSession();
  DesiredCapabilities tempCapabilities=SelendroidCapabilities.android();
  if ((new File(mobileSession.getAppLocation()).exists()) && ((new File(mobileSession.getAppLocation() + File.separator + mobileSession.getAppName())).exists())) {
    tempCapabilities.setBrowserName(SELENDROID);
  }
 else {
    tempCapabilities.setBrowserName(ANDROID);
  }
  tempCapabilities.setCapability(MOBILE_NODE_TYPE,mobileSession.getMobileNodeType().getAsString());
  tempCapabilities.setCapability(SelendroidCapabilities.AUT,mobileSession.getAppName());
  tempCapabilities.setCapability(SelendroidCapabilities.LOCALE,mobileSession.getAppLocale());
  if (StringUtils.isNotBlank(mobileSession.getDeviceType())) {
    tempCapabilities.setCapability(SelendroidCapabilities.MODEL,mobileSession.getDeviceType());
  }
  if (StringUtils.isNotBlank(mobileSession.getPlatformVersion())) {
    tempCapabilities.setCapability(SelendroidCapabilities.PLATFORM_VERSION,mobileSession.getPlatformVersion());
  }
  if (StringUtils.isNotBlank(mobileSession.getdeviceSerial())) {
    tempCapabilities.setCapability(SelendroidCapabilities.SERIAL,mobileSession.getdeviceSerial());
  }
  return tempCapabilities;
}
Program: 8406
Project: 8406
Buggy source:
int fillData(HSSFSheet sheet,int rowNum,HSSFCellStyle style){
  logger.entering(new Object[]{sheet,rowNum,style});
  HSSFRow row;
  style=Styles.getStyleBorderThinLeftTop();
  for (  List<String> dataString : this.getLstEntities()) {
    row=sheet.createRow(rowNum);
    int iColNum=getStartColNum();
    for (int i=0; i < this.getColTitles().size(); i++) {
      row.createCell(iColNum);
      row.getCell(iColNum).setCellStyle(style);
      if (this.getColTitles().get(i).contains("String_Node_Str")) {
        Long timeInMilli=Long.parseLong(dataString.get(i));
        row.getCell(iColNum).setCellValue(formatMilliSecondTime(timeInMilli));
      }
 else       if (this.getColTitles().get(i).contains("String_Node_Str")) {
        Hyperlink link=new HSSFHyperlink(Hyperlink.LINK_DOCUMENT);
        link.setAddress(dataString.get(i));
        row.getCell(iColNum).setCellStyle(Styles.getHyperLinkStyle());
        row.getCell(iColNum).setCellValue("String_Node_Str");
        row.getCell(iColNum).setHyperlink(link);
      }
 else {
        row.getCell(iColNum).setCellStyle(style);
        row.getCell(iColNum).setCellValue(dataString.get(i));
      }
      sheet.autoSizeColumn(iColNum++);
    }
    rowNum++;
  }
  logger.exiting(rowNum);
  return rowNum;
}

Fixed version (ground truth):
int fillData(HSSFSheet sheet,int rowNum,HSSFCellStyle style){
  logger.entering(new Object[]{sheet,rowNum,style});
  HSSFRow row;
  HSSFCellStyle newStyle=Styles.getStyleBorderThinLeftTop();
  for (  List<String> dataString : this.getLstEntities()) {
    row=sheet.createRow(rowNum);
    int iColNum=getStartColNum();
    for (int i=0; i < this.getColTitles().size(); i++) {
      row.createCell(iColNum);
      row.getCell(iColNum).setCellStyle(newStyle);
      if (this.getColTitles().get(i).contains("String_Node_Str")) {
        Long timeInMilli=Long.parseLong(dataString.get(i));
        row.getCell(iColNum).setCellValue(formatMilliSecondTime(timeInMilli));
      }
 else       if (this.getColTitles().get(i).contains("String_Node_Str")) {
        Hyperlink link=new HSSFHyperlink(Hyperlink.LINK_DOCUMENT);
        link.setAddress(dataString.get(i));
        row.getCell(iColNum).setCellStyle(Styles.getHyperLinkStyle());
        row.getCell(iColNum).setCellValue("String_Node_Str");
        row.getCell(iColNum).setHyperlink(link);
      }
 else {
        row.getCell(iColNum).setCellStyle(newStyle);
        row.getCell(iColNum).setCellValue(dataString.get(i));
      }
      sheet.autoSizeColumn(iColNum++);
    }
    rowNum++;
  }
  logger.exiting(rowNum);
  return rowNum;
}
Program: 8408
Project: 8408
Buggy source:
public ByOrOperator(List<By> bys){
  this.bys=bys;
}

Fixed version (ground truth):
public ByOrOperator(List<By> bys){
  super();
  this.bys=bys;
}
Program: 8410
Project: 8410
Buggy source:
private List<String> asList(String allValues){
  List<String> valuesList=Collections.emptyList();
  if (!StringUtils.isBlank(allValues)) {
    allValues=allValues.trim().substring(1,allValues.length() - 1);
    valuesList=Arrays.asList(allValues.split("String_Node_Str"));
  }
  return valuesList;
}

Fixed version (ground truth):
private List<String> asList(String allValues){
  List<String> valuesList=Collections.emptyList();
  if (!StringUtils.isBlank(allValues)) {
    String tempAllValues=allValues.trim().substring(1,allValues.length() - 1);
    valuesList=Arrays.asList(tempAllValues.split("String_Node_Str"));
  }
  return valuesList;
}
Program: 8411
Project: 8411
Buggy source:
@Test(groups={"String_Node_Str","String_Node_Str","String_Node_Str"}) @WebTest public void testCorrectBrowserLaunched(ITestContext ctx){
  Grid.driver().get("String_Node_Str");
  String userAgent=(String)Grid.driver().executeScript("String_Node_Str","String_Node_Str");
  UserAgentStringParser parser=UADetectorServiceFactory.getResourceModuleParser();
  ReadableUserAgent agent=parser.parse(userAgent);
  String actualBrowser=agent.getName().toLowerCase();
  String browserParam=ctx.getCurrentXmlTest().getParameter("String_Node_Str");
  assertTrue(!browserParam.isEmpty());
  if (browserParam.equals("String_Node_Str")) {
    assertTrue(actualBrowser.equalsIgnoreCase("String_Node_Str"));
  }
 else {
    assertTrue(actualBrowser.contains(browserParam.substring(1).toLowerCase()));
  }
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str","String_Node_Str","String_Node_Str"}) @WebTest public void testCorrectBrowserLaunched(ITestContext ctx){
  Grid.driver().get("String_Node_Str");
  String userAgent=(String)Grid.driver().executeScript("String_Node_Str","String_Node_Str");
  UserAgentStringParser parser=UADetectorServiceFactory.getResourceModuleParser();
  ReadableUserAgent agent=parser.parse(userAgent);
  String actualBrowser=agent.getName().toLowerCase();
  String browserParam=ctx.getCurrentXmlTest().getParameter("String_Node_Str");
  assertTrue(!browserParam.isEmpty());
  if ("String_Node_Str".equals(browserParam)) {
    assertTrue(actualBrowser.equalsIgnoreCase("String_Node_Str"));
  }
 else {
    assertTrue(actualBrowser.contains(browserParam.substring(1).toLowerCase()));
  }
}
Program: 8412
Project: 8412
Buggy source:
@Test(groups="String_Node_Str") public void testInsertTestMethodDetail(){
  String suiteName="String_Node_Str";
  String testName="String_Node_Str";
  String packageName="String_Node_Str";
  String className="String_Node_Str";
  JsonRuntimeReporterHelper helper=new JsonRuntimeReporterHelper();
  ITestResult result=Reporter.getCurrentTestResult();
  helper.insertTestMethod(suiteName,testName,packageName,className,result);
  result.setStatus(1);
  helper.insertTestMethod(suiteName,testName,packageName,className,result);
  List<TestMethodInfo> completedTests=helper.getCompletedTestContent();
  assertEquals(completedTests.size(),1);
  TestMethodInfo testMethod=completedTests.get(0);
  JsonObject jsonObject=new JsonParser().parse(testMethod.toJson()).getAsJsonObject();
  ;
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),suiteName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),testName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),packageName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),className);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(groups="String_Node_Str") public void testInsertTestMethodDetail(){
  String suiteName="String_Node_Str";
  String testName="String_Node_Str";
  String packageName="String_Node_Str";
  String className="String_Node_Str";
  JsonRuntimeReporterHelper helper=new JsonRuntimeReporterHelper();
  ITestResult result=Reporter.getCurrentTestResult();
  helper.insertTestMethod(suiteName,testName,packageName,className,result);
  result.setStatus(1);
  helper.insertTestMethod(suiteName,testName,packageName,className,result);
  List<TestMethodInfo> completedTests=helper.getCompletedTestContent();
  assertEquals(completedTests.size(),1);
  TestMethodInfo testMethod=completedTests.get(0);
  JsonObject jsonObject=new JsonParser().parse(testMethod.toJson()).getAsJsonObject();
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),suiteName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),testName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),packageName);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),className);
  assertEquals(jsonObject.get("String_Node_Str").getAsString(),"String_Node_Str");
}
Program: 8413
Project: 8413
Buggy source:
SampleSuccessInMemoryPage(){
  getPage();
}

Fixed version (ground truth):
SampleSuccessInMemoryPage(){
  super();
  getPage();
}
Program: 8414
Project: 8414
Buggy source:
public SampleSuccessPage(){
  super.initPage("String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
public SampleSuccessPage(){
  super();
  super.initPage("String_Node_Str","String_Node_Str");
}
Program: 8415
Project: 8415
Buggy source:
public SampleTestPage(){
  super.initPage("String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
public SampleTestPage(){
  super();
  super.initPage("String_Node_Str","String_Node_Str");
}
Program: 8416
Project: 8416
Buggy source:
/** 
 * Creates a new TestInitializeElementsPage object
 * @param siteLocale The Country locale for the site you are accessing
 */
public TestInitializeElementsPage(String siteLocale){
  super.initPage(PAGE_DOMAIN,CLASS_NAME,siteLocale);
}

Fixed version (ground truth):
/** 
 * Creates a new TestInitializeElementsPage object
 * @param siteLocale The Country locale for the site you are accessing
 */
public TestInitializeElementsPage(String siteLocale){
  super();
  super.initPage(PAGE_DOMAIN,CLASS_NAME,siteLocale);
}
Program: 8417
Project: 8417
Buggy source:
public TestPage(String siteLocale,String className){
  super.initPage(PAGE_DOMAIN,className,siteLocale);
}

Fixed version (ground truth):
public TestPage(String siteLocale,String className){
  super();
  super.initPage(PAGE_DOMAIN,className,siteLocale);
}