Program: 63552
Project: 63552
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_story_comments,container,false);
  mActionBar=getActivity().getActionBar();
  mActionBar.show();
  mActionBar.setTitle("String_Node_Str");
  mCommentList=new ArrayList<Comment>();
  mProgressBar=(ProgressBar)rootView.findViewById(R.id.progress_bar);
  mContainer=rootView.findViewById(R.id.container);
  showProgress(true);
  mCommentsListView=(ListView)rootView.findViewById(R.id.comments_list);
  mPreviousTopLevelButton=(Button)rootView.findViewById(R.id.prev_top_level);
  mPreviousTopLevelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      int currentIndex=mCommentsListView.getFirstVisiblePosition() - 1;
      for (int i=currentIndex - 1; i >= 0; i--) {
        if (mListAdapter.getItem(i).getLevel() == 0) {
          mCommentsListView.setSelectionFromTop(i + 1,0);
          return;
        }
      }
    }
  }
);
  mNextTopLevelButton=(Button)rootView.findViewById(R.id.next_top_level);
  mNextTopLevelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      int currentIndex=mCommentsListView.getFirstVisiblePosition() + 1;
      for (int i=currentIndex + 1; i < mListAdapter.getCount(); i++) {
        if (mListAdapter.getItem(i).getLevel() == 0) {
          mCommentsListView.setSelectionFromTop(i - 1,0);
          return;
        }
      }
    }
  }
);
  mCommentsListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener(){
    @Override public boolean onItemLongClick(    AdapterView<?> adapterView,    View view,    int i,    long l){
      return false;
    }
  }
);
  mListAdapter=new CommentsListAdapter(getActivity(),R.layout.comments_list_item,mCommentList);
  mCommentsListView.setAdapter(mListAdapter);
  mSwipeRefreshLayout=(SwipeRefreshLayout)rootView.findViewById(R.id.swipe_container);
  mSwipeRefreshLayout.setColorScheme(android.R.color.holo_orange_dark,android.R.color.holo_orange_light,android.R.color.holo_orange_dark,android.R.color.holo_orange_light);
  mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){
    @Override public void onRefresh(){
      mSwipeRefreshLayout.setRefreshing(true);
      refresh();
    }
  }
);
  mOpenLinkDialogButton=(Button)rootView.findViewById(R.id.open_link);
  refresh();
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  View rootView=inflater.inflate(R.layout.fragment_story_comments,container,false);
  mActionBar=getActivity().getActionBar();
  mActionBar.show();
  mActionBar.setTitle("String_Node_Str");
  mCommentList=new ArrayList<Comment>();
  mProgressBar=(ProgressBar)rootView.findViewById(R.id.progress_bar);
  mContainer=rootView.findViewById(R.id.container);
  showProgress(true);
  mCommentsListView=(ListView)rootView.findViewById(R.id.comments_list);
  mPreviousTopLevelButton=(Button)rootView.findViewById(R.id.prev_top_level);
  mPreviousTopLevelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      int currentIndex=mCommentsListView.getFirstVisiblePosition() - 1;
      for (int i=currentIndex - 1; i >= 0; i--) {
        if (mListAdapter.getItem(i).getLevel() == 0) {
          mCommentsListView.setSelectionFromTop(i + 1,0);
          return;
        }
      }
    }
  }
);
  mNextTopLevelButton=(Button)rootView.findViewById(R.id.next_top_level);
  mNextTopLevelButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      int currentIndex=mCommentsListView.getFirstVisiblePosition() + 1;
      for (int i=currentIndex + 1; i < mListAdapter.getCount(); i++) {
        if (mListAdapter.getItem(i).getLevel() == 0) {
          mCommentsListView.setSelectionFromTop(i - 1,0);
          return;
        }
      }
    }
  }
);
  mCommentsListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener(){
    @Override public boolean onItemLongClick(    AdapterView<?> adapterView,    View view,    int i,    long l){
      return false;
    }
  }
);
  mListAdapter=new CommentsListAdapter(getActivity(),R.layout.comments_list_item,mCommentList);
  mHeaderViewHolder=new HeaderViewHolder();
  View headerView=inflater.inflate(R.layout.comments_header,null);
  mHeaderViewHolder.mStoryTitle=(TextView)headerView.findViewById(R.id.story_title);
  mHeaderViewHolder.mStoryDomain=(TextView)headerView.findViewById(R.id.story_domain);
  mHeaderViewHolder.mStorySubmitter=(TextView)headerView.findViewById(R.id.story_submitter);
  mHeaderViewHolder.mStoryPoints=(TextView)headerView.findViewById(R.id.story_points);
  mHeaderViewHolder.mStoryLongAgo=(TextView)headerView.findViewById(R.id.story_long_ago);
  mHeaderViewHolder.mCommentsCount=(TextView)headerView.findViewById(R.id.comment_count);
  mCommentsListView.addHeaderView(headerView);
  mCommentsListView.setAdapter(mListAdapter);
  mSwipeRefreshLayout=(SwipeRefreshLayout)rootView.findViewById(R.id.swipe_container);
  mSwipeRefreshLayout.setColorScheme(android.R.color.holo_orange_dark,android.R.color.holo_orange_light,android.R.color.holo_orange_dark,android.R.color.holo_orange_light);
  mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){
    @Override public void onRefresh(){
      mSwipeRefreshLayout.setRefreshing(true);
      refresh();
    }
  }
);
  mOpenLinkDialogButton=(Button)rootView.findViewById(R.id.open_link);
  refresh();
  return rootView;
}