Program: 177880
Project: 177880
Buggy source:
@Override public H make(Context context){
  int four=getDIP(4);
  H header=createHeaderInstance(context);
  LayoutParams titlePanelLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titlePanelLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  header.setLayoutParams(titlePanelLayoutParams);
  header.setOrientation(LinearLayout.HORIZONTAL);
  header.setPadding(four,four,four,four);
  GradientDrawable background=new GradientDrawable(GradientDrawable.Orientation.BOTTOM_TOP,new int[]{Color.BLACK,Color.BLACK});
  Drawable[] layers=new Drawable[]{background,drawables.getDrawable("String_Node_Str",true,false,true)};
  LayerDrawable bg=new LayerDrawable(layers);
  bg.setLayerInset(1,0,0,0,1);
  header.setBackgroundDrawable(bg);
  TextView titleText=new TextView(context);
  titleText.setTextSize(TypedValue.COMPLEX_UNIT_DIP,20);
  titleText.setTextColor(colors.getColor(Colors.HEADER));
  titleText.setText(getHeaderText());
  titleText.setPadding(0,0,0,deviceUtils.getDIP(2));
  LayoutParams titleTextLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titleTextLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  titleText.setLayoutParams(titleTextLayoutParams);
  ImageView titleImage=new ImageView(context);
  titleImage.setImageDrawable(drawables.getDrawable("String_Node_Str",true));
  titleImage.setPadding(0,0,0,0);
  LayoutParams titleImageLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titleImageLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  titleImageLayoutParams.setMargins(four,0,four,0);
  titleImage.setLayoutParams(titleImageLayoutParams);
  header.setTitleText(titleText);
  header.addView(titleImage);
  header.addView(titleText);
  return header;
}

Fixed version (ground truth):
@Override public H make(Context context){
  int four=getDIP(4);
  int eight=getDIP(8);
  H header=createHeaderInstance(context);
  LayoutParams titlePanelLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titlePanelLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  header.setLayoutParams(titlePanelLayoutParams);
  header.setOrientation(LinearLayout.HORIZONTAL);
  header.setPadding(four,four,four,four);
  GradientDrawable background=new GradientDrawable(GradientDrawable.Orientation.BOTTOM_TOP,new int[]{Color.BLACK,Color.BLACK});
  Drawable headerBG=drawables.getDrawable("String_Node_Str",true,false,true);
  Drawable[] layers=new Drawable[]{background,headerBG};
  LayerDrawable bg=new LayerDrawable(layers);
  bg.setLayerInset(1,0,0,0,1);
  header.setBackgroundDrawable(bg);
  TextView titleText=new TextView(context);
  titleText.setTextSize(TypedValue.COMPLEX_UNIT_DIP,20);
  titleText.setTextColor(colors.getColor(Colors.HEADER));
  titleText.setText(getHeaderText());
  titleText.setPadding(0,0,0,deviceUtils.getDIP(2));
  LayoutParams titleTextLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titleTextLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  titleText.setLayoutParams(titleTextLayoutParams);
  ImageView titleImage=new ImageView(context);
  titleImage.setImageDrawable(drawables.getDrawable("String_Node_Str",true));
  titleImage.setPadding(0,0,0,0);
  LayoutParams titleImageLayoutParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT);
  titleImageLayoutParams.gravity=Gravity.CENTER_VERTICAL;
  titleImageLayoutParams.setMargins(eight,0,four,0);
  titleImage.setLayoutParams(titleImageLayoutParams);
  header.setTitleText(titleText);
  header.addView(titleImage);
  header.addView(titleText);
  return header;
}