nus-yam/ex-repair huggingface dataset:
Program: 14026
Project: 14026
Buggy source:
public void testTopPost() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      TopPostsAndPagesModel model=new TopPostsAndPagesModel("String_Node_Str",response);
      assertNotNull(model.getTopPostsAndPages());
      assertEquals(model.getTopPostsAndPages().size(),10);
      PostModel postModel=model.getTopPostsAndPages().get(0);
      assertEquals(postModel.getItemID(),"String_Node_Str");
      assertEquals(postModel.getTotals(),2420);
      assertEquals(postModel.getTitle(),"String_Node_Str");
      assertEquals(postModel.getUrl(),"String_Node_Str");
      assertEquals(postModel.getDate(),StatsUtils.toMs("String_Node_Str"));
      assertEquals(postModel.getPostType(),"String_Node_Str");
      postModel=model.getTopPostsAndPages().get(9);
      assertEquals(postModel.getItemID(),"String_Node_Str");
      assertEquals(postModel.getTotals(),56);
      assertEquals(postModel.getTitle(),"String_Node_Str");
      assertEquals(postModel.getUrl(),"String_Node_Str");
      assertEquals(postModel.getDate(),StatsUtils.toMs("String_Node_Str"));
      assertEquals(postModel.getPostType(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testTopPost() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      TopPostsAndPagesModel model=new TopPostsAndPagesModel(123456,response);
      assertNotNull(model.getTopPostsAndPages());
      assertEquals(model.getTopPostsAndPages().size(),10);
      PostModel postModel=model.getTopPostsAndPages().get(0);
      assertEquals(postModel.getItemID(),"String_Node_Str");
      assertEquals(postModel.getTotals(),2420);
      assertEquals(postModel.getTitle(),"String_Node_Str");
      assertEquals(postModel.getUrl(),"String_Node_Str");
      assertEquals(postModel.getDate(),StatsUtils.toMs("String_Node_Str"));
      assertEquals(postModel.getPostType(),"String_Node_Str");
      postModel=model.getTopPostsAndPages().get(9);
      assertEquals(postModel.getItemID(),"String_Node_Str");
      assertEquals(postModel.getTotals(),56);
      assertEquals(postModel.getTitle(),"String_Node_Str");
      assertEquals(postModel.getUrl(),"String_Node_Str");
      assertEquals(postModel.getDate(),StatsUtils.toMs("String_Node_Str"));
      assertEquals(postModel.getPostType(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14027
Project: 14027
Buggy source:
public void testVisits() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VisitsModel model=new VisitsModel("String_Node_Str",response);
      assertNotNull(model.getVisits());
      assertNotNull(model.getUnit());
      assertNotNull(model.getDate());
      assertEquals(model.getVisits().size(),30);
      assertEquals(model.getUnit(),"String_Node_Str");
      VisitModel visitModel=model.getVisits().get(0);
      assertEquals(visitModel.getViews(),7808);
      assertEquals(visitModel.getVisitors(),4331);
      assertEquals(visitModel.getLikes(),0);
      assertEquals(visitModel.getComments(),0);
      assertEquals(visitModel.getPeriod(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testVisits() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VisitsModel model=new VisitsModel(123456,response);
      assertNotNull(model.getVisits());
      assertNotNull(model.getUnit());
      assertNotNull(model.getDate());
      assertEquals(model.getVisits().size(),30);
      assertEquals(model.getUnit(),"String_Node_Str");
      VisitModel visitModel=model.getVisits().get(0);
      assertEquals(visitModel.getViews(),7808);
      assertEquals(visitModel.getVisitors(),4331);
      assertEquals(visitModel.getLikes(),0);
      assertEquals(visitModel.getComments(),0);
      assertEquals(visitModel.getPeriod(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14028
Project: 14028
Buggy source:
public void testCountryViewsDay() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      GeoviewsModel model=new GeoviewsModel("String_Node_Str",response);
      assertEquals(model.getOtherViews(),17);
      assertEquals(model.getTotalViews(),55);
      assertNotNull(model.getCountries());
      assertEquals(model.getCountries().size(),10);
      GeoviewModel first=model.getCountries().get(0);
      assertEquals(first.getCountryFullName(),"String_Node_Str");
      assertEquals(first.getFlagIconURL(),"String_Node_Str");
      assertEquals(first.getFlatFlagIconURL(),"String_Node_Str");
      assertEquals(first.getViews(),8);
      GeoviewModel second=model.getCountries().get(1);
      assertEquals(second.getCountryFullName(),"String_Node_Str");
      assertEquals(second.getFlagIconURL(),"String_Node_Str");
      assertEquals(second.getFlatFlagIconURL(),"String_Node_Str");
      assertEquals(second.getViews(),6);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testCountryViewsDay() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      GeoviewsModel model=new GeoviewsModel(123456,response);
      assertEquals(model.getOtherViews(),17);
      assertEquals(model.getTotalViews(),55);
      assertNotNull(model.getCountries());
      assertEquals(model.getCountries().size(),10);
      GeoviewModel first=model.getCountries().get(0);
      assertEquals(first.getCountryFullName(),"String_Node_Str");
      assertEquals(first.getFlagIconURL(),"String_Node_Str");
      assertEquals(first.getFlatFlagIconURL(),"String_Node_Str");
      assertEquals(first.getViews(),8);
      GeoviewModel second=model.getCountries().get(1);
      assertEquals(second.getCountryFullName(),"String_Node_Str");
      assertEquals(second.getFlagIconURL(),"String_Node_Str");
      assertEquals(second.getFlatFlagIconURL(),"String_Node_Str");
      assertEquals(second.getViews(),6);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14030
Project: 14030
Buggy source:
public void testTagsCategories() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      TagsContainerModel model=new TagsContainerModel("String_Node_Str",response);
      assertEquals(model.getDate(),"String_Node_Str");
      assertNotNull(model.getTags());
      assertEquals(model.getTags().size(),10);
      TagsModel tag=model.getTags().get(0);
      assertEquals(tag.getViews(),461);
      assertNotNull(tag.getTags());
      assertEquals(tag.getTags().size(),1);
      assertNotNull(tag.getTags());
      assertEquals(tag.getTags().get(0).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getLink(),"String_Node_Str");
      tag=model.getTags().get(9);
      assertEquals(tag.getViews(),41);
      assertEquals(tag.getTags().get(0).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getLink(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getLink(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testTagsCategories() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      TagsContainerModel model=new TagsContainerModel(123456,response);
      assertEquals(model.getDate(),"String_Node_Str");
      assertNotNull(model.getTags());
      assertEquals(model.getTags().size(),10);
      TagsModel tag=model.getTags().get(0);
      assertEquals(tag.getViews(),461);
      assertNotNull(tag.getTags());
      assertEquals(tag.getTags().size(),1);
      assertNotNull(tag.getTags());
      assertEquals(tag.getTags().get(0).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getLink(),"String_Node_Str");
      tag=model.getTags().get(9);
      assertEquals(tag.getViews(),41);
      assertEquals(tag.getTags().get(0).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(0).getLink(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getName(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getType(),"String_Node_Str");
      assertEquals(tag.getTags().get(1).getLink(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14031
Project: 14031
Buggy source:
public void testFollowersEmail() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      FollowersModel model=new FollowersModel("String_Node_Str",response);
      assertEquals(model.getTotalEmail(),2931);
      assertEquals(model.getTotalWPCom(),7926165);
      assertEquals(model.getTotal(),2931);
      assertEquals(model.getPage(),1);
      assertEquals(model.getPages(),419);
      assertNotNull(model.getFollowers());
      assertEquals(model.getFollowers().size(),7);
      FollowerModel first=model.getFollowers().get(0);
      assertEquals(first.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertEquals(first.getLabel(),"String_Node_Str");
      assertNull(first.getURL());
      assertNull(first.getFollowData());
      assertEquals(first.getDateSubscribed(),"String_Node_Str");
      FollowerModel last=model.getFollowers().get(6);
      assertEquals(last.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertEquals(last.getLabel(),"String_Node_Str");
      assertNull(last.getURL());
      assertNull(last.getFollowData());
      assertEquals(last.getDateSubscribed(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testFollowersEmail() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      FollowersModel model=new FollowersModel(123456,response);
      assertEquals(model.getTotalEmail(),2931);
      assertEquals(model.getTotalWPCom(),7926165);
      assertEquals(model.getTotal(),2931);
      assertEquals(model.getPage(),1);
      assertEquals(model.getPages(),419);
      assertNotNull(model.getFollowers());
      assertEquals(model.getFollowers().size(),7);
      FollowerModel first=model.getFollowers().get(0);
      assertEquals(first.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertEquals(first.getLabel(),"String_Node_Str");
      assertNull(first.getURL());
      assertNull(first.getFollowData());
      assertEquals(first.getDateSubscribed(),"String_Node_Str");
      FollowerModel last=model.getFollowers().get(6);
      assertEquals(last.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertEquals(last.getLabel(),"String_Node_Str");
      assertNull(last.getURL());
      assertNull(last.getFollowData());
      assertEquals(last.getDateSubscribed(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14032
Project: 14032
Buggy source:
public void testInsightsPopular() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsPopularModel model=new InsightsPopularModel("String_Node_Str",response);
      assertEquals(model.getHighestHour(),9);
      assertEquals(model.getHighestDayOfWeek(),5);
      assertEquals(model.getHighestDayPercent(),30.532081377152);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testInsightsPopular() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsPopularModel model=new InsightsPopularModel(123456,response);
      assertEquals(model.getHighestHour(),9);
      assertEquals(model.getHighestDayOfWeek(),5);
      assertEquals(model.getHighestDayPercent(),30.532081377152);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14034
Project: 14034
Buggy source:
public void testCommentsDay() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      CommentsModel model=new CommentsModel("String_Node_Str",response);
      assertEquals(model.getTotalComments(),177);
      assertEquals(model.getMonthlyComments(),2);
      assertEquals(model.getMostActiveTime(),"String_Node_Str");
      assertEquals(model.getMostActiveDay(),"String_Node_Str");
      assertNotNull(model.getAuthors());
      assertTrue(model.getAuthors().size() == 7);
      AuthorModel author=model.getAuthors().get(0);
      assertEquals(author.getName(),"String_Node_Str");
      assertEquals(author.getViews(),20);
      assertEquals(author.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertNull(author.getFollowData());
      assertNull(author.getPosts());
      assertNotNull(model.getPosts());
      assertTrue(model.getPosts().size() == 11);
      SingleItemModel mostCommentedPost=model.getPosts().get(0);
      assertEquals(mostCommentedPost.getItemID(),"String_Node_Str");
      assertEquals(mostCommentedPost.getTotals(),29);
      assertEquals(mostCommentedPost.getTitle(),"String_Node_Str");
      assertEquals(mostCommentedPost.getUrl(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testCommentsDay() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      CommentsModel model=new CommentsModel(123456,response);
      assertEquals(model.getTotalComments(),177);
      assertEquals(model.getMonthlyComments(),2);
      assertEquals(model.getMostActiveTime(),"String_Node_Str");
      assertEquals(model.getMostActiveDay(),"String_Node_Str");
      assertNotNull(model.getAuthors());
      assertTrue(model.getAuthors().size() == 7);
      AuthorModel author=model.getAuthors().get(0);
      assertEquals(author.getName(),"String_Node_Str");
      assertEquals(author.getViews(),20);
      assertEquals(author.getAvatar(),"String_Node_Str" + "String_Node_Str");
      assertNull(author.getFollowData());
      assertNull(author.getPosts());
      assertNotNull(model.getPosts());
      assertTrue(model.getPosts().size() == 11);
      SingleItemModel mostCommentedPost=model.getPosts().get(0);
      assertEquals(mostCommentedPost.getItemID(),"String_Node_Str");
      assertEquals(mostCommentedPost.getTotals(),29);
      assertEquals(mostCommentedPost.getTitle(),"String_Node_Str");
      assertEquals(mostCommentedPost.getUrl(),"String_Node_Str");
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14035
Project: 14035
Buggy source:
public void testInsightsAllTime() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsAllTimeModel model=new InsightsAllTimeModel("String_Node_Str",response);
      assertEquals(model.getPosts(),128);
      assertEquals(model.getViews(),56687);
      assertEquals(model.getVisitors(),42893);
      assertEquals(model.getViewsBestDayTotal(),3485);
      assertNotNull(model.getViewsBestDay());
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testInsightsAllTime() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsAllTimeModel model=new InsightsAllTimeModel(12345,response);
      assertEquals(model.getPosts(),128);
      assertEquals(model.getViews(),56687);
      assertEquals(model.getVisitors(),42893);
      assertEquals(model.getViewsBestDayTotal(),3485);
      assertNotNull(model.getViewsBestDay());
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14036
Project: 14036
Buggy source:
@Override void parseResponse(JSONObject response) throws JSONException {
  VisitsModel model=new VisitsModel("String_Node_Str",response);
  assertNotNull(model.getVisits());
  assertNotNull(model.getUnit());
  assertNotNull(model.getDate());
  assertEquals(model.getVisits().size(),30);
  assertEquals(model.getUnit(),"String_Node_Str");
  VisitModel visitModel=model.getVisits().get(0);
  assertEquals(visitModel.getViews(),7808);
  assertEquals(visitModel.getVisitors(),4331);
  assertEquals(visitModel.getLikes(),0);
  assertEquals(visitModel.getComments(),0);
  assertEquals(visitModel.getPeriod(),"String_Node_Str");
}

Fixed version (ground truth):
@Override void parseResponse(JSONObject response) throws JSONException {
  VisitsModel model=new VisitsModel(123456,response);
  assertNotNull(model.getVisits());
  assertNotNull(model.getUnit());
  assertNotNull(model.getDate());
  assertEquals(model.getVisits().size(),30);
  assertEquals(model.getUnit(),"String_Node_Str");
  VisitModel visitModel=model.getVisits().get(0);
  assertEquals(visitModel.getViews(),7808);
  assertEquals(visitModel.getVisitors(),4331);
  assertEquals(visitModel.getLikes(),0);
  assertEquals(visitModel.getComments(),0);
  assertEquals(visitModel.getPeriod(),"String_Node_Str");
}
Program: 14037
Project: 14037
Buggy source:
public void testInsightsToday() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsTodayModel model=new InsightsTodayModel("String_Node_Str",response);
      assertEquals(model.getDate(),"String_Node_Str");
      assertEquals(model.getBlogID(),"String_Node_Str");
      assertEquals(model.getViews(),56);
      assertEquals(model.getVisitors(),44);
      assertEquals(model.getLikes(),1);
      assertEquals(model.getReblogs(),2);
      assertEquals(model.getComments(),3);
      assertEquals(model.getFollowers(),56);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testInsightsToday() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      InsightsTodayModel model=new InsightsTodayModel(123456,response);
      assertEquals(model.getDate(),"String_Node_Str");
      assertEquals(model.getBlogID(),123456);
      assertEquals(model.getViews(),56);
      assertEquals(model.getVisitors(),44);
      assertEquals(model.getLikes(),1);
      assertEquals(model.getReblogs(),2);
      assertEquals(model.getComments(),3);
      assertEquals(model.getFollowers(),56);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14038
Project: 14038
Buggy source:
public void testVideoPlaysNoData() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VideoPlaysModel model=new VideoPlaysModel("String_Node_Str",response);
      assertEquals(model.getOtherPlays(),0);
      assertEquals(model.getTotalPlays(),0);
      assertNotNull(model.getPlays());
      assertEquals(model.getPlays().size(),0);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testVideoPlaysNoData() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VideoPlaysModel model=new VideoPlaysModel(123456,response);
      assertEquals(model.getOtherPlays(),0);
      assertEquals(model.getTotalPlays(),0);
      assertNotNull(model.getPlays());
      assertEquals(model.getPlays().size(),0);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14039
Project: 14039
Buggy source:
public void testVideoPlays() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VideoPlaysModel model=new VideoPlaysModel("String_Node_Str",response);
      assertEquals(model.getOtherPlays(),0);
      assertEquals(model.getTotalPlays(),2);
      assertNotNull(model.getPlays());
      assertEquals(model.getPlays().size(),1);
      SingleItemModel videoItemModel=model.getPlays().get(0);
      assertEquals(videoItemModel.getTitle(),"String_Node_Str");
      assertEquals(videoItemModel.getUrl(),"String_Node_Str");
      assertEquals(videoItemModel.getItemID(),"String_Node_Str");
      assertEquals(videoItemModel.getTotals(),2);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}

Fixed version (ground truth):
public void testVideoPlays() throws Exception {
  StatsRestRequestAbstractListener listener=new StatsRestRequestAbstractListener(){
    @Override void parseResponse(    JSONObject response) throws JSONException {
      VideoPlaysModel model=new VideoPlaysModel(1234567890,response);
      assertEquals(model.getOtherPlays(),0);
      assertEquals(model.getTotalPlays(),2);
      assertNotNull(model.getPlays());
      assertEquals(model.getPlays().size(),1);
      SingleItemModel videoItemModel=model.getPlays().get(0);
      assertEquals(videoItemModel.getTitle(),"String_Node_Str");
      assertEquals(videoItemModel.getUrl(),"String_Node_Str");
      assertEquals(videoItemModel.getItemID(),"String_Node_Str");
      assertEquals(videoItemModel.getTotals(),2);
    }
  }
;
  mRestClient.makeRequest(Request.Method.POST,"String_Node_Str",null,listener,errListener);
}
Program: 14040
Project: 14040
Buggy source:
private void setupSuggestionServiceAndAdapter(){
  if (!isAdded() || mSiteStore.hasDotComOrJetpackSiteWithSiteId(mRemoteBlogId))   return;
  mSuggestionServiceConnectionManager=new SuggestionServiceConnectionManager(getActivity(),mRemoteBlogId);
  mSuggestionAdapter=SuggestionUtils.setupSuggestions(mSiteStore.getSiteBySiteId(mRemoteBlogId),getActivity(),mSuggestionServiceConnectionManager);
  if (mSuggestionAdapter != null) {
    mEditReply.setAdapter(mSuggestionAdapter);
  }
}

Fixed version (ground truth):
private void setupSuggestionServiceAndAdapter(){
  if (!isAdded() || mSiteStore.hasWPComOrJetpackSiteWithSiteId(mRemoteBlogId))   return;
  mSuggestionServiceConnectionManager=new SuggestionServiceConnectionManager(getActivity(),mRemoteBlogId);
  mSuggestionAdapter=SuggestionUtils.setupSuggestions(mSiteStore.getSiteBySiteId(mRemoteBlogId),getActivity(),mSuggestionServiceConnectionManager);
  if (mSuggestionAdapter != null) {
    mEditReply.setAdapter(mSuggestionAdapter);
  }
}
Program: 14041
Project: 14041
Buggy source:
private void saveHiddenSites(){
  List<SiteModel> sites=mSiteStore.getDotComSites();
  for (  SiteModel site : sites) {
    site.setIsVisible(true);
    mDispatcher.dispatch(SiteActionBuilder.newUpdateSiteAction(site));
  }
  boolean skippedCurrentSite=false;
  String currentSiteName=null;
  SiteList hiddenSites=getAdapter().getHiddenSites();
  for (  SiteRecord site : hiddenSites) {
    if (site.localId == mCurrentLocalId) {
      skippedCurrentSite=true;
      currentSiteName=site.getBlogNameOrHomeURL();
    }
 else {
      SiteModel siteModel=mSiteStore.getSiteByLocalId(site.localId);
      siteModel.setIsVisible(false);
      mDispatcher.dispatch(SiteActionBuilder.newUpdateSiteAction(siteModel));
      StatsTable.deleteStatsForBlog(this,site.localId);
    }
  }
  if (skippedCurrentSite) {
    String cantHideCurrentSite=getString(R.string.site_picker_cant_hide_current_site);
    ToastUtils.showToast(this,String.format(cantHideCurrentSite,currentSiteName),ToastUtils.Duration.LONG);
  }
}

Fixed version (ground truth):
private void saveHiddenSites(){
  List<SiteModel> sites=mSiteStore.getWPComSites();
  for (  SiteModel site : sites) {
    site.setIsVisible(true);
    mDispatcher.dispatch(SiteActionBuilder.newUpdateSiteAction(site));
  }
  boolean skippedCurrentSite=false;
  String currentSiteName=null;
  SiteList hiddenSites=getAdapter().getHiddenSites();
  for (  SiteRecord site : hiddenSites) {
    if (site.localId == mCurrentLocalId) {
      skippedCurrentSite=true;
      currentSiteName=site.getBlogNameOrHomeURL();
    }
 else {
      SiteModel siteModel=mSiteStore.getSiteByLocalId(site.localId);
      siteModel.setIsVisible(false);
      mDispatcher.dispatch(SiteActionBuilder.newUpdateSiteAction(siteModel));
      StatsTable.deleteStatsForBlog(this,site.localId);
    }
  }
  if (skippedCurrentSite) {
    String cantHideCurrentSite=getString(R.string.site_picker_cant_hide_current_site);
    ToastUtils.showToast(this,String.format(cantHideCurrentSite,currentSiteName),ToastUtils.Duration.LONG);
  }
}
Program: 14042
Project: 14042
Buggy source:
private void updateMenuItemVisibility(){
  if (mMenuAdd == null || mMenuEdit == null || mMenuSearch == null)   return;
  if (getAdapter().getIsInSearchMode()) {
    mMenuEdit.setVisible(false);
    mMenuAdd.setVisible(false);
  }
 else {
    mMenuEdit.setVisible(mSiteStore.getDotComSitesCount() > 1);
    mMenuAdd.setVisible(true);
  }
  mMenuSearch.setVisible(mSiteStore.getSitesCount() > 1);
}

Fixed version (ground truth):
private void updateMenuItemVisibility(){
  if (mMenuAdd == null || mMenuEdit == null || mMenuSearch == null)   return;
  if (getAdapter().getIsInSearchMode()) {
    mMenuEdit.setVisible(false);
    mMenuAdd.setVisible(false);
  }
 else {
    mMenuEdit.setVisible(mSiteStore.getWPComSitesCount() > 1);
    mMenuAdd.setVisible(true);
  }
  mMenuSearch.setVisible(mSiteStore.getSitesCount() > 1);
}
Program: 14043
Project: 14043
Buggy source:
private List<SiteModel> getBlogsForCurrentView(){
  if (mShowHiddenSites) {
    if (mShowSelfHostedSites) {
      return mSiteStore.getSites();
    }
 else {
      return mSiteStore.getDotComSites();
    }
  }
 else {
    if (mShowSelfHostedSites) {
      List<SiteModel> out=mSiteStore.getVisibleDotComSites();
      out.addAll(mSiteStore.getDotOrgSites());
      return out;
    }
 else {
      return mSiteStore.getVisibleDotComSites();
    }
  }
}

Fixed version (ground truth):
private List<SiteModel> getBlogsForCurrentView(){
  if (mShowHiddenSites) {
    if (mShowSelfHostedSites) {
      return mSiteStore.getSites();
    }
 else {
      return mSiteStore.getWPComSites();
    }
  }
 else {
    if (mShowSelfHostedSites) {
      List<SiteModel> out=mSiteStore.getVisibleWPComSites();
      out.addAll(mSiteStore.getSelfHostedSites());
      return out;
    }
 else {
      return mSiteStore.getVisibleWPComSites();
    }
  }
}
Program: 14044
Project: 14044
Buggy source:
public void updateWebAddress(String newWebAddress){
  PostAccountSettingsPayload payload=new PostAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",newWebAddress);
  mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));
}

Fixed version (ground truth):
public void updateWebAddress(String newWebAddress){
  PushAccountSettingsPayload payload=new PushAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",newWebAddress);
  mDispatcher.dispatch(AccountActionBuilder.newPushSettingsAction(payload));
}
Program: 14045
Project: 14045
Buggy source:
@Override protected Void doInBackground(Void... params){
  List<SiteModel> sites=mSiteStore.getDotComSites();
  mPrimarySitePreference.setEntries(getSiteNamesFromSites(sites));
  mPrimarySitePreference.setEntryValues(getSiteIdsFromSites(sites));
  mPrimarySitePreference.setDetails(getHomeURLOrHostNamesFromSites(sites));
  return null;
}

Fixed version (ground truth):
@Override protected Void doInBackground(Void... params){
  List<SiteModel> sites=mSiteStore.getWPComSites();
  mPrimarySitePreference.setEntries(getSiteNamesFromSites(sites));
  mPrimarySitePreference.setEntryValues(getSiteIdsFromSites(sites));
  mPrimarySitePreference.setDetails(getHomeURLOrHostNamesFromSites(sites));
  return null;
}
Program: 14046
Project: 14046
Buggy source:
private void cancelPendingEmailChange(){
  PostAccountSettingsPayload payload=new PostAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str","String_Node_Str");
  mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));
  if (mEmailSnackbar != null && mEmailSnackbar.isShown()) {
    mEmailSnackbar.dismiss();
  }
}

Fixed version (ground truth):
private void cancelPendingEmailChange(){
  PushAccountSettingsPayload payload=new PushAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str","String_Node_Str");
  mDispatcher.dispatch(AccountActionBuilder.newPushSettingsAction(payload));
  if (mEmailSnackbar != null && mEmailSnackbar.isShown()) {
    mEmailSnackbar.dismiss();
  }
}
Program: 14047
Project: 14047
Buggy source:
private void updatePrimaryBlog(String blogId){
  PostAccountSettingsPayload payload=new PostAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",blogId);
  mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));
}

Fixed version (ground truth):
private void updatePrimaryBlog(String blogId){
  PushAccountSettingsPayload payload=new PushAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",blogId);
  mDispatcher.dispatch(AccountActionBuilder.newPushSettingsAction(payload));
}
Program: 14048
Project: 14048
Buggy source:
private void updateEmail(String newEmail){
  PostAccountSettingsPayload payload=new PostAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",newEmail);
  mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));
}

Fixed version (ground truth):
private void updateEmail(String newEmail){
  PushAccountSettingsPayload payload=new PushAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put("String_Node_Str",newEmail);
  mDispatcher.dispatch(AccountActionBuilder.newPushSettingsAction(payload));
}
Program: 14049
Project: 14049
Buggy source:
private void updateMyProfileForLabel(TextView textView){
  PostAccountSettingsPayload payload=new PostAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put(restParamForTextView(textView),textView.getText().toString());
  mDispatcher.dispatch(AccountActionBuilder.newPostSettingsAction(payload));
}

Fixed version (ground truth):
private void updateMyProfileForLabel(TextView textView){
  PushAccountSettingsPayload payload=new PushAccountSettingsPayload();
  payload.params=new HashMap<>();
  payload.params.put(restParamForTextView(textView),textView.getText().toString());
  mDispatcher.dispatch(AccountActionBuilder.newPushSettingsAction(payload));
}
Program: 14050
Project: 14050
Buggy source:
private void configureBlogsSettings(){
  if (!isAdded())   return;
  List<SiteModel> sites;
  String trimmedQuery="String_Node_Str";
  if (mSearchView != null && !TextUtils.isEmpty(mSearchView.getQuery())) {
    trimmedQuery=mSearchView.getQuery().toString().trim();
    sites=mSiteStore.getDotComSiteByNameOrUrlMatching(trimmedQuery);
  }
 else {
    sites=mSiteStore.getDotComSites();
  }
  mSiteCount=sites.size();
  Context context=getActivity();
  PreferenceCategory blogsCategory=(PreferenceCategory)findPreference(getString(R.string.pref_notification_blogs));
  blogsCategory.removeAll();
  for (  SiteModel site : sites) {
    if (context == null)     return;
    PreferenceScreen prefScreen=getPreferenceManager().createPreferenceScreen(context);
    prefScreen.setTitle(SiteUtils.getSiteNameOrHomeURL(site));
    prefScreen.setSummary(SiteUtils.getHomeURLOrHostName(site));
    addPreferencesForPreferenceScreen(prefScreen,Channel.BLOGS,site.getSiteId());
    blogsCategory.addPreference(prefScreen);
  }
  if (mSiteCount == 0 && !TextUtils.isEmpty(trimmedQuery)) {
    Preference searchResultsPref=new Preference(context);
    searchResultsPref.setSummary(String.format(getString(R.string.notifications_no_search_results),trimmedQuery));
    blogsCategory.addPreference(searchResultsPref);
  }
  updateSearchMenuVisibility();
}

Fixed version (ground truth):
private void configureBlogsSettings(){
  if (!isAdded())   return;
  List<SiteModel> sites;
  String trimmedQuery="String_Node_Str";
  if (mSearchView != null && !TextUtils.isEmpty(mSearchView.getQuery())) {
    trimmedQuery=mSearchView.getQuery().toString().trim();
    sites=mSiteStore.getWPComSiteByNameOrUrlMatching(trimmedQuery);
  }
 else {
    sites=mSiteStore.getWPComSites();
  }
  mSiteCount=sites.size();
  Context context=getActivity();
  PreferenceCategory blogsCategory=(PreferenceCategory)findPreference(getString(R.string.pref_notification_blogs));
  blogsCategory.removeAll();
  for (  SiteModel site : sites) {
    if (context == null)     return;
    PreferenceScreen prefScreen=getPreferenceManager().createPreferenceScreen(context);
    prefScreen.setTitle(SiteUtils.getSiteNameOrHomeURL(site));
    prefScreen.setSummary(SiteUtils.getHomeURLOrHostName(site));
    addPreferencesForPreferenceScreen(prefScreen,Channel.BLOGS,site.getSiteId());
    blogsCategory.addPreference(prefScreen);
  }
  if (mSiteCount == 0 && !TextUtils.isEmpty(trimmedQuery)) {
    Preference searchResultsPref=new Preference(context);
    searchResultsPref.setSummary(String.format(getString(R.string.notifications_no_search_results),trimmedQuery));
    blogsCategory.addPreference(searchResultsPref);
  }
  updateSearchMenuVisibility();
}
Program: 14051
Project: 14051
Buggy source:
@Override public void run(){
  List<SiteModel> sites=mSiteStore.getDotComSites();
  for (  SiteModel site : sites) {
    if (site.getUrl() != null && site.getSiteId() != 0) {
      String normURL=normalizeAndRemoveScheme(site.getUrl());
      long blogID=site.getSiteId();
      userBlogs.put(normURL,blogID);
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  List<SiteModel> sites=mSiteStore.getWPComSites();
  for (  SiteModel site : sites) {
    if (site.getUrl() != null && site.getSiteId() != 0) {
      String normURL=normalizeAndRemoveScheme(site.getUrl());
      long blogID=site.getSiteId();
      userBlogs.put(normURL,blogID);
    }
  }
}
Program: 14052
Project: 14052
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThreadPoolExecutor blogsListCreatorExecutor=(ThreadPoolExecutor)Executors.newFixedThreadPool(1);
  blogsListCreatorExecutor.submit(new Thread(){
    @Override public void run(){
      List<SiteModel> sites=mSiteStore.getDotComSites();
      for (      SiteModel site : sites) {
        if (site.getUrl() != null && site.getSiteId() != 0) {
          String normURL=normalizeAndRemoveScheme(site.getUrl());
          long blogID=site.getSiteId();
          userBlogs.put(normURL,blogID);
        }
      }
    }
  }
);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThreadPoolExecutor blogsListCreatorExecutor=(ThreadPoolExecutor)Executors.newFixedThreadPool(1);
  blogsListCreatorExecutor.submit(new Thread(){
    @Override public void run(){
      List<SiteModel> sites=mSiteStore.getWPComSites();
      for (      SiteModel site : sites) {
        if (site.getUrl() != null && site.getSiteId() != 0) {
          String normURL=normalizeAndRemoveScheme(site.getUrl());
          long blogID=site.getSiteId();
          userBlogs.put(normURL,blogID);
        }
      }
    }
  }
);
}
Program: 14053
Project: 14053
Buggy source:
private List<SiteModel> getBlogsForCurrentView(){
  if (mShowHiddenSites) {
    if (mShowSelfHostedSites) {
      return mSiteStore.getSites();
    }
 else {
      return mSiteStore.getDotComSites();
    }
  }
 else {
    if (mShowSelfHostedSites) {
      List<SiteModel> out=mSiteStore.getVisibleDotComSites();
      out.addAll(mSiteStore.getDotOrgSites());
      return out;
    }
 else {
      return mSiteStore.getVisibleDotComSites();
    }
  }
}

Fixed version (ground truth):
private List<SiteModel> getBlogsForCurrentView(){
  if (mShowHiddenSites) {
    if (mShowSelfHostedSites) {
      return mSiteStore.getSites();
    }
 else {
      return mSiteStore.getWPComSites();
    }
  }
 else {
    if (mShowSelfHostedSites) {
      List<SiteModel> out=mSiteStore.getVisibleWPComSites();
      out.addAll(mSiteStore.getSelfHostedSites());
      return out;
    }
 else {
      return mSiteStore.getVisibleWPComSites();
    }
  }
}
Program: 14054
Project: 14054
Buggy source:
/** 
 * This method doesn't do much, but insure we're doing the same check in all parts of the app.
 * @return true if the user is signed in a WordPress.com account or if he has a .org site.
 */
public static boolean isSignedInWPComOrHasWPOrgSite(AccountStore accountStore,SiteStore siteStore){
  return accountStore.hasAccessToken() || siteStore.hasDotOrgSite();
}

Fixed version (ground truth):
/** 
 * This method doesn't do much, but insure we're doing the same check in all parts of the app.
 * @return true if the user is signed in a WordPress.com account or if he has a .org site.
 */
public static boolean isSignedInWPComOrHasWPOrgSite(AccountStore accountStore,SiteStore siteStore){
  return accountStore.hasAccessToken() || siteStore.hasSelfHostedSite();
}
Program: 14055
Project: 14055
Buggy source:
public SiteModel getSelectedSite(){
  if (getActivity() instanceof WPMainActivity) {
    WPMainActivity mainActivity=(WPMainActivity)getActivity();
    mainActivity.getSelectedSite();
  }
  return null;
}

Fixed version (ground truth):
public SiteModel getSelectedSite(){
  if (getActivity() instanceof WPMainActivity) {
    WPMainActivity mainActivity=(WPMainActivity)getActivity();
    return mainActivity.getSelectedSite();
  }
  return null;
}
Program: 14056
Project: 14056
Buggy source:
/** 
 * In order to avoid syncing issues, this method will be called when People page is created. We only keep the first page of users, so we don't show an empty screen. When fresh data is received, it'll replace the existing page.
 * @param localTableBlogId - the local blog id people will be deleted from
 */
public static void deletePeopleExceptForFirstPage(int localTableBlogId){
  int fetchLimit=PeopleUtils.FETCH_LIMIT;
  String[] tables={TEAM_TABLE,FOLLOWERS_TABLE,EMAIL_FOLLOWERS_TABLE,VIEWERS_TABLE};
  getWritableDb().beginTransaction();
  try {
    for (    String table : tables) {
      int size=getPeopleCountForLocalBlogId(table,localTableBlogId);
      if (size > fetchLimit) {
        String where="String_Node_Str" + localTableBlogId;
        String[] columns={"String_Node_Str"};
        String limit=Integer.toString(size - fetchLimit);
        String orderBy=null;
        if (shouldOrderAlphabetically(table)) {
          orderBy="String_Node_Str";
        }
        String inQuery=SQLiteQueryBuilder.buildQueryString(false,table,columns,where,null,null,orderBy,limit);
        String[] args=new String[]{Integer.toString(localTableBlogId)};
        getWritableDb().delete(table,"String_Node_Str" + inQuery + "String_Node_Str",args);
      }
    }
    getWritableDb().setTransactionSuccessful();
  }
  finally {
    getWritableDb().endTransaction();
  }
}

Fixed version (ground truth):
/** 
 * In order to avoid syncing issues, this method will be called when People page is created. We only keep the first page of users, so we don't show an empty screen. When fresh data is received, it'll replace the existing page.
 * @param localTableBlogId - the local blog id people will be deleted from
 */
public static void deletePeopleExceptForFirstPage(int localTableBlogId){
  int fetchLimit=PeopleUtils.FETCH_LIMIT;
  String[] tables={TEAM_TABLE,FOLLOWERS_TABLE,EMAIL_FOLLOWERS_TABLE,VIEWERS_TABLE};
  getWritableDb().beginTransaction();
  try {
    for (    String table : tables) {
      int size=getPeopleCountForLocalBlogId(table,localTableBlogId);
      if (size > fetchLimit) {
        String where="String_Node_Str" + localTableBlogId;
        String[] columns={"String_Node_Str"};
        String limit=Integer.toString(size - fetchLimit);
        String orderBy;
        if (shouldOrderAlphabetically(table)) {
          orderBy="String_Node_Str";
        }
 else {
          orderBy="String_Node_Str";
        }
        String inQuery=SQLiteQueryBuilder.buildQueryString(false,table,columns,where,null,null,orderBy,limit);
        String[] args=new String[]{Integer.toString(localTableBlogId)};
        getWritableDb().delete(table,"String_Node_Str" + inQuery + "String_Node_Str",args);
      }
    }
    getWritableDb().setTransactionSuccessful();
  }
  finally {
    getWritableDb().endTransaction();
  }
}
Program: 14057
Project: 14057
Buggy source:
private static List<Person> getPeople(String table,int localTableBlogId){
  String[] args={Integer.toString(localTableBlogId)};
  String orderBy="String_Node_Str";
  if (shouldOrderAlphabetically(table)) {
    orderBy="String_Node_Str";
  }
  Cursor c=getReadableDb().rawQuery("String_Node_Str" + table + "String_Node_Str"+ orderBy,args);
  List<Person> people=new ArrayList<>();
  try {
    while (c.moveToNext()) {
      Person person=getPersonFromCursor(c,table,localTableBlogId);
      people.add(person);
    }
  }
  finally {
    SqlUtils.closeCursor(c);
  }
  return people;
}

Fixed version (ground truth):
private static List<Person> getPeople(String table,int localTableBlogId){
  String[] args={Integer.toString(localTableBlogId)};
  String orderBy;
  if (shouldOrderAlphabetically(table)) {
    orderBy="String_Node_Str";
  }
 else {
    orderBy="String_Node_Str";
  }
  Cursor c=getReadableDb().rawQuery("String_Node_Str" + table + "String_Node_Str"+ orderBy,args);
  List<Person> people=new ArrayList<>();
  try {
    while (c.moveToNext()) {
      Person person=getPersonFromCursor(c,table,localTableBlogId);
      people.add(person);
    }
  }
  finally {
    SqlUtils.closeCursor(c);
  }
  return people;
}
Program: 14060
Project: 14060
Buggy source:
@Override public void onSuccess(JSONObject createSiteResponse){
  if (getActivity() == null) {
    return;
  }
  endProgress();
  try {
    JSONObject details=createSiteResponse.getJSONObject("String_Node_Str");
    String blogName=details.getString("String_Node_Str");
    String xmlRpcUrl=details.getString("String_Node_Str");
    String homeUrl=details.getString("String_Node_Str");
    String blogId=details.getString("String_Node_Str");
    String username=AccountHelper.getDefaultAccount().getUserName();
    BlogUtils.addOrUpdateBlog(blogName,xmlRpcUrl,homeUrl,blogId,username,null,null,null,true,true,PlansConstants.DEFAULT_PLAN_ID_FOR_NEW_BLOG,null,null);
    ToastUtils.showToast(getActivity(),R.string.new_blog_wpcom_created);
  }
 catch (  JSONException e) {
    AppLog.e(T.NUX,"String_Node_Str",e);
  }
  getActivity().setResult(Activity.RESULT_OK);
  getActivity().finish();
}

Fixed version (ground truth):
@Override public void onSuccess(JSONObject createSiteResponse){
  if (getActivity() == null) {
    return;
  }
  endProgress();
  try {
    JSONObject details=createSiteResponse.getJSONObject("String_Node_Str");
    String blogName=details.getString("String_Node_Str");
    String xmlRpcUrl=details.getString("String_Node_Str");
    String homeUrl=details.getString("String_Node_Str");
    String blogId=details.getString("String_Node_Str");
    String username=AccountHelper.getDefaultAccount().getUserName();
    BlogUtils.addOrUpdateBlog(blogName,xmlRpcUrl,homeUrl,blogId,username,null,null,null,true,true,PlansConstants.DEFAULT_PLAN_ID_FOR_NEW_BLOG,null,null);
    AnalyticsTracker.track(AnalyticsTracker.Stat.CREATED_SITE);
    ToastUtils.showToast(getActivity(),R.string.new_blog_wpcom_created);
  }
 catch (  JSONException e) {
    AppLog.e(T.NUX,"String_Node_Str",e);
  }
  getActivity().setResult(Activity.RESULT_OK);
  getActivity().finish();
}
Program: 14062
Project: 14062
Buggy source:
public CreateUserAndBlog(String email,String username,String password,String siteUrl,String siteName,String language,RestClientUtils restClient,Context context,ErrorListener errorListener,Callback callback){
  mEmail=email;
  mUsername=username;
  mPassword=password;
  mSiteUrl=siteUrl;
  mSiteName=siteName;
  mLanguage=language;
  mCallback=callback;
  mContext=context;
  mErrorListener=errorListener;
  mRestClient=restClient;
  mResponseHandler=new ResponseHandler();
}

Fixed version (ground truth):
public CreateUserAndBlog(String email,String username,String password,String siteUrl,String siteName,String language,RestClientUtils restClient,ErrorListener errorListener,Callback callback){
  mEmail=email;
  mUsername=username;
  mPassword=password;
  mSiteUrl=siteUrl;
  mSiteName=siteName;
  mLanguage=language;
  mCallback=callback;
  mErrorListener=errorListener;
  mRestClient=restClient;
  mResponseHandler=new ResponseHandler();
}