Program: 177868
Project: 177868
Buggy source:
@Override public CommentContentView make(Context context){
  LinearLayout contentView=new LinearLayout(context);
  LayoutParams contentViewLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  contentViewLayoutParams.weight=1.0f;
  contentView.setLayoutParams(contentViewLayoutParams);
  contentView.setOrientation(LinearLayout.VERTICAL);
  LayoutParams listViewLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);
  listViewLayoutParams.weight=1.0f;
  ListView listView=new ListView(context);
  listView.setId(CommentActivity.LIST_VIEW_ID);
  listView.setLayoutParams(listViewLayoutParams);
  listView.setDrawingCacheEnabled(true);
  listView.setCacheColorHint(0);
  listView.setDividerHeight(2);
  listView.setSmoothScrollbarEnabled(true);
  contentView.addView(listView);
  CommentContentView flipper=new CommentContentView(context);
  LayoutParams flipperLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);
  flipperLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  flipper.setLayoutParams(flipperLayoutParams);
  FrameLayout loadingScreen=new FrameLayout(context);
  FrameLayout.LayoutParams loadingScreenLayoutParams=new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT,FrameLayout.LayoutParams.FILL_PARENT);
  FrameLayout.LayoutParams progressLayoutParams=new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT,FrameLayout.LayoutParams.WRAP_CONTENT);
  loadingScreenLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  progressLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  loadingScreen.setLayoutParams(loadingScreenLayoutParams);
  ProgressBar progress=new ProgressBar(context,null,android.R.attr.progressBarStyleSmall);
  progress.setLayoutParams(progressLayoutParams);
  loadingScreen.addView(progress);
  flipper.addView(loadingScreen);
  flipper.addView(contentView);
  flipper.setDisplayedChild(0);
  flipper.setListView(listView);
  return flipper;
}

Fixed version (ground truth):
@Override public CommentContentView make(Context context){
  LinearLayout contentView=new LinearLayout(context);
  LayoutParams contentViewLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);
  contentView.setLayoutParams(contentViewLayoutParams);
  contentView.setOrientation(LinearLayout.VERTICAL);
  LayoutParams listViewLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);
  ListView listView=new ListView(context);
  listView.setId(CommentActivity.LIST_VIEW_ID);
  listView.setLayoutParams(listViewLayoutParams);
  listView.setDrawingCacheEnabled(true);
  listView.setCacheColorHint(0);
  listView.setDividerHeight(2);
  listView.setSmoothScrollbarEnabled(true);
  contentView.addView(listView);
  CommentContentView flipper=new CommentContentView(context);
  LayoutParams flipperLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.FILL_PARENT);
  flipperLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  flipper.setLayoutParams(flipperLayoutParams);
  FrameLayout loadingScreen=new FrameLayout(context);
  FrameLayout.LayoutParams loadingScreenLayoutParams=new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT,FrameLayout.LayoutParams.FILL_PARENT);
  FrameLayout.LayoutParams progressLayoutParams=new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT,FrameLayout.LayoutParams.WRAP_CONTENT);
  loadingScreenLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  progressLayoutParams.gravity=Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL;
  loadingScreen.setLayoutParams(loadingScreenLayoutParams);
  ProgressBar progress=new ProgressBar(context,null,android.R.attr.progressBarStyleSmall);
  progress.setLayoutParams(progressLayoutParams);
  loadingScreen.addView(progress);
  flipper.addView(loadingScreen);
  flipper.addView(contentView);
  flipper.setDisplayedChild(0);
  flipper.setListView(listView);
  return flipper;
}