nus-yam/ex-repair huggingface dataset:
Program: 41910
Project: 41910
Buggy source:
/** 
 * Only one instance is created for the httpClient for optimization. A PoolingClientConnectionManager is used with the Http client  to be able to reuse connections and execute requests concurrently. A timeout for closing each connection is set so that connections don't leak. A timeout is set for requests to avoid deadlocks.
 * @return the created HttpClient
 */
private HttpClient createHttpClient(boolean isForMedia){
  HttpClient httpClient=new DefaultHttpClient(this.connectionManager);
  HttpParams httpParams=httpClient.getParams();
  if (isForMedia) {
    HttpConnectionParams.setConnectionTimeout(httpParams,this.connectionPolicy.getMediaRequestTimeout() * 1000);
    HttpConnectionParams.setSoTimeout(httpParams,this.connectionPolicy.getMediaRequestTimeout() * 1000);
  }
 else {
    HttpConnectionParams.setConnectionTimeout(httpParams,this.connectionPolicy.getRequestTimeout() * 1000);
    HttpConnectionParams.setSoTimeout(httpParams,this.connectionPolicy.getRequestTimeout() * 1000);
  }
  return httpClient;
}

Fixed version (ground truth):
/** 
 * Only one instance is created for the httpClient for optimization. A PoolingClientConnectionManager is used with the Http client to be able to reuse connections and execute requests concurrently. A timeout for closing each connection is set so that connections don't leak. A timeout is set for requests to avoid deadlocks.
 * @return the created HttpClient
 */
private HttpClient createHttpClient(boolean isForMedia){
  HttpClient httpClient=new DefaultHttpClient(this.connectionManager);
  HttpParams httpParams=httpClient.getParams();
  if (isForMedia) {
    HttpConnectionParams.setConnectionTimeout(httpParams,this.connectionPolicy.getMediaRequestTimeout() * 1000);
    HttpConnectionParams.setSoTimeout(httpParams,this.connectionPolicy.getMediaRequestTimeout() * 1000);
  }
 else {
    HttpConnectionParams.setConnectionTimeout(httpParams,this.connectionPolicy.getRequestTimeout() * 1000);
    HttpConnectionParams.setSoTimeout(httpParams,this.connectionPolicy.getRequestTimeout() * 1000);
  }
  return httpClient;
}
Program: 41911
Project: 41911
Buggy source:
/** 
 * Gets the continuation token to be used for continuing the enumeration.
 * @return the response continuation.
 */
public String getResponseContinuation(){
  return this.responseHeaders.get(HttpConstants.HttpHeaders.CONTINUATION);
}

Fixed version (ground truth):
/** 
 * Gets the continuation token to be used for continuing the enumeration.
 * @return the response continuation.
 */
public String getResponseContinuation(){
  return this.inner.getContinuation();
}
Program: 41912
Project: 41912
Buggy source:
QueryIterable(DocumentClient client,DocumentServiceRequest request,ReadType readType,Class<T> classT){
  this.client=client;
  this.retryPolicy=new ResourceThrottleRetryPolicy(client.getRetryPolicy().getMaxRetryAttemptsOnQuery());
  this.request=request;
  this.readType=readType;
  this.classT=classT;
}

Fixed version (ground truth):
QueryIterable(DocumentClient client,DocumentServiceRequest request,ReadType readType,Class<T> classT){
  this.client=client;
  this.retryPolicy=new ResourceThrottleRetryPolicy(client.getRetryPolicy().getMaxRetryAttemptsOnQuery());
  this.request=request;
  this.readType=readType;
  this.classT=classT;
  if (this.request != null && this.request.getHeaders() != null) {
    String continuationToken=this.request.getHeaders().get(HttpConstants.HttpHeaders.CONTINUATION);
    if (!StringUtils.isBlank(continuationToken)) {
      this.continuation=continuationToken;
    }
  }
}
Program: 41913
Project: 41913
Buggy source:
@Test public void testQueryIterableCrud() throws DocumentClientException {
  DocumentClient client=new DocumentClient(HOST,MASTER_KEY,ConnectionPolicy.GetDefault(),ConsistencyLevel.Session);
  List<Document> documents=client.readDocuments(this.collectionForTest.getSelfLink(),null).getQueryIterable().toList();
  int beforeCreateDocumentsCount=documents.size();
  for (int i=0; i < 20; ++i) {
    Document documentDefinition=new Document("String_Node_Str");
    client.createDocument(this.collectionForTest.getSelfLink(),documentDefinition,null,false);
  }
  FeedOptions fo=new FeedOptions();
  fo.setPageSize(1);
  documents=client.readDocuments(this.collectionForTest.getSelfLink(),null).getQueryIterable().toList();
  Assert.assertEquals(beforeCreateDocumentsCount + 20,documents.size());
}

Fixed version (ground truth):
@Test public void testQueryIterableCrud() throws DocumentClientException {
  DocumentClient client=new DocumentClient(HOST,MASTER_KEY,ConnectionPolicy.GetDefault(),ConsistencyLevel.Session);
  List<Document> documents=client.readDocuments(this.collectionForTest.getSelfLink(),null).getQueryIterable().toList();
  int beforeCreateDocumentsCount=documents.size();
  int noOfDocuments=10;
  for (int i=0; i < noOfDocuments; ++i) {
    Document documentDefinition=new Document("String_Node_Str");
    client.createDocument(this.collectionForTest.getSelfLink(),documentDefinition,null,false);
  }
  int noOfDocumentsPerPage=noOfDocuments / 5;
  FeedOptions fo=new FeedOptions();
  fo.setPageSize(noOfDocumentsPerPage);
  FeedResponse<Document> feedResponse;
  Iterator<Document> iterator;
  int i=0;
  String continuationToken=null;
  List<String> currentPage=new ArrayList<String>();
  List<String> previousPage=new ArrayList<String>();
  do {
    currentPage.clear();
    fo.setRequestContinuation(continuationToken);
    feedResponse=client.readDocuments(this.collectionForTest.getSelfLink(),fo);
    iterator=feedResponse.getQueryIterator();
    i=0;
    while (iterator.hasNext()) {
      i++;
      Document document=iterator.next();
      currentPage.add(document.getId());
      if (i == noOfDocumentsPerPage) {
        break;
      }
    }
    continuationToken=feedResponse.getResponseContinuation();
    for (    String idFromCurrentPage : currentPage) {
      if (previousPage.contains(idFromCurrentPage)) {
        Assert.fail("String_Node_Str" + idFromCurrentPage);
      }
    }
    previousPage.clear();
    previousPage.addAll(currentPage);
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException e) {
    }
  }
 while (continuationToken != null);
  documents=client.readDocuments(this.collectionForTest.getSelfLink(),null).getQueryIterable().toList();
  Assert.assertEquals(beforeCreateDocumentsCount + noOfDocuments,documents.size());
}
Program: 41914
Project: 41914
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.fragment_profile);
  final GridView gridView=(GridView)findViewById(R.id.gridview);
  Intent intent=getIntent();
  String personid=intent.getStringExtra("String_Node_Str");
  final TextView profileName=(TextView)findViewById(R.id.profile_text_1);
  AbelanaClient client=new AbelanaClient();
  client.mFProfile.fProfile(Data.aTok,personid,"String_Node_Str",new Callback<AbelanaClient.Timeline>(){
    @Override public void success(    AbelanaClient.Timeline timeline,    Response response){
      Data.mFollowingProfileUrls=new ArrayList<String>();
      profileName.setText(timeline.entries[0].name + "String_Node_Str");
      if (timeline.entries != null) {
        for (        AbelanaClient.TimelineEntry e : timeline.entries) {
          Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
        }
        gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
      }
    }
    @Override public void failure(    RetrofitError error){
      error.printStackTrace();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.fragment_profile);
  final GridView gridView=(GridView)findViewById(R.id.gridview);
  Intent intent=getIntent();
  String personid=intent.getStringExtra("String_Node_Str");
  final TextView profileName=(TextView)findViewById(R.id.profile_text_1);
  AbelanaClient client=new AbelanaClient();
  client.mFProfile.fProfile(Data.aTok,personid,"String_Node_Str",new Callback<AbelanaClient.Timeline>(){
    @Override public void success(    AbelanaClient.Timeline timeline,    Response response){
      Data.mFollowingProfileUrls=new ArrayList<String>();
      if (timeline.entries != null) {
        profileName.setText(timeline.entries[0].name + "String_Node_Str");
        for (        AbelanaClient.TimelineEntry e : timeline.entries) {
          Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
        }
        gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
      }
    }
    @Override public void failure(    RetrofitError error){
      error.printStackTrace();
    }
  }
);
}
Program: 41915
Project: 41915
Buggy source:
@Override public void success(AbelanaClient.Timeline timeline,Response response){
  Data.mFollowingProfileUrls=new ArrayList<String>();
  profileName.setText(timeline.entries[0].name + "String_Node_Str");
  if (timeline.entries != null) {
    for (    AbelanaClient.TimelineEntry e : timeline.entries) {
      Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
    }
    gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
  }
}

Fixed version (ground truth):
@Override public void success(AbelanaClient.Timeline timeline,Response response){
  Data.mFollowingProfileUrls=new ArrayList<String>();
  if (timeline.entries != null) {
    profileName.setText(timeline.entries[0].name + "String_Node_Str");
    for (    AbelanaClient.TimelineEntry e : timeline.entries) {
      Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
    }
    gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
  }
}
Program: 41916
Project: 41916
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.fragment_profile);
  final GridView gridView=(GridView)findViewById(R.id.gridview);
  Intent intent=getIntent();
  String personid=intent.getStringExtra("String_Node_Str");
  final TextView profileName=(TextView)findViewById(R.id.profile_text_1);
  AbelanaClient client=new AbelanaClient();
  client.mFProfile.fProfile(Data.aTok,personid,"String_Node_Str",new Callback<AbelanaClient.Timeline>(){
    @Override public void success(    AbelanaClient.Timeline timeline,    Response response){
      Data.mFollowingProfileUrls=new ArrayList<String>();
      if (timeline.entries != null) {
        profileName.setText(timeline.entries[0].name + "String_Node_Str");
        for (        AbelanaClient.TimelineEntry e : timeline.entries) {
          Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
        }
        gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
      }
    }
    @Override public void failure(    RetrofitError error){
      error.printStackTrace();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.fragment_profile);
  final GridView gridView=(GridView)findViewById(R.id.gridview);
  Intent intent=getIntent();
  String personid=intent.getStringExtra("String_Node_Str");
  String personName=intent.getStringExtra("String_Node_Str");
  TextView profileName=(TextView)findViewById(R.id.profile_text_1);
  profileName.setText(personName + "String_Node_Str");
  AbelanaClient client=new AbelanaClient();
  client.mFProfile.fProfile(Data.aTok,personid,"String_Node_Str",new Callback<AbelanaClient.Timeline>(){
    @Override public void success(    AbelanaClient.Timeline timeline,    Response response){
      Data.mFollowingProfileUrls=new ArrayList<String>();
      if (timeline.entries != null) {
        for (        AbelanaClient.TimelineEntry e : timeline.entries) {
          Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
        }
        gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
      }
    }
    @Override public void failure(    RetrofitError error){
      error.printStackTrace();
    }
  }
);
}
Program: 41917
Project: 41917
Buggy source:
@Override public void success(AbelanaClient.Timeline timeline,Response response){
  Data.mFollowingProfileUrls=new ArrayList<String>();
  if (timeline.entries != null) {
    profileName.setText(timeline.entries[0].name + "String_Node_Str");
    for (    AbelanaClient.TimelineEntry e : timeline.entries) {
      Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
    }
    gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
  }
}

Fixed version (ground truth):
@Override public void success(AbelanaClient.Timeline timeline,Response response){
  Data.mFollowingProfileUrls=new ArrayList<String>();
  if (timeline.entries != null) {
    for (    AbelanaClient.TimelineEntry e : timeline.entries) {
      Data.mFollowingProfileUrls.add(AbelanaThings.getImage(e.photoid));
    }
    gridView.setAdapter(new FriendProfileAdapter(getApplicationContext()));
  }
}
Program: 41918
Project: 41918
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_friends,container,false);
  final ListView listView=(ListView)rootView.findViewById(R.id.listview_friends);
  setHasOptionsMenu(true);
  AbelanaClient client=new AbelanaClient();
  client.mGetFollowing.getFollowing(Data.aTok,new Callback<AbelanaClient.Persons>(){
    @Override public void success(    AbelanaClient.Persons persons,    Response response){
      Data.mFollowingNames=new ArrayList<String>();
      Data.mFollowingIds=new ArrayList<String>();
      if (persons.persons != null) {
        for (        AbelanaClient.Person p : persons.persons) {
          Data.mFollowingNames.add(p.name);
          Data.mFollowingIds.add(p.personid);
        }
        listView.setAdapter(new FriendsAdapter(getActivity()));
      }
    }
    @Override public void failure(    RetrofitError error){
    }
  }
);
  listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> adapterView,    View view,    int position,    long id){
      String personId=Data.mFollowingIds.get(position);
      Log.v(LOG_TAG,"String_Node_Str" + personId);
      Intent intent=new Intent(getActivity(),FriendProfileActivity.class);
      intent.putExtra("String_Node_Str",personId);
      startActivity(intent);
    }
  }
);
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(final LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_friends,container,false);
  final ListView listView=(ListView)rootView.findViewById(R.id.listview_friends);
  setHasOptionsMenu(true);
  AbelanaClient client=new AbelanaClient();
  client.mGetFollowing.getFollowing(Data.aTok,new Callback<AbelanaClient.Persons>(){
    @Override public void success(    AbelanaClient.Persons persons,    Response response){
      Data.mFollowingNames=new ArrayList<String>();
      Data.mFollowingIds=new ArrayList<String>();
      if (persons.persons != null) {
        for (        AbelanaClient.Person p : persons.persons) {
          Data.mFollowingNames.add(p.name);
          Data.mFollowingIds.add(p.personid);
        }
        listView.setAdapter(new FriendsAdapter(getActivity()));
      }
    }
    @Override public void failure(    RetrofitError error){
      error.printStackTrace();
    }
  }
);
  listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
    @Override public void onItemClick(    AdapterView<?> adapterView,    View view,    int position,    long id){
      String personId=Data.mFollowingIds.get(position);
      String personName=Data.mFollowingNames.get(position);
      Log.v(LOG_TAG,"String_Node_Str" + personId);
      Intent intent=new Intent(getActivity(),FriendProfileActivity.class);
      intent.putExtra("String_Node_Str",personId);
      intent.putExtra("String_Node_Str",personName);
      startActivity(intent);
    }
  }
);
  return rootView;
}
Program: 41919
Project: 41919
Buggy source:
@Override public void onItemClick(AdapterView<?> adapterView,View view,int position,long id){
  String personId=Data.mFollowingIds.get(position);
  Log.v(LOG_TAG,"String_Node_Str" + personId);
  Intent intent=new Intent(getActivity(),FriendProfileActivity.class);
  intent.putExtra("String_Node_Str",personId);
  startActivity(intent);
}

Fixed version (ground truth):
@Override public void onItemClick(AdapterView<?> adapterView,View view,int position,long id){
  String personId=Data.mFollowingIds.get(position);
  String personName=Data.mFollowingNames.get(position);
  Log.v(LOG_TAG,"String_Node_Str" + personId);
  Intent intent=new Intent(getActivity(),FriendProfileActivity.class);
  intent.putExtra("String_Node_Str",personId);
  intent.putExtra("String_Node_Str",personName);
  startActivity(intent);
}
Program: 41920
Project: 41920
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  ViewHolder holder;
  if (convertView == null) {
    convertView=mInflater.inflate(R.layout.dua_detail_item_card,parent,false);
    holder=new ViewHolder();
    holder.tvDuaNumber=(TextView)convertView.findViewById(R.id.txtDuaNumber);
    holder.tvDuaArabic=(TextView)convertView.findViewById(R.id.txtDuaArabic);
    holder.tvDuaArabic.setTypeface(sCachedTypeface);
    holder.tvDuaArabic.setTextSize(prefArabicFontSize);
    holder.tvDuaTranslation=(TextView)convertView.findViewById(R.id.txtDuaTranslation);
    holder.tvDuaReference=(TextView)convertView.findViewById(R.id.txtDuaReference);
    holder.tvDuaReference.setTextSize(prefOtherFontSize);
    convertView.setTag(holder);
  }
  holder=(ViewHolder)convertView.getTag();
  Dua p=getItem(position);
  if (p != null) {
    holder.tvDuaNumber.setText("String_Node_Str" + p.getReference());
    holder.tvDuaArabic.setText(Html.fromHtml(p.getArabic()));
    final Spannable translation=new SpannableString(p.getTranslation());
    holder.tvDuaTranslation.setText(translation);
    if (p.getBook_reference() != null)     holder.tvDuaReference.setText(Html.fromHtml(p.getBook_reference()));
 else     holder.tvDuaReference.setText("String_Node_Str");
  }
  return convertView;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  ViewHolder holder;
  if (convertView == null) {
    convertView=mInflater.inflate(R.layout.dua_detail_item_card,parent,false);
    holder=new ViewHolder();
    holder.tvDuaNumber=(TextView)convertView.findViewById(R.id.txtDuaNumber);
    holder.tvDuaArabic=(TextView)convertView.findViewById(R.id.txtDuaArabic);
    holder.tvDuaArabic.setTypeface(sCachedTypeface);
    holder.tvDuaArabic.setTextSize(prefArabicFontSize);
    holder.tvDuaTranslation=(TextView)convertView.findViewById(R.id.txtDuaTranslation);
    holder.tvDuaTranslation.setTextSize(prefOtherFontSize);
    holder.tvDuaReference=(TextView)convertView.findViewById(R.id.txtDuaReference);
    holder.tvDuaReference.setTextSize(prefOtherFontSize);
    convertView.setTag(holder);
  }
  holder=(ViewHolder)convertView.getTag();
  Dua p=getItem(position);
  if (p != null) {
    holder.tvDuaNumber.setText("String_Node_Str" + p.getReference());
    holder.tvDuaArabic.setText(Html.fromHtml(p.getArabic()));
    final Spannable translation=new SpannableString(p.getTranslation());
    holder.tvDuaTranslation.setText(translation);
    if (p.getBook_reference() != null)     holder.tvDuaReference.setText(Html.fromHtml(p.getBook_reference()));
 else     holder.tvDuaReference.setText("String_Node_Str");
  }
  return convertView;
}
Program: 41921
Project: 41921
Buggy source:
public void enable(){
  PlotMeCoreManager.getInstance().setPlugin(this);
  configFile=new ConfigAccessor(getServerBridge().getDataFolder(),"String_Node_Str");
  setupConfigFiles();
  setupSQL();
  serverBridge.setupHooks();
  if (getConfig().getInt("String_Node_Str") > 0) {
    serverBridge.runTaskTimerAsynchronously(new PlotExpireCleanup(this),20L * 60 * 30,20L * 60 * getConfig().getInt("String_Node_Str"));
  }
}

Fixed version (ground truth):
public void enable(){
  PlotMeCoreManager.getInstance().setPlugin(this);
  configFile=new ConfigAccessor(getServerBridge().getDataFolder(),"String_Node_Str");
  setupConfigFiles();
  setupSQL();
  serverBridge.setupHooks();
  if (getConfig().getBoolean("String_Node_Str")) {
    serverBridge.runTaskTimerAsynchronously(new PlotExpireCleanup(this),20L * 60 * 30,20L * 60 * getConfig().getInt("String_Node_Str"));
  }
}
Program: 41923
Project: 41923
Buggy source:
/** 
 * Get the plot home location of a plot
 * @param id    plot id to get home of
 * @param world
 * @return an ILocation of the plot home location
 */
public Location getPlotHome(PlotId id,IWorld world){
  Location plotHome=getGenManager(world).getPlotHome(id);
  plugin.getLogger().info(plotHome.toString());
  return plotHome;
}

Fixed version (ground truth):
/** 
 * Get the plot home location of a plot
 * @param id    plot id to get home of
 * @param world
 * @return an ILocation of the plot home location
 */
public Location getPlotHome(PlotId id,IWorld world){
  return getGenManager(world).getPlotHome(id);
}
Program: 41924
Project: 41924
Buggy source:
@Override public void run(){
  ClearEntry first=clearList.getFirst();
  IPlotMe_GeneratorManager genmanager=PlotMeCoreManager.getInstance().getGenManager(first.getPlot().getWorld());
  genmanager.clear(first.getPlot().getPlotBottomLoc(),first.getPlot().getPlotTopLoc(),first.getPlot().getId(),first);
  if (first.chunkqueue.isEmpty()) {
    if (first.getReason().equals(ClearReason.Clear)) {
      genmanager.adjustPlotFor(first.getPlot(),true,false,false);
    }
 else {
      genmanager.adjustPlotFor(first.getPlot(),false,false,false);
    }
    clearList.removeFirst();
    if (first.getSender() != null) {
      first.getSender().sendMessage(plugin.C("String_Node_Str") + "String_Node_Str" + first.getPlot().getId().getID()+ "String_Node_Str"+ plugin.C("String_Node_Str"));
    }
  }
 else {
    first.chunkqueue.poll().run();
  }
}

Fixed version (ground truth):
@Override public void run(){
  if (clearList.isEmpty()) {
    return;
  }
  ClearEntry first=clearList.getFirst();
  IPlotMe_GeneratorManager genmanager=PlotMeCoreManager.getInstance().getGenManager(first.getPlot().getWorld());
  genmanager.clear(first.getPlot().getPlotBottomLoc(),first.getPlot().getPlotTopLoc(),first.getPlot().getId(),first);
  if (first.chunkqueue.isEmpty()) {
    if (first.getReason().equals(ClearReason.Clear)) {
      genmanager.adjustPlotFor(first.getPlot(),true,false,false);
    }
 else {
      genmanager.adjustPlotFor(first.getPlot(),false,false,false);
    }
    clearList.removeFirst();
    if (first.getSender() != null) {
      first.getSender().sendMessage(plugin.C("String_Node_Str") + "String_Node_Str" + first.getPlot().getId().getID()+ "String_Node_Str"+ plugin.C("String_Node_Str"));
    }
  }
 else {
    first.chunkqueue.poll().run();
  }
}
Program: 41926
Project: 41926
Buggy source:
@Override public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    if (args.length == 0) {
      return commandMap.get("String_Node_Str").execute(plugin.wrapPlayer((Player)sender),args);
    }
    if (args[0] == null || args == null) {
      api.getLogger().severe("String_Node_Str");
      return false;
    }
    PlotCommand _command=commandMap.get(args[0]);
    if (_command == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      return _command.execute(plugin.wrapPlayer((Player)sender),args);
    }
  }
 else {
    return handleConsoleCommands(sender,args);
  }
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    if (args.length == 0) {
      return commandMap.get("String_Node_Str").execute(plugin.wrapPlayer((Player)sender),args);
    }
    PlotCommand _command=commandMap.get(args[0].toLowerCase());
    if (_command == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      return _command.execute(plugin.wrapPlayer((Player)sender),args);
    }
  }
 else {
    return handleConsoleCommands(sender,args);
  }
}
Program: 41927
Project: 41927
Buggy source:
@Override public void run(){
  setOwnerSign(plot);
}

Fixed version (ground truth):
@Override public void run(){
  LWC lwc=LWC.getInstance();
  List<Protection> protections=lwc.getPhysicalDatabase().loadProtections(plot.getWorld().getName(),x1,x2,0,256,z1,z2);
  for (  Protection protection : protections) {
    protection.remove();
  }
}
Program: 41928
Project: 41928
Buggy source:
public void UpdatePlayerNameFromId(final UUID uuid,final String name){
  plugin.getServerBridge().runTaskAsynchronously(new Runnable(){
    @Override public void run(){
      for (      final Plot plot : plugin.getSqlManager().getPlayerPlots(uuid)) {
        plot.setOwner(name);
        plugin.getSqlManager().savePlot(plot);
        plugin.getServerBridge().runTask(new Runnable(){
          @Override public void run(){
            setOwnerSign(plot);
          }
        }
);
      }
    }
  }
);
}

Fixed version (ground truth):
public void UpdatePlayerNameFromId(final UUID uuid,final String name){
  for (  final Plot plot : plugin.getSqlManager().getPlayerPlots(uuid)) {
    setOwnerSign(plot);
  }
}
Program: 41934
Project: 41934
Buggy source:
public void setNextPlotId(final long id){
  this.nextPlotId=id;
  plugin.getServerBridge().runTaskAsynchronously(new Runnable(){
    @Override public void run(){
      try (Statement statement=getConnection().createStatement()){
        statement.execute("String_Node_Str");
        statement.execute("String_Node_Str" + id + "String_Node_Str");
      }
 catch (      SQLException e) {
        plugin.getLogger().severe("String_Node_Str");
        plugin.getLogger().severe(e.getMessage());
      }
    }
  }
);
}

Fixed version (ground truth):
public void setNextPlotId(final long id){
  this.nextPlotId=id;
  try (Statement statement=getConnection().createStatement()){
    statement.execute("String_Node_Str");
    statement.execute("String_Node_Str" + id + "String_Node_Str");
  }
 catch (  SQLException e) {
    plugin.getLogger().severe("String_Node_Str");
    plugin.getLogger().severe(e.getMessage());
  }
}
Program: 41935
Project: 41935
Buggy source:
public void deleteAllFrom(final long internalID,final String table){
  plugin.getServerBridge().runTaskAsynchronously(new Runnable(){
    @Override public void run(){
      try (Statement statement=getConnection().createStatement()){
        statement.execute("String_Node_Str" + table + "String_Node_Str"+ internalID);
        getConnection().commit();
      }
 catch (      SQLException e) {
        plugin.getLogger().severe("String_Node_Str" + internalID + "String_Node_Str"+ table);
        plugin.getLogger().severe("String_Node_Str" + e.getMessage());
        plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
        plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
      }
    }
  }
);
}

Fixed version (ground truth):
public void deleteAllFrom(final long internalID,final String table){
  try (Statement statement=getConnection().createStatement()){
    statement.execute("String_Node_Str" + table + "String_Node_Str"+ internalID);
    getConnection().commit();
  }
 catch (  SQLException e) {
    plugin.getLogger().severe("String_Node_Str" + internalID + "String_Node_Str"+ table);
    plugin.getLogger().severe("String_Node_Str" + e.getMessage());
    plugin.getLogger().severe("String_Node_Str" + e.getErrorCode());
    plugin.getLogger().severe("String_Node_Str" + e.getSQLState());
  }
}
Program: 41936
Project: 41936
Buggy source:
/** 
 * Get the plot home location of a plot
 * @param id    plot id to get home of
 * @param world
 * @return an ILocation of the plot home location
 */
public Location getPlotHome(PlotId id,IWorld world){
  return getGenManager(world).getPlotHome(id);
}

Fixed version (ground truth):
/** 
 * Get the plot home location of a plot
 * @param id    plot id to get home of
 * @param world
 * @return an ILocation of the plot home location
 */
public Location getPlotHome(PlotId id,IWorld world){
  Location plotHome=getGenManager(world).getPlotHome(id);
  plugin.getLogger().info(plotHome.toString());
  return plotHome;
}
Program: 41937
Project: 41937
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + y + "String_Node_Str"+ y+ "String_Node_Str"+ z;
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + x + "String_Node_Str"+ y+ "String_Node_Str"+ z;
}
Program: 41938
Project: 41938
Buggy source:
@Override public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    if (args.length == 0) {
      return commandMap.get("String_Node_Str").execute(plugin.wrapPlayer((Player)sender),args);
    }
    if (args[0] == null) {
      api.getLogger().severe("String_Node_Str");
      return false;
    }
    PlotCommand _command=commandMap.get(args[0]);
    if (_command == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      return _command.execute(new BukkitPlayer((Player)sender),args);
    }
  }
 else {
    return handleConsoleCommands(sender,args);
  }
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandSender sender,Command command,String label,String[] args){
  if (sender instanceof Player) {
    if (args.length == 0) {
      return commandMap.get("String_Node_Str").execute(plugin.wrapPlayer((Player)sender),args);
    }
    if (args[0] == null || args == null) {
      api.getLogger().severe("String_Node_Str");
      return false;
    }
    PlotCommand _command=commandMap.get(args[0]);
    if (_command == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
 else {
      return _command.execute(new BukkitPlayer((Player)sender),args);
    }
  }
 else {
    return handleConsoleCommands(sender,args);
  }
}
Program: 41940
Project: 41940
Buggy source:
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (manager.isPlotWorld(player)) {
    if (player.hasPermission(PermissionNames.USER_BIOME)) {
      int page=1;
      List<List<String>> partition=Lists.partition(serverBridge.getBiomes(),10);
      if (args.length == 2) {
        page=Integer.parseInt(args[1]);
      }
      player.sendMessage(C("String_Node_Str") + "String_Node_Str" + page+ "String_Node_Str"+ partition.size()+ "String_Node_Str");
      for (      String s : partition.get(page)) {
        player.sendMessage(s);
      }
    }
 else {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (manager.isPlotWorld(player)) {
    if (player.hasPermission(PermissionNames.USER_BIOME)) {
      int page=1;
      List<List<String>> partition=Lists.partition(serverBridge.getBiomes(),10);
      if (args.length == 2) {
        page=Integer.parseInt(args[1]);
      }
      player.sendMessage(C("String_Node_Str") + "String_Node_Str" + page+ "String_Node_Str"+ partition.size()+ "String_Node_Str");
      for (      String s : partition.get(page - 1)) {
        player.sendMessage(s);
      }
    }
 else {
      return false;
    }
  }
  return true;
}
Program: 41942
Project: 41942
Buggy source:
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (manager.isPlotWorld(player)) {
    if (player.hasPermission(PermissionNames.ADMIN_DONE) || player.hasPermission(PermissionNames.USER_DONE)) {
      int page=1;
      if (args.length == 2) {
        page=Integer.parseInt(args[1]);
      }
      List<List<Plot>> partition=Lists.partition(plugin.getSqlManager().getFinishedPlots(player.getWorld()),10);
      if (partition.isEmpty()) {
        player.sendMessage(C("String_Node_Str"));
      }
 else {
        player.sendMessage(C("String_Node_Str",page,partition.size()));
        for (        Plot plot : partition.get(page)) {
          player.sendMessage(plot.getId() + "String_Node_Str" + plot.getOwner()+ "String_Node_Str"+ plot.getFinishedDate());
        }
      }
    }
 else {
      return false;
    }
  }
 else {
    player.sendMessage(C("String_Node_Str"));
  }
  return true;
}

Fixed version (ground truth):
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (manager.isPlotWorld(player)) {
    if (player.hasPermission(PermissionNames.ADMIN_DONE) || player.hasPermission(PermissionNames.USER_DONE)) {
      int page=1;
      if (args.length == 2) {
        page=Integer.parseInt(args[1]);
      }
      List<List<Plot>> partition=Lists.partition(plugin.getSqlManager().getFinishedPlots(player.getWorld()),10);
      if (partition.isEmpty()) {
        player.sendMessage(C("String_Node_Str"));
      }
 else {
        player.sendMessage(C("String_Node_Str",page,partition.size()));
        for (        Plot plot : partition.get(page - 1)) {
          player.sendMessage(plot.getId() + "String_Node_Str" + plot.getOwner()+ "String_Node_Str"+ plot.getFinishedDate());
        }
      }
    }
 else {
      return false;
    }
  }
 else {
    player.sendMessage(C("String_Node_Str"));
  }
  return true;
}
Program: 41943
Project: 41943
Buggy source:
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (player.hasPermission(PermissionNames.USER_LIST)) {
    if (manager.isPlotWorld(player)) {
      UUID uuid;
      int page=1;
      if (args.length > 2) {
        IOfflinePlayer offlinePlayer=serverBridge.getOfflinePlayer(args[1]);
        if (offlinePlayer == null) {
          player.sendMessage("String_Node_Str");
          return true;
        }
        uuid=offlinePlayer.getUniqueId();
        if (args.length == 3) {
          page=Integer.parseInt(args[2]);
        }
      }
 else {
        uuid=player.getUniqueId();
      }
      List<List<Plot>> partition=Lists.partition(plugin.getSqlManager().getPlayerPlots(uuid),5);
      player.sendMessage("String_Node_Str" + "String_Node_Str" + page + "String_Node_Str"+ partition.size()+ "String_Node_Str");
      for (      Plot plot : partition.get(page)) {
        player.sendMessage("String_Node_Str" + plot.getId().getID() + "String_Node_Str"+ plot.getWorld().getName());
      }
    }
 else {
      player.sendMessage(C("String_Node_Str"));
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean execute(ICommandSender sender,String[] args){
  IPlayer player=(IPlayer)sender;
  if (player.hasPermission(PermissionNames.USER_LIST)) {
    if (manager.isPlotWorld(player)) {
      UUID uuid;
      int page=1;
      if (args.length > 2) {
        IOfflinePlayer offlinePlayer=serverBridge.getOfflinePlayer(args[1]);
        if (offlinePlayer == null) {
          player.sendMessage("String_Node_Str");
          return true;
        }
        uuid=offlinePlayer.getUniqueId();
        if (args.length == 3) {
          page=Integer.parseInt(args[2]);
        }
      }
 else {
        uuid=player.getUniqueId();
      }
      List<List<Plot>> partition=Lists.partition(plugin.getSqlManager().getPlayerPlots(uuid),5);
      player.sendMessage("String_Node_Str" + "String_Node_Str" + page + "String_Node_Str"+ partition.size()+ "String_Node_Str");
      for (      Plot plot : partition.get(page - 1)) {
        player.sendMessage("String_Node_Str" + plot.getId().getID() + "String_Node_Str"+ plot.getWorld().getName());
      }
    }
 else {
      player.sendMessage(C("String_Node_Str"));
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 41948
Project: 41948
Buggy source:
@Override public void onEnable(){
  INSTANCE=this;
  getLogger().info("String_Node_Str");
  serverObjectBuilder=new BukkitServerBridge(getLogger());
  plotme=new PlotMe_Core(serverObjectBuilder);
  getAPI().enable();
  doMetric();
  PluginManager pm=getServer().getPluginManager();
  pm.registerEvents(new BukkitPlotListener(),this);
  pm.registerEvents(new BukkitPlotDenyListener(),this);
  this.getCommand("String_Node_Str").setExecutor(new BukkitCommand(this));
}

Fixed version (ground truth):
@Override public void onEnable(){
  INSTANCE=this;
  getLogger().info("String_Node_Str");
  serverObjectBuilder=new BukkitServerBridge(getLogger());
  plotme=new PlotMe_Core();
  plotme.registerServerBridge(serverObjectBuilder);
  getAPI().enable();
  doMetric();
  PluginManager pm=getServer().getPluginManager();
  pm.registerEvents(new BukkitPlotListener(),this);
  pm.registerEvents(new BukkitPlotDenyListener(),this);
  this.getCommand("String_Node_Str").setExecutor(new BukkitCommand(this));
}
Program: 41949
Project: 41949
Buggy source:
@Override public List<IEntity> getEntities(){
  List<IEntity> bukkitEntites=new ArrayList<>(world.getEntities().size());
  for (  Entity entity : world.getEntities()) {
    bukkitEntites.add(new BukkitEntity(entity));
  }
  return bukkitEntites;
}

Fixed version (ground truth):
@Override public List<IEntity> getEntities(){
  List<IEntity> bukkitEntites=new ArrayList<>(world.getEntities().size());
  for (  Entity entity : world.getEntities()) {
    bukkitEntites.add(BukkitUtil.adapt(entity));
  }
  return bukkitEntites;
}
Program: 41950
Project: 41950
Buggy source:
/** 
 * Setup SQL Database
 */
private void setupSQL(){
  FileConfiguration config=getConfig();
  if (config.getBoolean("String_Node_Str",false)) {
    String url=config.getString("String_Node_Str");
    String user=config.getString("String_Node_Str");
    String pass=config.getString("String_Node_Str");
    setSqlManager(new MySQLConnector(this,url,user,pass));
  }
 else {
    setSqlManager(new SQLiteConnector(this));
  }
  getSqlManager().startConnection();
}

Fixed version (ground truth):
/** 
 * Setup SQL Database
 */
private void setupSQL(){
  FileConfiguration config=getConfig();
  if (config.getBoolean("String_Node_Str",false)) {
    String url=config.getString("String_Node_Str");
    String user=config.getString("String_Node_Str");
    String pass=config.getString("String_Node_Str");
    setSqlManager(new MySQLConnector(this,url,user,pass));
  }
 else {
    setSqlManager(new SQLiteConnector(this));
  }
}
Program: 41951
Project: 41951
Buggy source:
public PlotMe_Core(IServerBridge serverObjectBuilder){
  this.serverBridge=serverObjectBuilder;
  this.schematicutil=new SchematicUtil(this);
}

Fixed version (ground truth):
public PlotMe_Core(){
}
Program: 41952
Project: 41952
Buggy source:
/** 
 * Get the home   {@link ILocation} of the plot
 * @return internal home location of the plot
 */
public Vector getLocation(){
  return location;
}

Fixed version (ground truth):
/** 
 * Get the home   {@link ILocation} of the plot
 * @return internal home location of the plot
 */
public ILocation getLocation(){
  return location;
}
Program: 41953
Project: 41953
Buggy source:
public PlotTeleportEvent(IWorld world,Plot plot,IPlayer player,Vector location,PlotId plotId){
  super(plot,world);
  this.player=player;
  this.location=location;
  this.plotId=plotId;
}

Fixed version (ground truth):
public PlotTeleportEvent(Plot plot,IPlayer player,ILocation location,PlotId plotId){
  super(plot,location.getWorld());
  this.player=player;
  this.location=location;
  this.plotId=plotId;
}
Program: 41954
Project: 41954
Buggy source:
public PlotTeleportHomeEvent(IWorld world,Plot plot,IPlayer player,ILocation location){
  super(world,plot,player,location,plot.getId());
}

Fixed version (ground truth):
public PlotTeleportHomeEvent(Plot plot,IPlayer player,ILocation location){
  super(plot,player,location,plot.getId());
}
Program: 41955
Project: 41955
Buggy source:
public PlotTeleportMiddleEvent(IWorld world,Plot plot,IPlayer player,Vector middlelocation){
  super(world,plot,player,middlelocation,plot.getId());
}

Fixed version (ground truth):
public PlotTeleportMiddleEvent(Plot plot,IPlayer player,ILocation middlelocation){
  super(plot,player,middlelocation,plot.getId());
}
Program: 41956
Project: 41956
Buggy source:
@Override public void run(){
  for (int i=0; i < 50000; i++) {
    for (int x=-i; x <= i; x++) {
      for (int z=-i; z <= i; z++) {
        PlotId id=new PlotId(x,z);
        if (manager.isPlotAvailable(id,world)) {
          String name=player.getName();
          UUID uuid=player.getUniqueId();
          if (manager.isEconomyEnabled(world)) {
            double price=pmi.getClaimPrice();
            if (serverBridge.has(player,price)) {
              EconomyResponse er=serverBridge.withdrawPlayer(player,price);
              if (!er.transactionSuccess()) {
                player.sendMessage(er.errorMessage);
              }
            }
 else {
              player.sendMessage("String_Node_Str");
            }
          }
          manager.createPlot(id,world,name,uuid,pmi);
          player.teleport(manager.getPlotHome(id,world));
          player.sendMessage(C("String_Node_Str") + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ C("String_Node_Str")+ "String_Node_Str"+ C("String_Node_Str"));
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  loop:   for (int i=0; i < 50000; i++) {
    for (int x=-i; x <= i; x++) {
      for (int z=-i; z <= i; z++) {
        PlotId id=new PlotId(x,z);
        if (manager.isPlotAvailable(id,world)) {
          String name=player.getName();
          UUID uuid=player.getUniqueId();
          if (manager.isEconomyEnabled(world)) {
            double price=pmi.getClaimPrice();
            if (serverBridge.has(player,price)) {
              EconomyResponse er=serverBridge.withdrawPlayer(player,price);
              if (!er.transactionSuccess()) {
                player.sendMessage(er.errorMessage);
              }
            }
 else {
              player.sendMessage("String_Node_Str");
            }
          }
          manager.createPlot(id,world,name,uuid,pmi);
          player.teleport(manager.getPlotHome(id,world));
          player.sendMessage(C("String_Node_Str") + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ C("String_Node_Str")+ "String_Node_Str"+ C("String_Node_Str"));
          break loop;
        }
      }
    }
  }
}
Program: 41960
Project: 41960
Buggy source:
public static Vector locationToVector(Location location){
  return new Vector(location.getX(),location.getY(),location.getZ());
}

Fixed version (ground truth):
public static Vector locationToVector(org.bukkit.Location location){
  return new Vector(location.getX(),location.getY(),location.getZ());
}
Program: 41961
Project: 41961
Buggy source:
@Override public boolean setBlock(Vector location,BaseBlock block) throws WorldEditException {
  if (manager.isPlayerIgnoringWELimit(player)) {
    return extent.setBlock(location,block);
  }
 else {
    ILocation loc=new ILocation(player.getWorld(),location.getX(),location.getY(),location.getZ());
    Plot plot=manager.getPlot(loc);
    return plot != null && plot.isAllowed(actor.getUniqueId()) && extent.setBlock(location,block);
  }
}

Fixed version (ground truth):
@Override public boolean setBlock(Vector location,BaseBlock block) throws WorldEditException {
  if (manager.isPlayerIgnoringWELimit(player)) {
    return extent.setBlock(location,block);
  }
 else {
    Location loc=new Location(player.getWorld(),location.getX(),location.getY(),location.getZ());
    Plot plot=manager.getPlot(loc);
    return plot != null && plot.isAllowed(actor.getUniqueId()) && extent.setBlock(location,block);
  }
}
Program: 41962
Project: 41962
Buggy source:
@Override public boolean setBiome(Vector2D position,BaseBiome biome){
  if (manager.isPlayerIgnoringWELimit(player)) {
    return extent.setBiome(position,biome);
  }
 else {
    ILocation loc=new ILocation(player.getWorld(),position.getX(),0,position.getZ());
    Plot plot=manager.getPlot(loc);
    return plot != null && plot.isAllowed(actor.getUniqueId()) && extent.setBiome(position,biome);
  }
}

Fixed version (ground truth):
@Override public boolean setBiome(Vector2D position,BaseBiome biome){
  if (manager.isPlayerIgnoringWELimit(player)) {
    return extent.setBiome(position,biome);
  }
 else {
    Location loc=new Location(player.getWorld(),position.getX(),0,position.getZ());
    Plot plot=manager.getPlot(loc);
    return plot != null && plot.isAllowed(actor.getUniqueId()) && extent.setBiome(position,biome);
  }
}
Program: 41965
Project: 41965
Buggy source:
@Override public ILocation getLocation(){
  return new ILocation(getWorld(),getPosition());
}

Fixed version (ground truth):
@Override public Location getLocation(){
  return new Location(getWorld(),getPosition());
}
Program: 41966
Project: 41966
Buggy source:
@Override public ILocation getLocation(){
  return new ILocation(getWorld(),getPosition());
}

Fixed version (ground truth):
@Override public Location getLocation(){
  return new Location(getWorld(),getPosition());
}
Program: 41967
Project: 41967
Buggy source:
@Override public void setLocation(ILocation location){
  entity.teleport(new Location(((BukkitWorld)location.getWorld()).getWorld(),location.getX(),location.getY(),location.getZ()));
}

Fixed version (ground truth):
@Override public void setLocation(Location location){
  entity.teleport(new org.bukkit.Location(((BukkitWorld)location.getWorld()).getWorld(),location.getX(),location.getY(),location.getZ()));
}
Program: 41968
Project: 41968
Buggy source:
@Override public void teleport(ILocation location){
  PlotMe_CorePlugin.getInstance().getServerObjectBuilder().runTaskLater(new TeleportRunnable(this,location),PlotMe_CorePlugin.getInstance().getAPI().getConfig().getInt("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void teleport(Location location){
  PlotMe_CorePlugin.getInstance().getServerObjectBuilder().runTaskLater(new TeleportRunnable(this,location),PlotMe_CorePlugin.getInstance().getAPI().getConfig().getInt("String_Node_Str"));
}
Program: 41969
Project: 41969
Buggy source:
@Override public ILocation getLocation(){
  return new ILocation(getWorld(),getPosition());
}

Fixed version (ground truth):
@Override public Location getLocation(){
  return new Location(getWorld(),getPosition());
}
Program: 41970
Project: 41970
Buggy source:
@Override public void setLocation(ILocation location){
  player.teleport(new Location(((BukkitWorld)location.getWorld()).getWorld(),location.getX(),location.getY(),location.getZ()));
}

Fixed version (ground truth):
@Override public void setLocation(Location location){
  player.teleport(new org.bukkit.Location(((BukkitWorld)location.getWorld()).getWorld(),location.getX(),location.getY(),location.getZ()));
}
Program: 41971
Project: 41971
Buggy source:
/** 
 * Uses the code that allows a delay while "Teleporting" or moving the entity
 * @param location new location
 */
@Override public void teleport(ILocation location){
  final int delay=PlotMe_CorePlugin.getInstance().getAPI().getConfig().getInt("String_Node_Str");
  player.sendMessage(String.format("String_Node_Str",delay));
  PlotMe_CorePlugin.getInstance().getServerObjectBuilder().runTaskLater(new TeleportRunnable(this,location),delay);
}

Fixed version (ground truth):
/** 
 * Uses the code that allows a delay while "Teleporting" or moving the entity
 * @param location new location
 */
@Override public void teleport(Location location){
  final int delay=PlotMe_CorePlugin.getInstance().getAPI().getConfig().getInt("String_Node_Str");
  player.sendMessage(String.format("String_Node_Str",delay));
  PlotMe_CorePlugin.getInstance().getServerObjectBuilder().runTaskLater(new TeleportRunnable(this,location),delay);
}