nus-yam/ex-repair huggingface dataset:
Program: 3092
Project: 3092
Buggy source:
public static void start(Context context){
  Log.setAppName("String_Node_Str");
  context.bindService(new Intent(ISystemLog.class.getName()),Log.SystemLogConnection,Context.BIND_AUTO_CREATE);
  Log.register(TAG);
  TriggerDB db=new TriggerDB(context);
  db.open();
  boolean canRunNow=true;
  Cursor c=db.getAllTriggers();
  if (c.moveToFirst()) {
    do {
      int trigId=c.getInt(c.getColumnIndexOrThrow(TriggerDB.KEY_ID));
      String trigDesc=db.getTriggerDescription(trigId);
      BlackoutDesc conf=new BlackoutDesc();
      if (!conf.loadString(trigDesc)) {
        continue;
      }
      SimpleTime start=conf.getRangeStart();
      SimpleTime end=conf.getRangeEnd();
      SimpleTime now=new SimpleTime();
      Log.d(TAG,start.getHour() + "String_Node_Str" + start.getMinute()+ "String_Node_Str"+ end.getHour()+ "String_Node_Str"+ end.getMinute()+ "String_Node_Str"+ now.getHour()+ now.getMinute());
      if (!start.isAfter(now) && end.isAfter(now)) {
        canRunNow=false;
      }
    }
 while (c.moveToNext());
  }
  c.close();
  db.close();
  TriggerInit.initTriggers(context);
  initialize(context);
  if (canRunNow) {
    Log.d(TAG,"String_Node_Str");
    startMobility(context);
  }
  GarbageCollectReceiver.scheduleGC(context,mgr);
}

Fixed version (ground truth):
public static void start(Context context){
  initSystemLog(context);
  TriggerDB db=new TriggerDB(context);
  db.open();
  boolean canRunNow=true;
  Cursor c=db.getAllTriggers();
  if (c.moveToFirst()) {
    do {
      int trigId=c.getInt(c.getColumnIndexOrThrow(TriggerDB.KEY_ID));
      String trigDesc=db.getTriggerDescription(trigId);
      BlackoutDesc conf=new BlackoutDesc();
      if (!conf.loadString(trigDesc)) {
        continue;
      }
      SimpleTime start=conf.getRangeStart();
      SimpleTime end=conf.getRangeEnd();
      SimpleTime now=new SimpleTime();
      Log.d(TAG,start.getHour() + "String_Node_Str" + start.getMinute()+ "String_Node_Str"+ end.getHour()+ "String_Node_Str"+ end.getMinute()+ "String_Node_Str"+ now.getHour()+ now.getMinute());
      if (!start.isAfter(now) && end.isAfter(now)) {
        canRunNow=false;
      }
    }
 while (c.moveToNext());
  }
  c.close();
  db.close();
  TriggerInit.initTriggers(context);
  initialize(context);
  if (canRunNow) {
    Log.d(TAG,"String_Node_Str");
    startMobility(context);
  }
  GarbageCollectReceiver.scheduleGC(context,mgr);
}
Program: 3096
Project: 3096
Buggy source:
@Override public final String render(StackTrace stackTrace){
  StringBuilder builder=new StringBuilder();
  renderPreTrace(builder,stackTrace);
  List<Entry> ignoredEntries=new ArrayList<Entry>();
  for (int segmentIndex=0; segmentIndex < stackTrace.getSegments().size(); segmentIndex++) {
    Segment segment=stackTrace.getSegments().get(segmentIndex);
    renderPreSegment(builder,stackTrace.getSegments(),segmentIndex);
    for (int entryIndex=0; entryIndex < segment.numberOfEntries(); entryIndex++) {
      Entry entry=segment.getEntries().get(entryIndex);
      if (filter == null) {
        renderEntry(builder,segment.getEntries(),entryIndex);
      }
 else       if (filter.include(entry,entryIndex)) {
        if (!ignoredEntries.isEmpty()) {
          renderIgnoredEntries(builder,ignoredEntries,entryIndex - ignoredEntries.size());
          ignoredEntries.clear();
        }
        renderEntry(builder,segment.getEntries(),entryIndex);
      }
 else {
        ignoredEntries.add(entry);
      }
    }
    if (!ignoredEntries.isEmpty()) {
      renderIgnoredEntries(builder,ignoredEntries,segment.numberOfEntries() - ignoredEntries.size());
      ignoredEntries.clear();
    }
    renderPostSegment(builder,stackTrace.getSegments(),segmentIndex);
    segmentIndex++;
  }
  renderPostTrace(builder,stackTrace);
  return builder.toString();
}

Fixed version (ground truth):
@Override public final String render(StackTrace stackTrace){
  final StringBuilder builder=new StringBuilder();
  renderPreTrace(builder,stackTrace);
  final List<Entry> ignoredEntries=new ArrayList<Entry>();
  for (int segmentIndex=0; segmentIndex < stackTrace.getSegments().size(); segmentIndex++) {
    renderSegment(stackTrace,segmentIndex,builder,ignoredEntries);
    segmentIndex++;
  }
  renderPostTrace(builder,stackTrace);
  return builder.toString();
}
Program: 3097
Project: 3097
Buggy source:
public void setFilter(EntryFilter filter){
  this.filter=filter;
}

Fixed version (ground truth):
public final void setFilter(EntryFilter filter){
  this.filter=filter;
}
Program: 3098
Project: 3098
Buggy source:
private void renderSegmentAsText(StringBuilder builder,Entry segmentEntry){
  builder.append(LINE_PAD);
  builder.append(segmentEntry.getFqClassName());
  builder.append(segmentEntry.getMethodName());
  builder.append("String_Node_Str");
  builder.append(segmentEntry.getFileName());
  builder.append("String_Node_Str");
  builder.append(segmentEntry.getLineNumber());
  builder.append("String_Node_Str");
}

Fixed version (ground truth):
private void renderSegmentAsText(StringBuilder builder,Entry segmentEntry){
  builder.append(LINE_PAD);
  builder.append(segmentEntry.getFqClassName());
  builder.append("String_Node_Str");
  builder.append(segmentEntry.getMethodName());
  builder.append("String_Node_Str");
  builder.append(segmentEntry.getFileName());
  builder.append("String_Node_Str");
  builder.append(segmentEntry.getLineNumber());
  builder.append("String_Node_Str");
}
Program: 3099
Project: 3099
Buggy source:
public String getURLFor(Entry entry){
  boolean matchesPackages=false;
  for (int i=0; i < forPackagesStartingWith.length; i++) {
    String prefix=forPackagesStartingWith[i];
    if (entry.getPackageName().startsWith(prefix)) {
      matchesPackages=true;
      break;
    }
  }
  if (matchesPackages) {
    StringBuilder builder=new StringBuilder();
    builder.append(javadocUrl);
    builder.append(entry.getPackageName().replace('.','/'));
    builder.append('/');
    builder.append(entry.getClassName());
    builder.append("String_Node_Str");
    return builder.toString();
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
@Override public String getURLFor(Entry entry){
  boolean matchesPackages=false;
  for (int i=0; i < forPackagesStartingWith.length; i++) {
    final String prefix=forPackagesStartingWith[i];
    if (entry.getPackageName().startsWith(prefix)) {
      matchesPackages=true;
      break;
    }
  }
  final String url;
  if (matchesPackages) {
    StringBuilder builder=new StringBuilder();
    builder.append(javadocUrl);
    builder.append(entry.getPackageName().replace('.','/'));
    builder.append('/');
    builder.append(entry.getClassName());
    builder.append("String_Node_Str");
    url=builder.toString();
  }
 else {
    url=null;
  }
  return url;
}
Program: 3100
Project: 3100
Buggy source:
public String getURLFor(Entry entry){
  for (int i=0; i < resolvers.length; i++) {
    ClassLinkResolver classLinkResolver=resolvers[i];
    String url=classLinkResolver.getURLFor(entry);
    if (url != null) {
      return url;
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public String getURLFor(Entry entry){
  for (int i=0; i < resolvers.length; i++) {
    ClassLinkResolver classLinkResolver=resolvers[i];
    String url=classLinkResolver.getURLFor(entry);
    if (url != null) {
      return url;
    }
  }
  return null;
}
Program: 3101
Project: 3101
Buggy source:
static void sendMessage(CommandSender player,String s,boolean isPublic){
  if (player != null) {
    player.sendMessage(BetterShop.config.getString("String_Node_Str") + s);
    if (isPublic) {
      broadcastMessage(player,s,false);
    }
  }
}

Fixed version (ground truth):
static void sendMessage(CommandSender player,String s,boolean isPublic){
  if (player != null) {
    if (isPublic) {
      broadcastMessage(player,s);
    }
 else {
      player.sendMessage(BetterShop.config.getString("String_Node_Str") + s);
    }
  }
}
Program: 3104
Project: 3104
Buggy source:
public boolean load(CommandSender player){
  if (!BSutils.hasPermission(player,"String_Node_Str",true)) {
    return true;
  }
  PriceList.reload();
  BSutils.sendMessage(player,pricefilename + "String_Node_Str");
  BetterShop.configfile.load();
  BSutils.sendMessage(player,"String_Node_Str");
  return true;
}

Fixed version (ground truth):
public boolean load(CommandSender player){
  if (!BSutils.hasPermission(player,"String_Node_Str",true)) {
    return true;
  }
  BetterShop.configfile.load();
  BSutils.sendMessage(player,"String_Node_Str");
  if (PriceList.reload())   BSutils.sendMessage(player,"String_Node_Str");
 else   BSutils.sendMessage(player,"String_Node_Str");
  return true;
}
Program: 3105
Project: 3105
Buggy source:
public BSCommand(BSConfig config){
  if (config.useMySQL()) {
    PriceList=new BSPriceList(config.sql_database,config.sql_tableName,config.sql_username,config.sql_password,config.sql_hostName,config.sql_portNum);
    PriceList.pagesize=config.pagesize;
  }
 else {
    PriceList=new BSPriceList(pluginFolder,pricefilename);
  }
}

Fixed version (ground truth):
public BSCommand(BSConfig config){
  if (config.useMySQL()) {
    PriceList=new BSPriceList(config.sql_database,config.sql_tableName,config.sql_username,config.sql_password,config.sql_hostName,config.sql_portNum);
  }
 else {
    PriceList=new BSPriceList(pluginFolder,pricefilename);
  }
  PriceList.pagesize=config.pagesize;
}
Program: 3106
Project: 3106
Buggy source:
public boolean remove(CommandSender player,String[] s){
  if ((!BSutils.hasPermission(player,"String_Node_Str",true))) {
    return true;
  }
  if (s.length != 1) {
    return false;
  }
 else {
    try {
      PriceList.remove(s[0]);
      BSutils.sendMessage(player,String.format(BetterShop.configfile.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str"),s[0]));
    }
 catch (    Exception e) {
      BSutils.sendMessage(player,String.format(BetterShop.configfile.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str"),s[0]));
    }
    return true;
  }
}

Fixed version (ground truth):
public boolean remove(CommandSender player,String[] s){
  if ((!BSutils.hasPermission(player,"String_Node_Str",true))) {
    return true;
  }
  if (s.length != 1) {
    return false;
  }
 else {
    try {
      String itemName=itemDb.getName(itemDb.get(s[0]));
      PriceList.remove(itemName);
      BSutils.sendMessage(player,String.format(BetterShop.configfile.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str"),itemName));
    }
 catch (    Exception e) {
      BSutils.sendMessage(player,String.format(BetterShop.configfile.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str"),s[0]));
    }
    return true;
  }
}
Program: 3107
Project: 3107
Buggy source:
public void remove(String s) throws Exception {
  MaterialData matdat=itemDb.get(s);
  if (isMySQL) {
    MySQLPriceList.RemoveItem(s);
  }
 else {
    if (NameMap.containsKey(matdat.getItemTypeId() + (double)matdat.getData() / 100)) {
      BuyMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
      SellMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
      NameMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
    }
    save();
  }
}

Fixed version (ground truth):
public boolean remove(double i){
  try {
    MaterialData matdat=itemDb.get(i);
    if (isMySQL) {
      MySQLPriceList.RemoveItem(itemDb.getName(matdat));
    }
 else {
      if (NameMap.containsKey(matdat.getItemTypeId() + (double)matdat.getData() / 100)) {
        BuyMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
        SellMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
        NameMap.remove(matdat.getItemTypeId() + (double)matdat.getData() / 100);
      }
      save();
    }
  }
 catch (  Exception ex) {
    return false;
  }
  return true;
}
Program: 3108
Project: 3108
Buggy source:
public void reload(){
  if (isMySQL) {
    load(PLfolder,fileName);
  }
 else {
    load(sql_database,sql_tableName,sql_username,sql_password,sql_hostName,sql_portNum);
  }
}

Fixed version (ground truth):
public boolean reload(){
  if (isMySQL) {
    return load(sql_database,sql_tableName,sql_username,sql_password,sql_hostName,sql_portNum);
  }
 else {
    return load(PLfolder,fileName);
  }
}
Program: 3111
Project: 3111
Buggy source:
public Action nextAction(Percept percept){
  makePerceptSentences(percept);
  Action action=makeActionQuery();
  System.out.println("String_Node_Str" + action);
  return action;
}

Fixed version (ground truth):
public Action nextAction(Percept percept){
  makePerceptSentences(percept);
  Action action=makeActionQuery();
  System.out.println("String_Node_Str" + action + "String_Node_Str"+ pos);
  return action;
}
Program: 3112
Project: 3112
Buggy source:
private boolean ttCheckAll(Sentence alpha,List<Symbol> symbols,Model model){
  if (symbols.isEmpty()) {
    if (isTrue(model))     return alpha.isTrue(model);
 else     return true;
  }
 else {
    Symbol P=symbols.get(0);
    List<Symbol> rest=symbols.subList(1,symbols.size());
    boolean result=false;
    model.set(P,true);
    if (ttCheckAll(alpha,rest,model)) {
      model.set(P,false);
      if (ttCheckAll(alpha,rest,model)) {
        result=true;
      }
    }
    model.unset(P);
    return result;
  }
}

Fixed version (ground truth):
private boolean ttCheckAll(Sentence alpha,List<Symbol> symbols,Model model){
  if (symbols.isEmpty()) {
    if (isTrue(model)) {
      return alpha.isTrue(model);
    }
 else     return true;
  }
 else {
    Symbol P=symbols.get(0);
    List<Symbol> rest=symbols.subList(1,symbols.size());
    boolean result=false;
    model.set(P,true);
    if (ttCheckAll(alpha,rest,model)) {
      model.set(P,false);
      if (ttCheckAll(alpha,rest,model)) {
        result=true;
      }
    }
    model.unset(P);
    return result;
  }
}
Program: 3113
Project: 3113
Buggy source:
WumpusWorld(){
  map=new WumpusSquare[SIZE][SIZE];
  int wumpusPos=rand.nextInt(SIZE * SIZE - 1);
  int goldPos=rand.nextInt(SIZE * SIZE);
  for (int i=0; i < SIZE; i++) {
    for (int j=0; j < SIZE; j++) {
      map[i][j]=new WumpusSquare();
      WumpusSquare current=map[i][j];
      if (i > 0 && j > 0) {
        if (wumpusPos == 0) {
          current.hasWumpus=true;
        }
        wumpusPos--;
      }
      if (goldPos == 0) {
        current.hasGold=true;
      }
      goldPos--;
      if (rand.nextInt(5) == 0) {
        current.hasPit=true;
      }
    }
  }
}

Fixed version (ground truth):
WumpusWorld(){
  map=new WumpusSquare[SIZE][SIZE];
  int wumpusPos=rand.nextInt(SIZE * SIZE - 1);
  int goldPos=rand.nextInt(SIZE * SIZE);
  for (int i=0; i < SIZE - 1; i++) {
    for (int j=0; j < SIZE - 1; j++) {
      map[i][j]=new WumpusSquare();
      WumpusSquare current=map[i][j];
      if (i > 0 && j > 0) {
        if (wumpusPos == 0) {
          current.hasWumpus=true;
        }
        wumpusPos--;
      }
      if (goldPos == 0) {
        current.hasGold=true;
      }
      goldPos--;
      if (rand.nextInt(5) == 0) {
        current.hasPit=true;
      }
    }
  }
}
Program: 3114
Project: 3114
Buggy source:
private Action makeActionQuery(){
  List<GridPos> neighbors=WumpusWorld.neighbors(pos);
  for (  GridPos npos : neighbors) {
    if (kb.query(new Not("String_Node_Str" + npos))) {
      return move(npos);
    }
  }
  return Action.Up;
}

Fixed version (ground truth):
private Action makeActionQuery(){
  List<GridPos> neighbors=WumpusWorld.neighbors(pos);
  Collections.shuffle(neighbors);
  for (  GridPos npos : neighbors) {
    if (kb.query(new Not("String_Node_Str" + npos))) {
      return move(npos);
    }
  }
  return Action.Up;
}
Program: 3116
Project: 3116
Buggy source:
/** 
 * @throws MavenExecutionRequestPopulationException 
 * @see org.jvnet.hudson.maven3.MavenExecutionRequestBuilder.MavenExecutionRequestsBuilder#getMavenExecutionRequest(java.lang.String[])
 */
public MavenExecutionRequest getMavenExecutionRequest(String[] args,PrintStream printStream) throws MavenExecutionRequestPopulationException, SettingsBuildingException, MavenExecutionRequestsBuilderException {
  try {
    CliRequest cliRequest=new CliRequest(args,null);
    initialize(cliRequest,printStream);
    cli(cliRequest);
    logging(cliRequest);
    commands(cliRequest);
    properties(cliRequest);
    settings(cliRequest);
    populateRequest(cliRequest);
    encryption(cliRequest);
    MavenExecutionRequest request=executionRequestPopulator.populateDefaults(cliRequest.request);
    if (request.getProjectBuildingRequest().getRepositorySession() == null) {
      MavenRepositorySystemSession session=new MavenRepositorySystemSession();
      if (session.getLocalRepositoryManager() == null) {
        session.setLocalRepositoryManager(new EnhancedLocalRepositoryManager(request.getLocalRepositoryPath()));
      }
      request.getProjectBuildingRequest().setRepositorySession(session);
    }
    return request;
  }
 catch (  Exception e) {
    throw new MavenExecutionRequestsBuilderException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
/** 
 * @throws MavenExecutionRequestPopulationException 
 * @see org.jvnet.hudson.maven3.MavenExecutionRequestBuilder.MavenExecutionRequestsBuilder#getMavenExecutionRequest(java.lang.String[])
 */
public MavenExecutionRequest getMavenExecutionRequest(String[] args,PrintStream printStream) throws MavenExecutionRequestPopulationException, SettingsBuildingException, MavenExecutionRequestsBuilderException {
  try {
    CliRequest cliRequest=new CliRequest(args,null);
    initialize(cliRequest,printStream);
    cli(cliRequest);
    logging(cliRequest);
    commands(cliRequest);
    properties(cliRequest);
    settings(cliRequest);
    populateRequest(cliRequest);
    encryption(cliRequest);
    MavenExecutionRequest request=executionRequestPopulator.populateDefaults(cliRequest.request);
    return request;
  }
 catch (  Exception e) {
    throw new MavenExecutionRequestsBuilderException(e.getMessage(),e);
  }
}
Program: 3117
Project: 3117
Buggy source:
static void populateProperties(CommandLine commandLine,Properties systemProperties,Properties userProperties){
  EnvironmentUtils.addEnvVars(systemProperties);
  if (commandLine.hasOption(CLIManager.SET_SYSTEM_PROPERTY)) {
    String[] defStrs=commandLine.getOptionValues(CLIManager.SET_SYSTEM_PROPERTY);
    if (defStrs != null) {
      for (int i=0; i < defStrs.length; ++i) {
        setCliProperty(defStrs[i],userProperties);
      }
    }
  }
  systemProperties.putAll(System.getProperties());
  systemProperties.put("String_Node_Str",new SimpleDateFormat(DEFAULT_BUILD_TIMESTAMP_FORMAT).format(new Date()));
}

Fixed version (ground truth):
static void populateProperties(CommandLine commandLine,Properties systemProperties,Properties userProperties){
  EnvironmentUtils.addEnvVars(systemProperties);
  if (commandLine.hasOption(CLIManager.SET_SYSTEM_PROPERTY)) {
    String[] defStrs=commandLine.getOptionValues(CLIManager.SET_SYSTEM_PROPERTY);
    if (defStrs != null) {
      for (int i=0; i < defStrs.length; ++i) {
        setCliProperty(defStrs[i],userProperties);
      }
    }
  }
  systemProperties.putAll(System.getProperties());
}
Program: 3118
Project: 3118
Buggy source:
@Override public void disconnected(Stream stream) throws SkypeException {
  if (stream == Stream.this) {
synchronized (wait) {
      wait.notify();
    }
  }
}

Fixed version (ground truth):
@Override public void disconnected(Stream stream) throws SkypeException {
  if (stream == Stream.this) {
    future.cancel(true);
  }
}
Program: 3120
Project: 3120
Buggy source:
/** 
 * Send a Skype command to the Skype client and wait for the reply, using an ID.
 * @param command The command to send.
 * @param responseHeader The expected reply header.
 * @return The reply.
 * @throws ConnectorException thrown when the connection to the Skype client has gone bad.
 */
public final String executeWithId(final String command,final String responseHeader) throws ConnectorException {
  ConnectorUtils.checkNotNull("String_Node_Str",command);
  ConnectorUtils.checkNotNull("String_Node_Str",responseHeader);
  String header="String_Node_Str" + (_commandCount++) + "String_Node_Str";
  String response=execute(header + command,new String[]{header + responseHeader,header + "String_Node_Str"},true);
  return response.substring(header.length());
}

Fixed version (ground truth):
/** 
 * Send a Skype command to the Skype client and wait for the reply, using an ID.
 * @param command The command to send.
 * @param responseHeader The expected reply header.
 * @return The reply.
 * @throws ConnectorException thrown when the connection to the Skype client has gone bad.
 */
public final String executeWithId(final String command,final String responseHeader) throws ConnectorException {
  ConnectorUtils.checkNotNull("String_Node_Str",command);
  ConnectorUtils.checkNotNull("String_Node_Str",responseHeader);
  String header="String_Node_Str" + _commandCount.getAndIncrement() + "String_Node_Str";
  String response=execute(header + command,new String[]{header + responseHeader,header + "String_Node_Str"},true);
  return response.substring(header.length());
}
Program: 3122
Project: 3122
Buggy source:
public void messageReceived(ConnectorMessageEvent event){
  String message=event.getMessage();
  for (  String responseHeader : responseHeaders) {
    if (message.startsWith(responseHeader) || message.startsWith("String_Node_Str")) {
      responses.add(message);
      return;
    }
  }
}

Fixed version (ground truth):
public void messageReceived(ConnectorMessageEvent event){
  String message=event.getMessage();
  if (responseChecker.isTarget(message) || message.startsWith("String_Node_Str")) {
    responses.add(message);
  }
}
Program: 3123
Project: 3123
Buggy source:
/** 
 * Return the status of this connector instance.
 * @return status.
 */
public final Status getStatus(){
  return _status;
}

Fixed version (ground truth):
/** 
 * Gets the status of this connector.
 * @return status the status of this connector
 * @see #setStatus(com.skype.connector.Connector.Status)
 */
public final synchronized Status getStatus(){
  return _status;
}
Program: 3124
Project: 3124
Buggy source:
/** 
 * Fire a status changed event.
 * @param listenerList the event listener list
 * @param status the new status.
 */
private void fireStatusChanged(final ConnectorListener[] listeners,final Status status){
  ConnectorStatusEvent event=new ConnectorStatusEvent(this,status);
  for (int i=listeners.length - 1; 0 <= i; i--) {
    listeners[i].statusChanged(event);
  }
}

Fixed version (ground truth):
/** 
 * Sends a status change event to the specified listeners.
 * @param listeners the event listeners
 * @param newStatus the new status
 */
private void fireStatusChanged(final ConnectorListener[] listeners,final Status newStatus){
  ConnectorStatusEvent event=new ConnectorStatusEvent(this,newStatus);
  for (int i=listeners.length - 1; 0 <= i; i--) {
    listeners[i].statusChanged(event);
  }
}
Program: 3125
Project: 3125
Buggy source:
private ConnectorListener[] toConnectorListenerArray(List<ConnectorListener> listeners){
  return listeners.toArray(new ConnectorListener[0]);
}

Fixed version (ground truth):
/** 
 * Converts the specified listener list to an listener array.
 * @param listeners the listener list
 * @return an listener array
 */
private ConnectorListener[] toConnectorListenerArray(List<ConnectorListener> listeners){
  return listeners.toArray(new ConnectorListener[0]);
}
Program: 3126
Project: 3126
Buggy source:
/** 
 * Sets the application name used to get the access grant of Skype API. <p> The specified name is what the User will see in the Skype API Allow/Deny dialog. </p>
 * @param newApplicationName the application name
 * @throws NullPointerException if the specified new debug out is null
 * @see #getApplicationName()
 */
public final synchronized void setApplicationName(final String newApplicationName){
  ConnectorUtils.checkNotNull("String_Node_Str",newApplicationName);
  _applicationName=newApplicationName;
}

Fixed version (ground truth):
/** 
 * Sets the application name used to get the access grant of Skype API. The specified name is what the User will see in the Skype API Allow/Deny dialog.
 * @param newApplicationName the application name
 * @throws NullPointerException if the specified application name is null
 * @see #getApplicationName()
 */
public final synchronized void setApplicationName(final String newApplicationName){
  ConnectorUtils.checkNotNull("String_Node_Str",newApplicationName);
  _applicationName=newApplicationName;
}
Program: 3127
Project: 3127
Buggy source:
/** 
 * Set the status of this connector instance.
 * @param newValue The new status.
 */
protected final void setStatus(final Status newValue){
  ConnectorUtils.checkNotNull("String_Node_Str",newValue);
  _status=newValue;
  fireStatusChanged(newValue);
}

Fixed version (ground truth):
/** 
 * Sets the status of this connector. After setting, an status changed event will be sent to the all listeners.
 * @param newValue the new status
 * @throws NullPointerException if the specified status is null
 * @see #getStatus()
 */
protected final synchronized void setStatus(final Status newStatus){
  ConnectorUtils.checkNotNull("String_Node_Str",newStatus);
  _status=newStatus;
  fireStatusChanged(newStatus);
}
Program: 3128
Project: 3128
Buggy source:
public void run(){
  fireMessageEvent(_asyncListeners,message,isReceived);
}

Fixed version (ground truth):
public void run(){
  fireMessageEvent(toConnectorListenerArray(_asyncListeners),message,isReceived);
}
Program: 3129
Project: 3129
Buggy source:
/** 
 * Remove a listener from the collection of listeners. The listener will no longer be triggered when a event happens.
 * @param listener The listener to remove.
 */
public final void removeConnectorListener(final ConnectorListener listener){
  ConnectorUtils.checkNotNull("String_Node_Str",listener);
{
    List<ConnectorListener> listeners=new ArrayList(Arrays.asList(_syncListeners));
    if (listeners.remove(listener)) {
      _syncListeners=listeners.toArray(new ConnectorListener[0]);
    }
  }
{
    List<ConnectorListener> listeners=new ArrayList(Arrays.asList(_asyncListeners));
    if (listeners.remove(listener)) {
      _asyncListeners=listeners.toArray(new ConnectorListener[0]);
    }
  }
}

Fixed version (ground truth):
/** 
 * Remove a listener from the collection of listeners. The listener will no longer be triggered when a event happens.
 * @param listener The listener to remove.
 */
public final void removeConnectorListener(final ConnectorListener listener){
  ConnectorUtils.checkNotNull("String_Node_Str",listener);
  _syncListeners.remove(listener);
  _asyncListeners.remove(listener);
}
Program: 3130
Project: 3130
Buggy source:
/** 
 * Add a listener to this connector if the connector is attached.
 * @param listener The listener to add.
 * @param checkAttached if true check if connector is attached.
 * @param isSynchronous if true the listener is handled synchronously.
 * @throws ConnectorException thrown when the connection to the Skype client has gone bad.
 */
public final void addConnectorListener(final ConnectorListener listener,final boolean checkAttached,final boolean isSynchronous) throws ConnectorException {
  ConnectorUtils.checkNotNull("String_Node_Str",listener);
  if (isSynchronous) {
    List<ConnectorListener> listeners=new ArrayList(Arrays.asList(_syncListeners));
    if (listeners.add(listener)) {
      _syncListeners=listeners.toArray(new ConnectorListener[0]);
    }
  }
 else {
    List<ConnectorListener> listeners=new ArrayList(Arrays.asList(_asyncListeners));
    if (listeners.add(listener)) {
      _asyncListeners=listeners.toArray(new ConnectorListener[0]);
    }
  }
  if (checkAttached) {
    assureAttached();
  }
}

Fixed version (ground truth):
/** 
 * Add a listener to this connector if the connector is attached.
 * @param listener The listener to add.
 * @param checkAttached if true check if connector is attached.
 * @param isSynchronous if true the listener is handled synchronously.
 * @throws ConnectorException thrown when the connection to the Skype client has gone bad.
 */
public final void addConnectorListener(final ConnectorListener listener,final boolean checkAttached,final boolean isSynchronous) throws ConnectorException {
  ConnectorUtils.checkNotNull("String_Node_Str",listener);
  if (isSynchronous) {
    _syncListeners.add(listener);
  }
 else {
    _asyncListeners.add(listener);
  }
  if (checkAttached) {
    assureAttached();
  }
}
Program: 3131
Project: 3131
Buggy source:
/** 
 * Fire a message event.
 * @param listenerList the event listener list
 * @param message the message that triggered the event.
 * @param isReceived the message is a received type or not.
 */
private void fireMessageEvent(final ConnectorListener[] listeners,final String message,final boolean isReceived){
  ConnectorMessageEvent event=new ConnectorMessageEvent(this,message);
  boolean fireMessageReceived=isReceived;
  for (int i=listeners.length - 1; 0 <= i; i--) {
    if (fireMessageReceived) {
      listeners[i].messageReceived(event);
    }
 else {
      listeners[i].messageSent(event);
    }
  }
}

Fixed version (ground truth):
/** 
 * Fire a message event.
 * @param listenerList the event listener list
 * @param message the message that triggered the event.
 * @param isReceived the message is a received type or not.
 */
private void fireMessageEvent(final ConnectorListener[] listeners,final String message,final boolean isReceived){
  ConnectorMessageEvent event=new ConnectorMessageEvent(this,message);
  for (int i=listeners.length - 1; 0 <= i; i--) {
    if (isReceived) {
      listeners[i].messageReceived(event);
    }
 else {
      listeners[i].messageSent(event);
    }
  }
}
Program: 3132
Project: 3132
Buggy source:
/** 
 * Constructor with the current status.
 * @param newStatus Current status.
 */
NotAttachedException(Status newStatus){
  this.status=newStatus;
}

Fixed version (ground truth):
NotAttachedException(Status newStatus,Throwable cause){
  this(newStatus);
  initCause(cause);
}
Program: 3133
Project: 3133
Buggy source:
private ConnectorListener[] toConnectorListenerArray(List<ConnectorListener> listeners){
  return listeners.toArray(new ConnectorListener[listeners.size()]);
}

Fixed version (ground truth):
private ConnectorListener[] toConnectorListenerArray(List<ConnectorListener> listeners){
  return listeners.toArray(new ConnectorListener[0]);
}
Program: 3134
Project: 3134
Buggy source:
/** 
 * Sets the debug output stream.
 * @param newDebugOut the new debug output streamthrows NullPointerException if <code>debugOut</code> is null.
 * @see #setDebugOut(PrintWriter)
 * @see #getDebugOut()
 */
public final void setDebugOut(final PrintStream newDebugOut){
  ConnectorUtils.checkNotNull("String_Node_Str",newDebugOut);
  setDebugOut(new PrintWriter(newDebugOut,true));
}

Fixed version (ground truth):
/** 
 * Sets the debug output stream.
 * @param newDebugOut the new debug output stream
 * @throws NullPointerException if the specified new debug out is null
 * @see #setDebugOut(PrintWriter)
 * @see #getDebugOut()
 */
public final synchronized void setDebugOut(final PrintStream newDebugOut){
  ConnectorUtils.checkNotNull("String_Node_Str",newDebugOut);
  setDebugOut(new PrintWriter(newDebugOut,true));
}
Program: 3135
Project: 3135
Buggy source:
/** 
 * Enable or disable debug printing for more information.
 * @param on if true debug output will be written to System.out
 * @throws ConnectorException thrown when connection to Skype Client has gone bad.
 */
public final void setDebug(final boolean on) throws ConnectorException {
synchronized (_debugFieldMutex) {
    if (on) {
      if (_debugListener == null) {
        _debugListener=new AbstractConnectorListener(){
          @Override public void messageReceived(          final ConnectorMessageEvent event){
            getDebugOut().println("String_Node_Str" + event.getMessage());
          }
          @Override public void messageSent(          final ConnectorMessageEvent event){
            getDebugOut().println("String_Node_Str" + event.getMessage());
          }
        }
;
        addConnectorListener(_debugListener,true,true);
      }
    }
 else {
      if (_debugListener != null) {
        removeConnectorListener(_debugListener);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Enable or disable debug printing for more information.
 * @param on if true debug output will be written to System.out
 * @throws ConnectorException thrown when connection to Skype Client has gone bad.
 */
public final synchronized void setDebug(final boolean on) throws ConnectorException {
  if (on) {
    if (_debugListener == null) {
      _debugListener=new AbstractConnectorListener(){
        @Override public void messageReceived(        final ConnectorMessageEvent event){
          getDebugOut().println("String_Node_Str" + event.getMessage());
        }
        @Override public void messageSent(        final ConnectorMessageEvent event){
          getDebugOut().println("String_Node_Str" + event.getMessage());
        }
      }
;
      addConnectorListener(_debugListener,true,true);
    }
  }
 else {
    if (_debugListener != null) {
      removeConnectorListener(_debugListener);
      _debugListener=null;
    }
  }
}
Program: 3136
Project: 3136
Buggy source:
/** 
 * Gets the debug output stream.
 * @return the current debug output stream
 * @see #setDebugOut(PrintWriter)
 * @see #setDebugOut(PrintStream)
 */
public final PrintWriter getDebugOut(){
  return _debugOut;
}

Fixed version (ground truth):
/** 
 * Gets the debug output stream.
 * @return the current debug output stream
 * @see #setDebugOut(PrintWriter)
 * @see #setDebugOut(PrintStream)
 */
public final synchronized PrintWriter getDebugOut(){
  return _debugOut;
}
Program: 3137
Project: 3137
Buggy source:
/** 
 * Return the current application name.
 * @return applicationName.
 */
public final String getApplicationName(){
  return _applicationName;
}

Fixed version (ground truth):
/** 
 * Gets the application name used to get the access grant of Skype API.
 * @return the application name
 * @see #setApplicationName(String)
 */
public final synchronized String getApplicationName(){
  return _applicationName;
}
Program: 3138
Project: 3138
Buggy source:
/** 
 * Set the application name for this application. This is what the User will see in the Allow/Deny dialog.
 * @param newApplicationName Name of this application.
 */
public final void setApplicationName(final String newApplicationName){
  ConnectorUtils.checkNotNull("String_Node_Str",newApplicationName);
  _applicationName=newApplicationName;
}

Fixed version (ground truth):
/** 
 * Sets the application name used to get the access grant of Skype API. <p> The specified name is what the User will see in the Skype API Allow/Deny dialog. </p>
 * @param newApplicationName the application name
 * @throws NullPointerException if the specified new debug out is null
 * @see #getApplicationName()
 */
public final synchronized void setApplicationName(final String newApplicationName){
  ConnectorUtils.checkNotNull("String_Node_Str",newApplicationName);
  _applicationName=newApplicationName;
}
Program: 3139
Project: 3139
Buggy source:
public void attachResponse(int attachResponseCode){
  SkypeFramework.removeSkypeFrameworkListener(this);
switch (attachResponseCode) {
case 0:
    setStatus(Status.REFUSED);
  latch.countDown();
break;
case 1:
setStatus(Status.ATTACHED);
latch.countDown();
break;
default :
throw new IllegalStateException("String_Node_Str");
}
}

Fixed version (ground truth):
@Override public void attachResponse(int attachResponseCode){
  SkypeFramework.removeSkypeFrameworkListener(this);
switch (attachResponseCode) {
case 0:
    setStatus(Status.REFUSED);
  latch.countDown();
break;
case 1:
setStatus(Status.ATTACHED);
latch.countDown();
break;
default :
throw new IllegalStateException("String_Node_Str");
}
}
Program: 3140
Project: 3140
Buggy source:
@Override public void becameAvailable(){
  setStatus(Status.API_AVAILABLE);
}

Fixed version (ground truth):
@Override public void becameAvailable(){
}
Program: 3141
Project: 3141
Buggy source:
/** 
 * Connects to Skype client.
 * @param timeout the maximum time in milliseconds to connect.
 * @return Status the status after connecting.
 * @throws ConnectorException when connection can not be established.
 */
protected Status connect(int timeout) throws ConnectorException {
  if (!SkypeFramework.isRunning()) {
    setStatus(Status.NOT_RUNNING);
    return getStatus();
  }
  if (!SkypeFramework.isAvailable()) {
    setStatus(Status.NOT_AVAILABLE);
    return getStatus();
  }
  try {
    final CountDownLatch latch=new CountDownLatch(1);
    SkypeFrameworkListener listener=new AbstractSkypeFrameworkListener(){
      public void attachResponse(      int attachResponseCode){
        SkypeFramework.removeSkypeFrameworkListener(this);
switch (attachResponseCode) {
case 0:
          setStatus(Status.REFUSED);
        latch.countDown();
      break;
case 1:
    setStatus(Status.ATTACHED);
  latch.countDown();
break;
default :
throw new IllegalStateException("String_Node_Str");
}
}
}
;
setStatus(Status.PENDING_AUTHORIZATION);
SkypeFramework.addSkypeFrameworkListener(listener);
SkypeFramework.connect();
latch.await(timeout,TimeUnit.MILLISECONDS);
return getStatus();
}
 catch (InterruptedException e) {
throw new ConnectorException("String_Node_Str",e);
}
}

Fixed version (ground truth):
/** 
 * Connects to Skype client.
 * @param timeout the maximum time in milliseconds to connect.
 * @return Status the status after connecting.
 * @throws ConnectorException when connection can not be established.
 */
protected Status connect(int timeout) throws ConnectorException {
  if (!SkypeFramework.isRunning()) {
    setStatus(Status.NOT_RUNNING);
    return getStatus();
  }
  try {
    final CountDownLatch latch=new CountDownLatch(1);
    SkypeFrameworkListener listener=new AbstractSkypeFrameworkListener(){
      @Override public void attachResponse(      int attachResponseCode){
        SkypeFramework.removeSkypeFrameworkListener(this);
switch (attachResponseCode) {
case 0:
          setStatus(Status.REFUSED);
        latch.countDown();
      break;
case 1:
    setStatus(Status.ATTACHED);
  latch.countDown();
break;
default :
throw new IllegalStateException("String_Node_Str");
}
}
}
;
setStatus(Status.PENDING_AUTHORIZATION);
SkypeFramework.addSkypeFrameworkListener(listener);
SkypeFramework.connect();
latch.await();
return getStatus();
}
 catch (InterruptedException e) {
throw new ConnectorException("String_Node_Str",e);
}
}
Program: 3142
Project: 3142
Buggy source:
/** 
 * Search users by a part of id or e-mail.
 * @param keword a part of id or e-mail
 * @return users
 * @throws SkypeException when connection has gone bad or ERROR reply.
 */
public static User[] searchUsers(String keyword) throws SkypeException {
  int oldTimeout=Connector.getInstance().getCommandTimeout();
  try {
    Connector.getInstance().setCommandTimeout(0);
    String command="String_Node_Str" + keyword;
    String responseHeader="String_Node_Str";
    String response=Connector.getInstance().executeWithId(command,responseHeader);
    String data=response.substring(responseHeader.length());
    String[] ids=Utils.convertToArray(data);
    User[] users=new User[ids.length];
    for (int i=0; i < ids.length; ++i) {
      users[i]=User.getInstance(ids[i]);
    }
    return users;
  }
 catch (  ConnectorException ex) {
    Utils.convertToSkypeException(ex);
    return null;
  }
 finally {
    Connector.getInstance().setCommandTimeout(oldTimeout);
  }
}

Fixed version (ground truth):
/** 
 * Search users by a part of id or e-mail.
 * @param keword a part of id or e-mail
 * @return users
 * @throws SkypeException when connection has gone bad or ERROR reply.
 */
public static User[] searchUsers(String keyword) throws SkypeException {
  String command="String_Node_Str" + keyword;
  String responseHeader="String_Node_Str";
  String response;
  try {
    response=Connector.getInstance().executeWithId(command,responseHeader);
  }
 catch (  ConnectorException ex) {
    Utils.convertToSkypeException(ex);
    return null;
  }
  Utils.checkError(response);
  String data=response.substring(responseHeader.length());
  String[] ids=Utils.convertToArray(data);
  User[] users=new User[ids.length];
  for (int i=0; i < ids.length; ++i) {
    users[i]=User.getInstance(ids[i]);
  }
  return users;
}
Program: 3143
Project: 3143
Buggy source:
/** 
 * Sets the Skype silent mode.
 * @param on if true turn on the silent mode.
 * @return true if the user responds ok.
 * @throws SkypeException when connection has gone bad or ERROR reply.
 * @since 2.6.0.84
 */
public static boolean setSilentMode(boolean on) throws SkypeException {
  try {
    String command="String_Node_Str" + (on ? "String_Node_Str" : "String_Node_Str");
    String responseHeader="String_Node_Str";
    String response=Connector.getInstance().executeWithoutTimeout(command,responseHeader);
    Utils.checkError(response);
    String responseValue=response.substring(responseHeader.length());
    return "String_Node_Str".equals(responseValue);
  }
 catch (  ConnectorException e) {
    Utils.convertToSkypeException(e);
    return false;
  }
}

Fixed version (ground truth):
/** 
 * Sets the Skype silent mode.
 * @param on if true turn on the silent mode.
 * @return true if the user responds ok.
 * @throws SkypeException when connection has gone bad or ERROR reply.
 * @since 2.6.0.84
 */
public static boolean setSilentMode(boolean on) throws SkypeException {
  try {
    String command="String_Node_Str" + (on ? "String_Node_Str" : "String_Node_Str");
    String responseHeader="String_Node_Str";
    String response=Connector.getInstance().execute(command,responseHeader);
    Utils.checkError(response);
    String responseValue=response.substring(responseHeader.length());
    return "String_Node_Str".equals(responseValue);
  }
 catch (  ConnectorException e) {
    Utils.convertToSkypeException(e);
    return false;
  }
}
Program: 3145
Project: 3145
Buggy source:
public void messageReceived(ConnectorMessageEvent event){
  String message=event.getMessage();
  for (  String responseHeader : responseHeaders) {
    if (message.startsWith(responseHeader)) {
      response[0]=message;
synchronized (wait) {
        wait.notify();
      }
      return;
    }
  }
}

Fixed version (ground truth):
public void messageReceived(ConnectorMessageEvent event){
  String message=event.getMessage();
  for (  String responseHeader : responseHeaders) {
    if (message.startsWith(responseHeader) || message.startsWith("String_Node_Str")) {
      responses.add(message);
      return;
    }
  }
}
Program: 3146
Project: 3146
Buggy source:
/** 
 * Initializes the AP2AP.
 * @throws SkypeException when connection is gone bad. if connection could not be established.
 */
void initialize() throws SkypeException {
  try {
    String response=Connector.getInstance().execute("String_Node_Str" + name);
    Utils.checkError(response);
    Connector.getInstance().addConnectorListener(dataListener);
    shutdownHookForFinish=new Thread(){
      @Override public void run(){
        try {
          Connector.getInstance().execute("String_Node_Str" + Application.this.getName());
        }
 catch (        ConnectorException e) {
        }
      }
    }
;
    Runtime.getRuntime().addShutdownHook(shutdownHookForFinish);
  }
 catch (  ConnectorException e) {
    Utils.convertToSkypeException(e);
  }
}

Fixed version (ground truth):
/** 
 * Initializes the AP2AP.
 * @throws SkypeException when connection is gone bad. if connection could not be established.
 */
void initialize() throws SkypeException {
  try {
    String response=Connector.getInstance().execute("String_Node_Str" + name);
    Utils.checkError(response);
    Connector.getInstance().addConnectorListener(dataListener,true,true);
    shutdownHookForFinish=new Thread(){
      @Override public void run(){
        try {
          Connector.getInstance().execute("String_Node_Str" + Application.this.getName());
        }
 catch (        ConnectorException e) {
        }
      }
    }
;
    Runtime.getRuntime().addShutdownHook(shutdownHookForFinish);
  }
 catch (  ConnectorException e) {
    Utils.convertToSkypeException(e);
  }
}
Program: 3147
Project: 3147
Buggy source:
public static void main(String[] args) throws Exception {
  Skype.setDebug(true);
  Skype.setDeamon(false);
  String name=A2AClient.class.getName();
  Stream[] streams=connectToServer(name);
  for (int i=0; i < 25; i++) {
    for (    Stream stream : streams) {
      stream.write(createData(i,(char)('a' + i)));
    }
  }
  for (  Stream stream : streams) {
    stream.disconnect();
  }
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  Skype.setDebug(true);
  Skype.setDeamon(false);
  String name=A2AClient.class.getName();
  Stream[] streams=connectToServer(name);
  for (int i=0; i < 26; i++) {
    for (    Stream stream : streams) {
      stream.write(createData(i + 1,(char)('a' + i)));
    }
  }
  Thread.sleep(5000);
  for (  Stream stream : streams) {
    stream.disconnect();
  }
}
Program: 3148
Project: 3148
Buggy source:
@Override public void connected(Stream stream) throws SkypeException {
  System.out.println("String_Node_Str" + stream.getId());
  stream.addStreamListener(new StreamAdapter(){
    @Override public void textReceived(    String receivedText) throws SkypeException {
      System.out.println("String_Node_Str" + Integer.toHexString(receivedText.length()));
    }
  }
);
}

Fixed version (ground truth):
@Override public void connected(Stream stream) throws SkypeException {
  System.out.println("String_Node_Str" + stream.getId());
  stream.addStreamListener(new StreamAdapter(){
    @Override public void textReceived(    String receivedText) throws SkypeException {
      System.out.println("String_Node_Str" + receivedText);
    }
  }
);
}
Program: 3149
Project: 3149
Buggy source:
@Override public void textReceived(String receivedText) throws SkypeException {
  System.out.println("String_Node_Str" + Integer.toHexString(receivedText.length()));
}

Fixed version (ground truth):
@Override public void textReceived(String receivedText) throws SkypeException {
  System.out.println("String_Node_Str" + receivedText);
}
Program: 3150
Project: 3150
Buggy source:
public static void main(String[] args) throws Exception {
  Skype.setDebug(true);
  Skype.setDeamon(false);
  Application application=Skype.addApplication(A2AClient.class.getName());
  application.addApplicationListener(new ApplicationAdapter(){
    @Override public void connected(    Stream stream) throws SkypeException {
      System.out.println("String_Node_Str" + stream.getId());
      stream.addStreamListener(new StreamAdapter(){
        @Override public void textReceived(        String receivedText) throws SkypeException {
          System.out.println("String_Node_Str" + Integer.toHexString(receivedText.length()));
        }
      }
);
    }
  }
);
}

Fixed version (ground truth):
public static void main(String[] args) throws Exception {
  Skype.setDebug(true);
  Skype.setDeamon(false);
  Application application=Skype.addApplication(A2AClient.class.getName());
  application.addApplicationListener(new ApplicationAdapter(){
    @Override public void connected(    Stream stream) throws SkypeException {
      System.out.println("String_Node_Str" + stream.getId());
      stream.addStreamListener(new StreamAdapter(){
        @Override public void textReceived(        String receivedText) throws SkypeException {
          System.out.println("String_Node_Str" + receivedText);
        }
      }
);
    }
  }
);
}
Program: 3152
Project: 3152
Buggy source:
/** 
 * Add an AP2AP capable application.
 * @param name The name of the AP2AP application.
 * @return Application object reference.
 * @throws SkypeException when connection has gone bad or ERROR reply.
 */
public static Application addApplication(String name) throws SkypeException {
  return Application.getInstance(name);
}

Fixed version (ground truth):
/** 
 * Add an AP2AP capable application.
 * @param name The name of the AP2AP application.
 * @return Application object reference.
 * @throws SkypeException when connection has gone bad or ERROR reply.
 */
public static Application addApplication(String name) throws SkypeException {
  Utils.checkNotNull("String_Node_Str",name);
  return Application.getInstance(name);
}