Program: 177888
Project: 177888
Buggy source:
public void init(){
  final int eight=deviceUtils.getDIP(8);
  final int four=deviceUtils.getDIP(4);
  final int textColor=colors.getColor(Colors.BODY);
  final int titleColor=colors.getColor(Colors.TITLE);
  ListView.LayoutParams layout=new ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT,ListView.LayoutParams.FILL_PARENT);
  setDrawingCacheEnabled(true);
  setBackgroundColor(colors.getColor(Colors.LIST_ITEM_BG));
  setOrientation(LinearLayout.HORIZONTAL);
  setLayoutParams(layout);
  setGravity(Gravity.TOP);
  setPadding(eight,eight,eight,eight);
  LinearLayout contentLayout=new LinearLayout(getContext());
  contentLayout.setOrientation(LinearLayout.VERTICAL);
  contentLayout.setGravity(Gravity.LEFT);
  contentLayout.setPadding(0,0,0,0);
  LinearLayout.LayoutParams contentLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  contentLayoutParams.setMargins(four,0,0,0);
  contentLayout.setLayoutParams(contentLayoutParams);
  LinearLayout contentHeaderLayout=new LinearLayout(getContext());
  LinearLayout.LayoutParams contentHeaderLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  contentHeaderLayout.setLayoutParams(contentHeaderLayoutParams);
  contentHeaderLayout.setGravity(Gravity.LEFT);
  contentHeaderLayout.setOrientation(LinearLayout.HORIZONTAL);
  contentHeaderLayout.setPadding(0,0,0,0);
  LinearLayout.LayoutParams authorLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  author=new TextView(getContext());
  author.setTextSize(TypedValue.COMPLEX_UNIT_DIP,14);
  author.setMaxLines(1);
  author.setTypeface(Typeface.DEFAULT_BOLD);
  author.setTextColor(titleColor);
  author.setLayoutParams(authorLayoutParams);
  author.setSingleLine();
  LinearLayout.LayoutParams timeLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  timeLayoutParams.gravity=Gravity.RIGHT;
  time=new TextView(getContext());
  time.setTextSize(TypedValue.COMPLEX_UNIT_DIP,11);
  time.setMaxLines(1);
  time.setTypeface(Typeface.DEFAULT,Typeface.ITALIC);
  time.setTextColor(titleColor);
  time.setLayoutParams(timeLayoutParams);
  time.setSingleLine();
  time.setGravity(Gravity.RIGHT);
  LinearLayout.LayoutParams commentLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  comment=new TextView(getContext());
  comment.setTextSize(TypedValue.COMPLEX_UNIT_DIP,11);
  comment.setTextColor(textColor);
  comment.setLayoutParams(commentLayoutParams);
  contentHeaderLayout.addView(author);
  contentHeaderLayout.addView(time);
  contentLayout.addView(contentHeaderLayout);
  contentLayout.addView(comment);
  addView(contentLayout);
}

Fixed version (ground truth):
public void init(){
  final int eight=deviceUtils.getDIP(8);
  final int four=deviceUtils.getDIP(4);
  final int textColor=colors.getColor(Colors.BODY);
  final int titleColor=colors.getColor(Colors.TITLE);
  ListView.LayoutParams layout=new ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT,ListView.LayoutParams.FILL_PARENT);
  setDrawingCacheEnabled(true);
  setBackgroundColor(colors.getColor(Colors.LIST_ITEM_BG));
  setOrientation(LinearLayout.HORIZONTAL);
  setLayoutParams(layout);
  setGravity(Gravity.TOP);
  setPadding(eight,eight,eight,eight);
  LinearLayout contentLayout=new LinearLayout(getContext());
  contentLayout.setOrientation(LinearLayout.VERTICAL);
  contentLayout.setGravity(Gravity.LEFT);
  contentLayout.setPadding(0,0,0,0);
  LinearLayout.LayoutParams contentLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  contentLayoutParams.setMargins(four,0,0,0);
  contentLayout.setLayoutParams(contentLayoutParams);
  LinearLayout contentHeaderLayout=new LinearLayout(getContext());
  LinearLayout.LayoutParams contentHeaderLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  contentHeaderLayout.setLayoutParams(contentHeaderLayoutParams);
  contentHeaderLayout.setGravity(Gravity.LEFT);
  contentHeaderLayout.setOrientation(LinearLayout.HORIZONTAL);
  contentHeaderLayout.setPadding(0,0,0,0);
  LinearLayout.LayoutParams authorLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  author=new TextView(getContext());
  author.setTextSize(TypedValue.COMPLEX_UNIT_DIP,16);
  author.setMaxLines(1);
  author.setTypeface(Typeface.DEFAULT_BOLD);
  author.setTextColor(titleColor);
  author.setLayoutParams(authorLayoutParams);
  author.setSingleLine();
  LinearLayout.LayoutParams timeLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  timeLayoutParams.gravity=Gravity.RIGHT;
  time=new TextView(getContext());
  time.setTextSize(TypedValue.COMPLEX_UNIT_DIP,12);
  time.setMaxLines(1);
  time.setTypeface(Typeface.DEFAULT,Typeface.ITALIC);
  time.setTextColor(titleColor);
  time.setLayoutParams(timeLayoutParams);
  time.setSingleLine();
  time.setGravity(Gravity.RIGHT);
  LinearLayout.LayoutParams commentLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  comment=new TextView(getContext());
  comment.setTextSize(TypedValue.COMPLEX_UNIT_DIP,14);
  comment.setTextColor(textColor);
  comment.setLayoutParams(commentLayoutParams);
  contentHeaderLayout.addView(author);
  contentHeaderLayout.addView(time);
  contentLayout.addView(contentHeaderLayout);
  contentLayout.addView(comment);
  addView(contentLayout);
}