nus-yam/ex-repair huggingface dataset:
Program: 84299
Project: 84299
Buggy source:
private void readSequences() throws JDBCException, SQLException {
  updateListeners("String_Node_Str" + database.toString() + "String_Node_Str");
  if (database.supportsSequences()) {
    Statement stmt=database.getConnection().createStatement();
    ResultSet rs=stmt.executeQuery(database.createFindSequencesSQL());
    while (rs.next()) {
      Sequence seq=new Sequence();
      seq.setName(rs.getString("String_Node_Str"));
      sequences.add(seq);
    }
    rs.close();
  }
}

Fixed version (ground truth):
private void readSequences() throws JDBCException, SQLException {
  updateListeners("String_Node_Str" + database.toString() + "String_Node_Str");
  if (database.supportsSequences()) {
    ResultSet rs=null;
    Statement stmt=null;
    try {
      stmt=database.getConnection().createStatement();
      rs=stmt.executeQuery(database.createFindSequencesSQL());
      while (rs.next()) {
        Sequence seq=new Sequence();
        seq.setName(rs.getString("String_Node_Str"));
        sequences.add(seq);
      }
    }
  finally {
      if (rs != null) {
        rs.close();
      }
      if (stmt != null) {
        stmt.close();
      }
    }
  }
}
Program: 84300
Project: 84300
Buggy source:
/** 
 * Sets checksums to null so they will be repopulated next run
 */
public void clearCheckSums() throws JDBCException {
  Connection connection=getDatabase().getConnection();
  try {
    Statement statement=connection.createStatement();
    statement.execute("String_Node_Str".toUpperCase());
    connection.commit();
  }
 catch (  SQLException e) {
    throw new JDBCException(e);
  }
}

Fixed version (ground truth):
/** 
 * Sets checksums to null so they will be repopulated next run
 */
public void clearCheckSums() throws JDBCException {
  Connection connection=getDatabase().getConnection();
  try {
    Statement statement=null;
    try {
      statement=connection.createStatement();
      statement.execute("String_Node_Str".toUpperCase());
      connection.commit();
    }
  finally {
      if (statement != null) {
        statement.close();
      }
    }
  }
 catch (  SQLException e) {
    throw new JDBCException(e);
  }
}
Program: 84301
Project: 84301
Buggy source:
public boolean equals(Object o){
  if (this == o)   return true;
  if (o == null || getClass() != o.getClass())   return false;
  final RanChangeSet that=(RanChangeSet)o;
  if (!author.equals(that.author))   return false;
  if (!changeLog.equals(that.changeLog))   return false;
  return id.equals(that.id);
}

Fixed version (ground truth):
public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  final RanChangeSet that=(RanChangeSet)o;
  return author.equals(that.author) && changeLog.equals(that.changeLog) && id.equals(that.id);
}
Program: 84302
Project: 84302
Buggy source:
public void execute() throws BuildException {
  String shouldRunProperty=System.getProperty(Migrator.SHOULD_RUN_SYSTEM_PROPERTY);
  if (shouldRunProperty != null && !Boolean.valueOf(shouldRunProperty)) {
    log("String_Node_Str" + Migrator.SHOULD_RUN_SYSTEM_PROPERTY + "String_Node_Str");
    return;
  }
  Migrator migrator=null;
  try {
    migrator=createMigrator();
    migrator.setContexts(getContexts());
    migrator.setMode(Migrator.Mode.EXECUTE_MODE);
    if (isPromptOnNonLocalDatabase() && !migrator.isSafeToRunMigration()) {
      if (migrator.swingPromptForNonLocalDatabase()) {
        throw new MigrationFailedException("String_Node_Str");
      }
    }
    if (isDropFirst()) {
      migrator.dropAll();
    }
    migrator.migrate();
  }
 catch (  Exception e) {
    throw new BuildException(e);
  }
 finally {
    if (migrator != null && migrator.getDatabase() != null && migrator.getDatabase().getConnection() != null) {
      try {
        migrator.getDatabase().getConnection().close();
      }
 catch (      SQLException e) {
        throw new BuildException(e);
      }
    }
  }
}

Fixed version (ground truth):
public void execute() throws BuildException {
  String shouldRunProperty=System.getProperty(Migrator.SHOULD_RUN_SYSTEM_PROPERTY);
  if (shouldRunProperty != null && !Boolean.valueOf(shouldRunProperty)) {
    log("String_Node_Str" + Migrator.SHOULD_RUN_SYSTEM_PROPERTY + "String_Node_Str");
    return;
  }
  Migrator migrator=null;
  try {
    migrator=createMigrator();
    migrator.setContexts(getContexts());
    migrator.setMode(Migrator.Mode.EXECUTE_MODE);
    if (isPromptOnNonLocalDatabase() && !migrator.isSafeToRunMigration() && migrator.swingPromptForNonLocalDatabase()) {
      throw new MigrationFailedException("String_Node_Str");
    }
    if (isDropFirst()) {
      migrator.dropAll();
    }
    migrator.migrate();
  }
 catch (  Exception e) {
    throw new BuildException(e);
  }
 finally {
    if (migrator != null && migrator.getDatabase() != null && migrator.getDatabase().getConnection() != null) {
      try {
        migrator.getDatabase().getConnection().close();
      }
 catch (      SQLException e) {
        throw new BuildException(e);
      }
    }
  }
}
Program: 84303
Project: 84303
Buggy source:
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  if (!database.supportsSequences()) {
    throw new UnsupportedChangeException("String_Node_Str" + database.getProductName());
  }
 else   if (database instanceof HsqlDatabase) {
    return new String[]{"String_Node_Str" + sequenceName + "String_Node_Str"+ minValue};
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(sequenceName);
  if (incrementBy != null) {
    buffer.append("String_Node_Str").append(incrementBy);
  }
  if (minValue != null) {
    buffer.append("String_Node_Str").append(minValue);
  }
  if (maxValue != null) {
    buffer.append("String_Node_Str").append(maxValue);
  }
  String[] returnStrings=new String[]{buffer.toString().trim()};
  if (database instanceof OracleDatabase) {
    if (ordered != null && ordered) {
      returnStrings[0]+="String_Node_Str";
    }
  }
  return returnStrings;
}

Fixed version (ground truth):
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  if (!database.supportsSequences()) {
    throw new UnsupportedChangeException("String_Node_Str" + database.getProductName());
  }
 else   if (database instanceof HsqlDatabase) {
    return new String[]{"String_Node_Str" + sequenceName + "String_Node_Str"+ minValue};
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(sequenceName);
  if (incrementBy != null) {
    buffer.append("String_Node_Str").append(incrementBy);
  }
  if (minValue != null) {
    buffer.append("String_Node_Str").append(minValue);
  }
  if (maxValue != null) {
    buffer.append("String_Node_Str").append(maxValue);
  }
  String[] returnStrings=new String[]{buffer.toString().trim()};
  if (database instanceof OracleDatabase && ordered != null && ordered) {
    returnStrings[0]+="String_Node_Str";
  }
  return returnStrings;
}
Program: 84305
Project: 84305
Buggy source:
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  if (!database.supportsSequences()) {
    throw new UnsupportedChangeException(database.getProductName() + "String_Node_Str");
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(sequenceName);
  if (startValue != null) {
    buffer.append("String_Node_Str").append(startValue);
  }
  if (incrementBy != null) {
    buffer.append("String_Node_Str").append(incrementBy);
  }
  if (minValue != null) {
    buffer.append("String_Node_Str").append(minValue);
  }
  if (maxValue != null) {
    buffer.append("String_Node_Str").append(maxValue);
  }
  String[] statements=new String[]{buffer.toString().trim()};
  if (database instanceof OracleDatabase) {
    if (ordered != null && ordered) {
      statements[0]+="String_Node_Str";
    }
  }
  return statements;
}

Fixed version (ground truth):
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  if (!database.supportsSequences()) {
    throw new UnsupportedChangeException(database.getProductName() + "String_Node_Str");
  }
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str");
  buffer.append(sequenceName);
  if (startValue != null) {
    buffer.append("String_Node_Str").append(startValue);
  }
  if (incrementBy != null) {
    buffer.append("String_Node_Str").append(incrementBy);
  }
  if (minValue != null) {
    buffer.append("String_Node_Str").append(minValue);
  }
  if (maxValue != null) {
    buffer.append("String_Node_Str").append(maxValue);
  }
  String[] statements=new String[]{buffer.toString().trim()};
  if (database instanceof OracleDatabase && ordered != null && ordered) {
    statements[0]+="String_Node_Str";
  }
  return statements;
}
Program: 84306
Project: 84306
Buggy source:
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  StringBuffer buffer=new StringBuffer();
  buffer.append("String_Node_Str").append(getTableName());
  if (isCascadeConstraints() != null && isCascadeConstraints()) {
    buffer.append("String_Node_Str");
  }
  return new String[]{buffer.toString()};
}

Fixed version (ground truth):
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  StringBuffer buffer=new StringBuffer(31);
  buffer.append("String_Node_Str").append(getTableName());
  if (isCascadeConstraints() != null && isCascadeConstraints()) {
    buffer.append("String_Node_Str");
  }
  return new String[]{buffer.toString()};
}
Program: 84307
Project: 84307
Buggy source:
public void setUp() throws SetupException {
  if (file == null)   throw new SetupException("String_Node_Str");
  boolean loaded=loadFromClasspath(file);
  if (!loaded)   loaded=loadFromFileSystem(file);
  if (!loaded)   throw new SetupException("String_Node_Str" + file + "String_Node_Str");
}

Fixed version (ground truth):
public void setUp() throws SetupException {
  if (file == null) {
    throw new SetupException("String_Node_Str");
  }
  boolean loaded=loadFromClasspath(file);
  if (!loaded) {
    loaded=loadFromFileSystem(file);
  }
  if (!loaded) {
    throw new SetupException("String_Node_Str" + file + "String_Node_Str");
  }
}
Program: 84308
Project: 84308
Buggy source:
/** 
 * Tries to load a file using the FileOpener. If the fileOpener can not be found then the attempt to load from the classpath the return is false.
 * @param file The file name to try and find.
 * @return True if the file was found and loaded, false otherwise.
 */
private boolean loadFromClasspath(String file) throws SetupException {
  InputStream in=null;
  try {
    FileOpener fo=getFileOpener();
    if (fo == null)     return false;
    in=fo.getResourceAsStream(file);
    if (in == null)     return false;
    sql=StreamUtil.getStreamContents(in);
    return true;
  }
 catch (  IOException ioe) {
    throw new SetupException("String_Node_Str" + file + "String_Node_Str",ioe);
  }
 finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Tries to load a file using the FileOpener. If the fileOpener can not be found then the attempt to load from the classpath the return is false.
 * @param file The file name to try and find.
 * @return True if the file was found and loaded, false otherwise.
 */
private boolean loadFromClasspath(String file) throws SetupException {
  InputStream in=null;
  try {
    FileOpener fo=getFileOpener();
    if (fo == null) {
      return false;
    }
    in=fo.getResourceAsStream(file);
    if (in == null) {
      return false;
    }
    sql=StreamUtil.getStreamContents(in);
    return true;
  }
 catch (  IOException ioe) {
    throw new SetupException("String_Node_Str" + file + "String_Node_Str",ioe);
  }
 finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}
Program: 84309
Project: 84309
Buggy source:
/** 
 * Generates a single statement for all of the SQL in the file.
 */
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  String[] statements=StringUtils.splitSQL(sql);
  return statements;
}

Fixed version (ground truth):
/** 
 * Generates a single statement for all of the SQL in the file.
 */
public String[] generateStatements(Database database) throws UnsupportedChangeException {
  return StringUtils.splitSQL(sql);
}
Program: 84311
Project: 84311
Buggy source:
public InputSource resolveEntity(String publicId,String systemId) throws IOException {
  if (systemId != null) {
    int iSlash=systemId.lastIndexOf("String_Node_Str");
    if (iSlash >= 0) {
      String xsdFile=systemId.substring(iSlash + 1);
      try {
        InputStream resourceAsStream=getClass().getClassLoader().getResourceAsStream(SEARCH_PACKAGE + xsdFile);
        if (resourceAsStream == null) {
          return null;
        }
        InputSource source=new InputSource(resourceAsStream);
        source.setPublicId(publicId);
        source.setSystemId(systemId);
        return source;
      }
 catch (      Exception ex) {
        return null;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
public InputSource resolveEntity(String publicId,String systemId) throws IOException {
  if (systemId != null) {
    int iSlash=systemId.lastIndexOf('/');
    if (iSlash >= 0) {
      String xsdFile=systemId.substring(iSlash + 1);
      try {
        InputStream resourceAsStream=Thread.currentThread().getContextClassLoader().getResourceAsStream(SEARCH_PACKAGE + xsdFile);
        if (resourceAsStream == null) {
          return null;
        }
        InputSource source=new InputSource(resourceAsStream);
        source.setPublicId(publicId);
        source.setSystemId(systemId);
        return source;
      }
 catch (      Exception ex) {
        return null;
      }
    }
  }
  return null;
}
Program: 84312
Project: 84312
Buggy source:
public ValidateChangeLogHandler(Migrator migrator,String physicalChangeLogLocation,FileOpener fileOpener){
  super(migrator,physicalChangeLogLocation,fileOpener);
  if (invalidMD5Sums == null) {
    invalidMD5Sums=new ArrayList<ChangeSet>();
  }
  if (failedPreconditions == null) {
    failedPreconditions=new ArrayList<FailedPrecondition>();
  }
  if (duplicateChangeSets == null) {
    duplicateChangeSets=new HashSet<ChangeSet>();
  }
  setupExceptions=new ArrayList<SetupException>();
}

Fixed version (ground truth):
public ValidateChangeLogHandler(Migrator migrator,String physicalChangeLogLocation,FileOpener fileOpener){
  super(migrator,physicalChangeLogLocation,fileOpener);
  if (invalidMD5Sums == null) {
    invalidMD5Sums=new ArrayList<ChangeSet>();
  }
  if (failedPreconditions == null) {
    failedPreconditions=new ArrayList<FailedPrecondition>();
  }
  if (duplicateChangeSets == null) {
    duplicateChangeSets=new HashSet<ChangeSet>();
  }
  if (setupExceptions != null) {
    setupExceptions=new ArrayList<SetupException>();
  }
}
Program: 84313
Project: 84313
Buggy source:
public boolean checkUserName(Migrator migrator){
  try {
    String loggedusername=migrator.getDatabase().getConnection().getMetaData().getUserName();
    loggedusername=loggedusername.substring(0,loggedusername.indexOf("String_Node_Str"));
    return username.equals(loggedusername);
  }
 catch (  SQLException e) {
    throw new RuntimeException("String_Node_Str");
  }
}

Fixed version (ground truth):
public boolean checkUserName(Migrator migrator){
  try {
    String loggedusername=migrator.getDatabase().getConnection().getMetaData().getUserName();
    loggedusername=loggedusername.substring(0,loggedusername.indexOf('@'));
    return username.equals(loggedusername);
  }
 catch (  SQLException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 84315
Project: 84315
Buggy source:
protected abstract void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, PreconditionFailedException, IOException ;

Fixed version (ground truth):
protected abstract void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, IOException ;
Program: 84316
Project: 84316
Buggy source:
protected void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, PreconditionFailedException, IOException {
  for (  RanChangeSet cs : ranChangesToRollback) {
    if (cs.isSameAs(changeSet)) {
      allChangeSets.add(0,changeSet);
    }
  }
}

Fixed version (ground truth):
protected void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, IOException {
  for (  RanChangeSet cs : ranChangesToRollback) {
    if (cs.isSameAs(changeSet)) {
      allChangeSets.add(0,changeSet);
    }
  }
}
Program: 84317
Project: 84317
Buggy source:
protected void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, PreconditionFailedException, IOException {
  boolean alreadyRan=false;
  for (  RanChangeSet cs : ranChangeSets) {
    if (cs.isSameAs(changeSet)) {
      alreadyRan=true;
      break;
    }
  }
  if (!alreadyRan) {
    changesToRollback.add(0,changeSet);
  }
}

Fixed version (ground truth):
protected void handleChangeSet(ChangeSet changeSet) throws JDBCException, DatabaseHistoryException, MigrationFailedException, IOException {
  boolean alreadyRan=false;
  for (  RanChangeSet cs : ranChangeSets) {
    if (cs.isSameAs(changeSet)) {
      alreadyRan=true;
      break;
    }
  }
  if (!alreadyRan) {
    changesToRollback.add(0,changeSet);
  }
}
Program: 84318
Project: 84318
Buggy source:
public AntFileOpener(Project project,Path classpath){
  loader=new AntClassLoader(project,classpath);
}

Fixed version (ground truth):
public AntFileOpener(final Project project,final Path classpath){
  loader=AccessController.doPrivileged(new PrivilegedAction<AntClassLoader>(){
    public AntClassLoader run(){
      return new AntClassLoader(project,classpath);
    }
  }
);
}
Program: 84319
Project: 84319
Buggy source:
protected Migrator createMigrator() throws MalformedURLException, ClassNotFoundException, JDBCException, SQLException, MigrationFailedException, IllegalAccessException, InstantiationException {
  String[] strings=classpath.list();
  List<URL> taskClassPath=new ArrayList<URL>();
  for (int i=0; i < strings.length; i++) {
    URL url=new File(strings[i]).toURL();
    taskClassPath.add(url);
  }
  Driver driver=(Driver)Class.forName(getDriver(),true,new URLClassLoader(taskClassPath.toArray(new URL[taskClassPath.size()]))).newInstance();
  Properties info=new Properties();
  info.put("String_Node_Str",getUsername());
  info.put("String_Node_Str",getPassword());
  Connection connection=driver.connect(getUrl(),info);
  if (connection == null) {
    throw new JDBCException("String_Node_Str" + getUrl() + "String_Node_Str"+ driver.getClass().getName()+ "String_Node_Str");
  }
  Migrator migrator=new Migrator(getChangeLogFile().trim(),new AntFileOpener(getProject(),classpath));
  migrator.init(connection);
  return migrator;
}

Fixed version (ground truth):
protected Migrator createMigrator() throws MalformedURLException, ClassNotFoundException, JDBCException, SQLException, MigrationFailedException, IllegalAccessException, InstantiationException {
  String[] strings=classpath.list();
  final List<URL> taskClassPath=new ArrayList<URL>();
  for (int i=0; i < strings.length; i++) {
    URL url=new File(strings[i]).toURL();
    taskClassPath.add(url);
  }
  URLClassLoader loader=AccessController.doPrivileged(new PrivilegedAction<URLClassLoader>(){
    public URLClassLoader run(){
      return new URLClassLoader(taskClassPath.toArray(new URL[taskClassPath.size()]));
    }
  }
);
  Driver driver=(Driver)Class.forName(getDriver(),true,loader).newInstance();
  Properties info=new Properties();
  info.put("String_Node_Str",getUsername());
  info.put("String_Node_Str",getPassword());
  Connection connection=driver.connect(getUrl(),info);
  if (connection == null) {
    throw new JDBCException("String_Node_Str" + getUrl() + "String_Node_Str"+ driver.getClass().getName()+ "String_Node_Str");
  }
  Migrator migrator=new Migrator(getChangeLogFile().trim(),new AntFileOpener(getProject(),classpath));
  migrator.init(connection);
  return migrator;
}
Program: 84320
Project: 84320
Buggy source:
public void setRollbackDate(Date rollbackDate){
  this.rollbackDate=rollbackDate;
}

Fixed version (ground truth):
public void setRollbackDate(Date rollbackDate){
  if (rollbackDate != null) {
    this.rollbackDate=new Date(rollbackDate.getTime());
  }
}
Program: 84321
Project: 84321
Buggy source:
public Date getRollbackDate(){
  return rollbackDate;
}

Fixed version (ground truth):
public Date getRollbackDate(){
  if (rollbackDate == null) {
    return null;
  }
  return (Date)rollbackDate.clone();
}
Program: 84323
Project: 84323
Buggy source:
private void writeComments(Writer writer) throws IOException {
  if (StringUtils.trimToNull(comments) != null) {
    String[] commentLines=comments.split(StreamUtil.getLineSeparator());
    for (    String line : commentLines) {
      writer.append("String_Node_Str" + line.trim() + StreamUtil.getLineSeparator());
    }
  }
}

Fixed version (ground truth):
private void writeComments(Writer writer) throws IOException {
  if (StringUtils.trimToNull(comments) != null) {
    String[] commentLines=comments.split("String_Node_Str");
    for (    String line : commentLines) {
      writer.append("String_Node_Str" + line.trim() + StreamUtil.getLineSeparator());
    }
  }
}
Program: 84324
Project: 84324
Buggy source:
/** 
 * Walks the module tree from bottom to top. Executes the given task against each module this module depends on and then against this module. Uses states to detect circular dependencies and avoid duplication.
 */
private void walk(Set<JavaHandler> stack,Set<JavaHandler> finished,JavaTask task,WalkStrategy strategy,Set<String> dependencies) throws BakeError, IOException {
  if (finished.contains(this)) {
    Log.v("String_Node_Str",task,module.name());
    return;
  }
  if (stack.contains(this)) {
    throw new BakeError("String_Node_Str" + task + "String_Node_Str"+ module.name()+ "String_Node_Str"+ stack);
  }
  stack.add(this);
  try {
    for (    JavaHandler other : dependenciesToHandlers(dependencies)) {
      other.walk(stack,finished,task,strategy,strategy.directDependenciesFor(other));
    }
    task.execute(this);
    finished.add(this);
  }
  finally {
    stack.remove(this);
  }
}

Fixed version (ground truth):
/** 
 * Walks the module tree from bottom to top. Executes the given task against each module this module depends on and then against this module. Uses states to detect circular dependencies and avoid duplication.
 */
private void walk(Set<JavaHandler> stack,Set<JavaHandler> finished,JavaTask task,WalkStrategy strategy,Set<String> dependencies) throws BakeError, IOException {
  if (finished.contains(this)) {
    Log.v("String_Node_Str",task,module.name());
    return;
  }
  if (stack.contains(this)) {
    throw new BakeError("String_Node_Str" + task.description() + "String_Node_Str"+ module.name()+ "String_Node_Str"+ stack);
  }
  stack.add(this);
  try {
    for (    JavaHandler other : dependenciesToHandlers(dependencies)) {
      other.walk(stack,finished,task,strategy,strategy.directDependenciesFor(other));
    }
    task.execute(this);
    finished.add(this);
  }
  finally {
    stack.remove(this);
  }
}
Program: 84325
Project: 84325
Buggy source:
@Override public boolean onCommand(CommandSender sender,Command command,String commandLabel,String[] args){
  if (command.getName().equalsIgnoreCase("String_Node_Str")) {
    if (sender instanceof Player) {
      Player player=(Player)sender;
      if (!has(player,"String_Node_Str")) {
        player.sendMessage("String_Node_Str");
        return true;
      }
 else       if (admins != null && !showStealthed) {
        if (!has(player,"String_Node_Str")) {
          whoLimited(sender,args);
          return true;
        }
      }
    }
    whoUnlimited(sender,args);
    return true;
  }
 else   if (command.getName().equalsIgnoreCase("String_Node_Str")) {
    if (sender instanceof Player) {
      if (!has((Player)sender,"String_Node_Str")) {
        sender.sendMessage("String_Node_Str");
        return true;
      }
    }
    if (args.length < 1) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      whois(sender,args);
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandSender sender,Command command,String commandLabel,String[] args){
  if (command.getName().equalsIgnoreCase("String_Node_Str")) {
    if (sender instanceof Player) {
      Player player=(Player)sender;
      if (!has(player,"String_Node_Str")) {
        player.sendMessage("String_Node_Str");
        return true;
      }
 else       if (admins != null && !showStealthed) {
        if (!has(player,"String_Node_Str")) {
          whoLimited(player,args);
          return true;
        }
      }
    }
    whoUnlimited(sender,args);
    return true;
  }
 else   if (command.getName().equalsIgnoreCase("String_Node_Str")) {
    if (sender instanceof Player) {
      if (!has((Player)sender,"String_Node_Str")) {
        sender.sendMessage("String_Node_Str");
        return true;
      }
    }
    if (args.length < 1) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      whois(sender,args);
      return true;
    }
  }
  return false;
}
Program: 84326
Project: 84326
Buggy source:
public void onEnable(){
  PluginDescriptionFile pdfFile=this.getDescription();
  plugName="String_Node_Str" + pdfFile.getName() + "String_Node_Str";
  if (!setupDependencies()) {
    this.getServer().getPluginManager().disablePlugin(this);
    return;
  }
  File yml=new File(getDataFolder() + "String_Node_Str");
  if (!yml.exists()) {
    new File(getDataFolder().toString()).mkdir();
    try {
      yml.createNewFile();
    }
 catch (    IOException ex) {
      log.info(plugName + "String_Node_Str");
    }
  }
  setupConfiguration();
  log.info(plugName + "String_Node_Str" + pdfFile.getVersion()+ "String_Node_Str");
}

Fixed version (ground truth):
public void onEnable(){
  PluginDescriptionFile pdfFile=this.getDescription();
  plugName="String_Node_Str" + pdfFile.getName() + "String_Node_Str";
  if (!setupDependencies()) {
    this.getServer().getPluginManager().disablePlugin(this);
    return;
  }
  setupOptionals();
  File yml=new File(getDataFolder() + "String_Node_Str");
  if (!yml.exists()) {
    new File(getDataFolder().toString()).mkdir();
    try {
      yml.createNewFile();
    }
 catch (    IOException ex) {
      log.info(plugName + "String_Node_Str");
    }
  }
  setupConfiguration();
  log.info(plugName + "String_Node_Str" + pdfFile.getVersion()+ "String_Node_Str");
}
Program: 84327
Project: 84327
Buggy source:
private void whoLimited(CommandSender sender,String[] args){
  World world=null;
  if (args.length > 0) {
    world=getServer().getWorld(args[0]);
  }
  String playerList="String_Node_Str";
  int i=0;
  int j=0;
  for (  Player player : getServer().getOnlinePlayers()) {
    if (isStealthed(player.getName()))     continue;
    if ((world == null && args.length == 0) || (world != null && player.getWorld().equals(world)) || (world == null && player.getName().contains(args[0]))) {
      playerList+=colorize(player);
      i++;
    }
    j++;
  }
  if (i == 0 && world == null && args.length > 0) {
    sender.sendMessage("String_Node_Str");
  }
 else   if (i == 0 && world != null) {
    sender.sendMessage("String_Node_Str" + world.getName());
  }
 else   if (args.length == 0) {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ "String_Node_Str"+ j+ ChatColor.WHITE+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
 else   if (world != null) {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ ChatColor.WHITE+ "String_Node_Str"+ world.getName()+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
 else {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ ChatColor.WHITE+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
}

Fixed version (ground truth):
private void whoLimited(Player sender,String[] args){
  World world=null;
  if (args.length > 0) {
    world=getServer().getWorld(args[0]);
  }
  String playerList="String_Node_Str";
  int i=0;
  int j=0;
  for (  Player player : getServer().getOnlinePlayers()) {
    if (isStealthed(player.getName(),sender))     continue;
    if ((world == null && args.length == 0) || (world != null && player.getWorld().equals(world)) || (world == null && player.getName().contains(args[0]))) {
      playerList+=colorize(player);
      i++;
    }
    j++;
  }
  if (i == 0 && world == null && args.length > 0) {
    sender.sendMessage("String_Node_Str");
  }
 else   if (i == 0 && world != null) {
    sender.sendMessage("String_Node_Str" + world.getName());
  }
 else   if (args.length == 0) {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ "String_Node_Str"+ j+ ChatColor.WHITE+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
 else   if (world != null) {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ ChatColor.WHITE+ "String_Node_Str"+ world.getName()+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
 else {
    String message=ChatColor.WHITE + "String_Node_Str" + ChatColor.BLUE+ i+ ChatColor.WHITE+ "String_Node_Str"+ playerList;
    sender.sendMessage(message);
  }
}
Program: 84328
Project: 84328
Buggy source:
public boolean isStealthed(String player){
  if (admins == null)   return false;
 else   return AdminHandler.isStealthed(player);
}

Fixed version (ground truth):
public boolean isStealthed(String player,Player p){
  if (admins == null)   return false;
 else   return AdminHandler.isStealthed(player,p);
}
Program: 84329
Project: 84329
Buggy source:
@Override public void onPlayerLogin(PlayerLoginEvent event){
  Player player=event.getPlayer();
  if (displayOnLogin) {
    plugin.getServer().getPluginCommand("String_Node_Str").execute(player,"String_Node_Str",new String[0]);
  }
  if (prefixTabName || colorOptionTabName)   player.setPlayerListName(colorizeTabName(player));
}

Fixed version (ground truth):
@Override public void onPlayerLogin(PlayerLoginEvent event){
  Player player=event.getPlayer();
  if (displayOnLogin) {
    plugin.getServer().getPluginCommand("String_Node_Str").execute(player,"String_Node_Str",new String[0]);
  }
  if (prefixTabName || colorOptionTabName) {
    String listName=colorizeTabName(player);
    if (listName.length() > 16)     listName=listName.substring(0,15);
    player.setPlayerListName(listName);
  }
}
Program: 84330
Project: 84330
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  tvNewItem=(AutoCompleteTextView)findViewById(R.id.tvNewItem);
  btnAddItem=(Button)findViewById(R.id.btnAddItem);
  lvItems=(ListView)findViewById(R.id.lvItems);
  mFactory=LayoutInflater.from(this);
  mCursor=getContentResolver().query(GroceryProvider.CONTENT_URI,GroceryProvider.ITEM_QUERY_COLUMNS,null,null,GroceryProvider.DEFAULT_SORT_ORDER);
  lvItems.setAdapter(new GroceryListAdapter(this,mCursor));
  btnAddItem.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      GroceryListActivity.add_item(getApplicationContext(),tvNewItem.getText().toString());
      tvNewItem.setText("String_Node_Str");
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  tvNewItem=(AutoCompleteTextView)findViewById(R.id.tvNewItem);
  btnAddItem=(Button)findViewById(R.id.btnAddItem);
  lvItems=(ListView)findViewById(R.id.lvItems);
  mFactory=LayoutInflater.from(this);
  mCursor=getContentResolver().query(GroceryProvider.CONTENT_URI,GroceryProvider.ITEM_QUERY_COLUMNS,null,null,GroceryProvider.DEFAULT_SORT_ORDER);
  lvItems.setAdapter(new GroceryListAdapter(this,mCursor));
  lvItems.setOnItemClickListener(new OnItemClickListener(){
    public void onItemClick(    AdapterView<?> parent,    View view,    int position,    long id){
      CheckedTextView cv=(CheckedTextView)view;
      boolean isChecked=!cv.isChecked();
      GroceryListActivity.toggle_item(getApplicationContext(),id,isChecked);
    }
  }
);
  lvItems.setOnItemLongClickListener(new OnItemLongClickListener(){
    public boolean onItemLongClick(    AdapterView<?> parent,    View view,    int position,    long id){
      GroceryListActivity.delete_item(getApplicationContext(),id);
      return false;
    }
  }
);
  btnAddItem.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      GroceryListActivity.add_item(getApplicationContext(),tvNewItem.getText().toString());
      tvNewItem.setText("String_Node_Str");
    }
  }
);
}
Program: 84331
Project: 84331
Buggy source:
public void onClick(View v){
  boolean isChecked=!((CheckedTextView)v).isChecked();
  GroceryListActivity.toggle_item(getApplicationContext(),item.id,isChecked);
}

Fixed version (ground truth):
public void onClick(View v){
  GroceryListActivity.add_item(getApplicationContext(),tvNewItem.getText().toString());
  tvNewItem.setText("String_Node_Str");
}
Program: 84332
Project: 84332
Buggy source:
@Override public void bindView(View view,Context context,Cursor cursor){
  final GroceryItem item=new GroceryItem(cursor);
  CheckedTextView text1=(CheckedTextView)view.findViewById(android.R.id.text1);
  text1.setText(item.text);
  text1.setChecked(item.checked);
  text1.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      boolean isChecked=!((CheckedTextView)v).isChecked();
      GroceryListActivity.toggle_item(getApplicationContext(),item.id,isChecked);
    }
  }
);
  text1.setLongClickable(true);
  text1.setOnLongClickListener(new OnLongClickListener(){
    public boolean onLongClick(    View v){
      GroceryListActivity.delete_item(getApplicationContext(),item.id);
      return false;
    }
  }
);
}

Fixed version (ground truth):
@Override public void bindView(View view,Context context,Cursor cursor){
  final GroceryItem item=new GroceryItem(cursor);
  CheckedTextView cv=(CheckedTextView)view;
  cv.setText(item.text);
  cv.setChecked(item.checked);
}
Program: 84333
Project: 84333
Buggy source:
@Override public View newView(Context context,Cursor cursor,ViewGroup parent){
  View ret=mFactory.inflate(android.R.layout.simple_list_item_multiple_choice,parent,false);
  return ret;
}

Fixed version (ground truth):
@Override public View newView(Context context,Cursor cursor,ViewGroup parent){
  return mFactory.inflate(android.R.layout.simple_list_item_multiple_choice,parent,false);
}
Program: 84334
Project: 84334
Buggy source:
public GroceryItem(Cursor c){
  id=c.getInt(c.getColumnIndex(GroceryProvider.KEY_ROWID));
  text=c.getString(c.getColumnIndex(GroceryProvider.KEY_TEXT));
  checked=(c.getInt(c.getColumnIndex(GroceryProvider.KEY_CHECKED)) == 1);
}

Fixed version (ground truth):
public GroceryItem(Cursor c){
  id=c.getLong(c.getColumnIndex(GroceryProvider.KEY_ROWID));
  text=c.getString(c.getColumnIndex(GroceryProvider.KEY_TEXT));
  checked=(c.getInt(c.getColumnIndex(GroceryProvider.KEY_CHECKED)) == 1);
}
Program: 84335
Project: 84335
Buggy source:
public static void delete_item(Context c,int id){
  Uri uri=ContentUris.withAppendedId(GroceryProvider.CONTENT_URI,id);
  c.getContentResolver().delete(uri,null,null);
}

Fixed version (ground truth):
public static void delete_item(Context c,long id){
  Uri uri=ContentUris.withAppendedId(GroceryProvider.CONTENT_URI,id);
  c.getContentResolver().delete(uri,null,null);
}
Program: 84336
Project: 84336
Buggy source:
public static void toggle_item(Context c,int id,boolean isChecked){
  ContentValues values=new ContentValues(1);
  values.put(GroceryProvider.KEY_CHECKED,isChecked ? 1 : 0);
  Uri uri=ContentUris.withAppendedId(GroceryProvider.CONTENT_URI,id);
  c.getContentResolver().update(uri,values,null,null);
}

Fixed version (ground truth):
public static void toggle_item(Context c,long id,boolean isChecked){
  ContentValues values=new ContentValues(1);
  values.put(GroceryProvider.KEY_CHECKED,isChecked ? 1 : 0);
  Uri uri=ContentUris.withAppendedId(GroceryProvider.CONTENT_URI,id);
  c.getContentResolver().update(uri,values,null,null);
}
Program: 84337
Project: 84337
Buggy source:
@Override public int delete(Uri uri,String selection,String[] selectionArgs){
  SQLiteDatabase db=DBHelper.getWritableDatabase();
  int count=0;
  long rowId=0;
switch (sURLMatcher.match(uri)) {
case ITEMS:
{
      count=db.delete(DATABASE_NAME,selection,selectionArgs);
      break;
    }
case ITEMS_ID:
{
    String segment=uri.getPathSegments().get(1);
    rowId=Long.parseLong(segment);
    if (TextUtils.isEmpty(selection)) {
      selection=KEY_ROWID + "String_Node_Str" + rowId;
    }
 else {
      selection=KEY_ROWID + "String_Node_Str" + rowId+ "String_Node_Str"+ selection+ "String_Node_Str";
    }
    count=db.delete(DATABASE_TABLE,selection,selectionArgs);
    break;
  }
default :
{
  throw new IllegalArgumentException("String_Node_Str" + uri);
}
}
getContext().getContentResolver().notifyChange(uri,null);
return count;
}

Fixed version (ground truth):
@Override public int delete(Uri uri,String selection,String[] selectionArgs){
  SQLiteDatabase db=DBHelper.getWritableDatabase();
  int count=0;
  long rowId=0;
switch (sURLMatcher.match(uri)) {
case ITEMS:
{
      count=db.delete(DATABASE_TABLE,selection,selectionArgs);
      break;
    }
case ITEMS_ID:
{
    String segment=uri.getPathSegments().get(1);
    rowId=Long.parseLong(segment);
    if (TextUtils.isEmpty(selection)) {
      selection=KEY_ROWID + "String_Node_Str" + rowId;
    }
 else {
      selection=KEY_ROWID + "String_Node_Str" + rowId+ "String_Node_Str"+ selection+ "String_Node_Str";
    }
    count=db.delete(DATABASE_TABLE,selection,selectionArgs);
    break;
  }
default :
{
  throw new IllegalArgumentException("String_Node_Str" + uri);
}
}
getContext().getContentResolver().notifyChange(uri,null);
return count;
}
Program: 84338
Project: 84338
Buggy source:
public static void add_item(Context c,String text){
  ContentValues values=new ContentValues(1);
  values.put(GroceryProvider.KEY_TEXT,text);
  c.getContentResolver().insert(GroceryProvider.CONTENT_URI,values);
}

Fixed version (ground truth):
public static void add_item(Context c,String text){
  if (TextUtils.isEmpty(text))   return;
  GroceryItem item=find_item(c,text);
  if (item != null) {
    Toast.makeText(c,"String_Node_Str",Toast.LENGTH_SHORT).show();
    return;
  }
  ContentValues values=new ContentValues(1);
  values.put(GroceryProvider.KEY_TEXT,text);
  c.getContentResolver().insert(GroceryProvider.CONTENT_URI,values);
}
Program: 84340
Project: 84340
Buggy source:
public boolean onItemLongClick(AdapterView<?> parent,View view,int position,long id){
  GroceryListActivity.delete_item(getApplicationContext(),id);
  return false;
}

Fixed version (ground truth):
public boolean onItemLongClick(AdapterView<?> parent,View view,int position,long id){
  GroceryListActivity.delete_item(getApplicationContext(),id);
  return true;
}
Program: 84341
Project: 84341
Buggy source:
@Test public void testSolrInfoMBean(){
  assertNotNull(component.getDescription());
  assertNotNull(component.getSourceId());
  assertNotNull(component.getSource());
  assertNotNull(component.getVersion());
}

Fixed version (ground truth):
@Test public void testSolrInfoMBean(){
  assertNotNull(component.getDescription());
  assertNotNull(component.getSource());
  assertNotNull(component.getVersion());
}
Program: 84342
Project: 84342
Buggy source:
public static void addNewAccount(final String username,final String password){
  AccountStore.Account account=new AccountStore.Account(username);
  account.setPassword(password);
  accountStore.add(account);
  try {
    accountStore.save();
  }
 catch (  IOException ignored) {
  }
}

Fixed version (ground truth):
public static void addNewAccount(final String username,final String password){
  AccountStore.Account account=new AccountStore.Account(username);
  account.setPassword(password);
  accountStore.add(account);
  new Thread(){
    public void run(){
      try {
        accountStore.save();
      }
 catch (      IOException ignored) {
      }
    }
  }
.start();
}
Program: 84343
Project: 84343
Buggy source:
private void load(){
  scripts.clear();
  if (connected) {
    final List<ScriptDefinition> net=SRC_NETWORK.list();
    if (net != null) {
      scripts.addAll(net);
    }
  }
  scripts.addAll(SRC_PRECOMPILED.list());
  scripts.addAll(SRC_SOURCES.list());
  Collections.sort(scripts);
  final ArrayList<String> keywords=new ArrayList<String>(Category.values().length);
  for (  Category c : Category.values()) {
    String id=c.description().trim();
    if (id.length() > 0 && !keywords.contains(id)) {
      keywords.add(id);
    }
  }
  categories.populate(keywords,false);
  filter();
  table.revalidate();
}

Fixed version (ground truth):
private void load(){
  scripts.clear();
  if (connected) {
    final List<ScriptDefinition> net=SRC_NETWORK.list();
    if (net != null) {
      scripts.addAll(net);
    }
  }
  scripts.addAll(SRC_PRECOMPILED.list());
  scripts.addAll(SRC_SOURCES.list());
  Collections.sort(scripts);
  if (firstRun) {
    ArrayList<String> keywords=new ArrayList<String>(Category.values().length);
    for (    Category c : Category.values()) {
      String id=c.description().trim();
      if (id.length() > 0 && !keywords.contains(id)) {
        keywords.add(id);
      }
    }
    categories.populate(keywords,false);
    firstRun=false;
  }
  filter();
  table.revalidate();
}
Program: 84344
Project: 84344
Buggy source:
@Override public int compareTo(final ScriptDefinition def){
  final int c=getName().compareToIgnoreCase(def.getName());
  return c == 0 ? Double.compare(version,def.version) : c;
}

Fixed version (ground truth):
public int compareTo(final ScriptDefinition def){
  final int c=getName().compareToIgnoreCase(def.getName());
  return c == 0 ? Double.compare(version,def.version) : c;
}
Program: 84345
Project: 84345
Buggy source:
@Override public int loop(){
synchronized (lock) {
    if (!Web.loaded) {
      try {
        final BufferedReader br=new BufferedReader(new FileReader(Configuration.Paths.getWebDatabase()));
        String line;
        final List<GameTile> flagsArray=new ArrayList<GameTile>();
        while ((line=br.readLine()) != null) {
          final String[] d=line.split("String_Node_Str");
          if (d.length == 2) {
            final String[] tD=d[0].split("String_Node_Str");
            if (tD.length == 3) {
              try {
                final RSTile tile=new RSTile(Integer.parseInt(tD[0]),Integer.parseInt(tD[1]),Integer.parseInt(tD[2]));
                final GameTile gameTile=new GameTile(tile,Integer.parseInt(d[1]));
                if (flagsArray.contains(tile)) {
                  WebQueue.Remove(line);
                }
 else {
                  flagsArray.add(gameTile);
                }
              }
 catch (              final Exception e) {
              }
            }
 else {
              WebQueue.Remove(line);
            }
          }
 else {
            WebQueue.Remove(line);
          }
        }
        Web.map.addAll(flagsArray);
        Web.loaded=true;
      }
 catch (      final Exception e) {
        log("String_Node_Str");
      }
    }
    if (Web.loaded) {
      deactivate(getID());
    }
  }
  return -1;
}

Fixed version (ground truth):
@Override public int loop(){
synchronized (lock) {
    if (Web.loaded) {
      deactivate(getID());
    }
    if (!Web.loaded) {
      try {
        if (!new File(Configuration.Paths.getWebDatabase()).exists()) {
          Web.loaded=true;
          deactivate(getID());
          return -1;
        }
        final BufferedReader br=new BufferedReader(new FileReader(Configuration.Paths.getWebDatabase()));
        String line;
        final List<GameTile> flagsArray=new ArrayList<GameTile>();
        while ((line=br.readLine()) != null) {
          final String[] d=line.split("String_Node_Str");
          if (d.length == 2) {
            final String[] tD=d[0].split("String_Node_Str");
            if (tD.length == 3) {
              try {
                final RSTile tile=new RSTile(Integer.parseInt(tD[0]),Integer.parseInt(tD[1]),Integer.parseInt(tD[2]));
                final GameTile gameTile=new GameTile(tile,Integer.parseInt(d[1]));
                if (flagsArray.contains(tile)) {
                  WebQueue.Remove(line);
                }
 else {
                  flagsArray.add(gameTile);
                }
              }
 catch (              final Exception e) {
              }
            }
 else {
              WebQueue.Remove(line);
            }
          }
 else {
            WebQueue.Remove(line);
          }
        }
        Web.map.addAll(flagsArray);
        Web.loaded=true;
      }
 catch (      final Exception e) {
        log("String_Node_Str");
      }
    }
    if (Web.loaded) {
      deactivate(getID());
    }
  }
  return -1;
}
Program: 84346
Project: 84346
Buggy source:
public boolean cleanExit(final boolean silent){
  if (silent) {
    disableConfirmations=true;
  }
  if (!disableConfirmations) {
    disableConfirmations=true;
    for (    final Bot bot : bots) {
      if (bot.getAccountName() != null) {
        disableConfirmations=true;
        break;
      }
    }
  }
  boolean doExit=true;
  if (!disableConfirmations) {
    final String message="String_Node_Str";
    final int result=JOptionPane.showConfirmDialog(this,message,Messages.EXIT,JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE);
    if (result != JOptionPane.OK_OPTION) {
      doExit=false;
    }
  }
  WebQueue.Destroy();
  setVisible(false);
  Monitoring.pushState(Type.ENVIRONMENT,"String_Node_Str","String_Node_Str",Boolean.toString(showAds));
  if (doExit) {
    menuBar.savePrefs();
    Monitoring.stop();
    System.exit(0);
  }
 else {
    setVisible(true);
  }
  return doExit;
}

Fixed version (ground truth):
public boolean cleanExit(final boolean silent){
  if (silent) {
    disableConfirmations=true;
  }
  if (!disableConfirmations) {
    disableConfirmations=true;
    for (    final Bot bot : bots) {
      if (bot.getAccountName() != null) {
        disableConfirmations=true;
        break;
      }
    }
  }
  boolean doExit=true;
  if (!disableConfirmations) {
    final String message="String_Node_Str";
    final int result=JOptionPane.showConfirmDialog(this,message,Messages.EXIT,JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE);
    if (result != JOptionPane.OK_OPTION) {
      doExit=false;
    }
  }
  try {
    WebQueue.Destroy();
  }
 catch (  NoClassDefFoundError ncdfe) {
  }
  setVisible(false);
  try {
    Monitoring.pushState(Type.ENVIRONMENT,"String_Node_Str","String_Node_Str",Boolean.toString(showAds));
  }
 catch (  NoClassDefFoundError ncdfe) {
  }
  if (doExit) {
    menuBar.savePrefs();
    try {
      Monitoring.stop();
    }
 catch (    NoClassDefFoundError ncdfe) {
    }
    System.exit(0);
  }
 else {
    setVisible(true);
  }
  return doExit;
}