Program: 143254
Project: 143254
Buggy source:
public ServerView(Server s,OnClickListener infoListener,OnClickListener consoleLogListener,OnClickListener deleteServerListener,OnClickListener addIP,OnClickListener manageServerListener,Context ctx){
  super(ctx);
  S=s;
  setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params1=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
  setLayoutParams(params1);
  int padding=Utils.getDisplayPixel(ctx,2);
  setPadding(padding,padding,padding,padding);
  row=new LinearLayoutWithView(ctx,this);
  row.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams _params1=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
  row.setLayoutParams(_params1);
  row.setBackgroundResource(R.drawable.rounded_corner_thin);
  text=new LinearLayoutWithView(ctx,(ServerView)this);
  text.setOrientation(LinearLayout.VERTICAL);
  LinearLayout.LayoutParams params2=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT,1f);
  text.setLayoutParams(params2);
  Name=new TextViewWithView(ctx,(ServerView)this);
  String servName=S.getName();
  Name.setText(servName);
  Name.setTextColor(Color.parseColor("String_Node_Str"));
  Name.setOnClickListener(infoListener);
  Name.setTypeface(null,Typeface.BOLD);
  Name.setEllipsize(TextUtils.TruncateAt.END);
  Name.setSingleLine();
  Flavor=new TextViewWithView(ctx,(ServerView)this);
  String flavName=S.getFlavor() != null ? S.getFlavor().getName() : "String_Node_Str";
  Flavor.setText("String_Node_Str" + flavName);
  Flavor.setOnClickListener(infoListener);
  Flavor.setTextColor(Color.parseColor("String_Node_Str"));
  Flavor.setEllipsize(TextUtils.TruncateAt.END);
  Flavor.setSingleLine();
  Status=new TextViewWithView(ctx,(ServerView)this);
  Status.setText("String_Node_Str" + S.getStatus());
  Status.setOnClickListener(infoListener);
  Task=new TextViewWithView(ctx,(ServerView)this);
  Task.setText("String_Node_Str" + (S.getTask() != null || S.getTask().compareTo("String_Node_Str") == 0 ? S.getTask() : getContext().getString(R.string.NONE)));
  Task.setOnClickListener(infoListener);
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0)   Status.setTextColor(Color.parseColor("String_Node_Str"));
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0)   Status.setTextColor(Color.parseColor("String_Node_Str"));
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0) {
    Status.setText("String_Node_Str" + S.getStatus() + "String_Node_Str"+ (S.getTask() != null || S.getTask().compareTo("String_Node_Str") == 0 ? S.getTask() : getContext().getString(R.string.NONE))+ "String_Node_Str");
    if (S.getTask().compareToIgnoreCase("String_Node_Str") == 0)     Status.setTextColor(Color.parseColor("String_Node_Str"));
  }
  if (S.getTask().compareToIgnoreCase("String_Node_Str") == 0)   Status.setText(ctx.getString(R.string.NONE));
  LinearLayout.LayoutParams params5=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  consoleLog=new ButtonWithView(ctx,this);
  consoleLog.setText("String_Node_Str");
  consoleLog.setTextSize(10.0f);
  int density=200;
  String dispDensity=Configuration.getInstance().getValue("String_Node_Str","String_Node_Str");
  if (dispDensity != null)   density=Integer.parseInt(dispDensity);
  consoleLog.setPadding(10 * density,2 * density,10 * density,2 * density);
  consoleLog.setOnClickListener(consoleLogListener);
  consoleLog.setLayoutParams(params5);
  serverUpdateProgress=new ProgressBar(ctx,null,android.R.attr.progressBarStyleSmall);
  serverUpdateProgress.setIndeterminate(true);
  LayoutParams params7=new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  serverUpdateProgress.setLayoutParams(params7);
  serverUpdateProgress.setVisibility(View.INVISIBLE);
  btns2=new LinearLayoutWithView(ctx,(ServerView)this);
  btns2.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params6=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  btns2.addView(consoleLog);
  btns2.addView(serverUpdateProgress);
  text.addView(Name);
  text.addView(Flavor);
  text.addView(Status);
  text.addView(Task);
  text.addView(btns2);
  text.setOnClickListener(infoListener);
  row.addView(text);
  setOnClickListener(infoListener);
  deleteServer=new ImageButtonWithView(ctx,this);
  deleteServer.setImageResource(android.R.drawable.ic_menu_close_clear_cancel);
  deleteServer.setOnClickListener(deleteServerListener);
  manageServer=new ImageButtonWithView(ctx,this);
  manageServer.setImageResource(android.R.drawable.ic_menu_edit);
  manageServer.setOnClickListener(manageServerListener);
  addIPToServer=new ButtonWithView(ctx,this);
  addIPToServer.setText("String_Node_Str");
  addIPToServer.setOnClickListener(addIP);
  btns=new LinearLayoutWithView(ctx,(ServerView)this);
  btns.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params3=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT,1f);
  btns.setLayoutParams(params3);
  btns.setGravity(Gravity.RIGHT | Gravity.CENTER_VERTICAL);
  btns.addView(addIPToServer);
  btns.addView(manageServer);
  btns.addView(deleteServer);
  row.addView(btns);
  addView(row);
}

Fixed version (ground truth):
public ServerView(Server s,OnClickListener infoListener,OnClickListener consoleLogListener,OnClickListener deleteServerListener,OnClickListener addIP,OnClickListener manageServerListener,Context ctx){
  super(ctx);
  S=s;
  setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params1=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
  setLayoutParams(params1);
  int padding=Utils.getDisplayPixel(ctx,2);
  setPadding(padding,padding,padding,padding);
  row=new LinearLayoutWithView(ctx,this);
  row.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams _params1=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
  row.setLayoutParams(_params1);
  row.setBackgroundResource(R.drawable.rounded_corner_thin);
  text=new LinearLayoutWithView(ctx,(ServerView)this);
  text.setOrientation(LinearLayout.VERTICAL);
  LinearLayout.LayoutParams params2=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT,1f);
  text.setLayoutParams(params2);
  Name=new TextViewWithView(ctx,(ServerView)this);
  String servName=S.getName();
  Name.setText(servName);
  Name.setTextColor(Color.parseColor("String_Node_Str"));
  Name.setOnClickListener(infoListener);
  Name.setTypeface(null,Typeface.BOLD);
  Name.setEllipsize(TextUtils.TruncateAt.END);
  Name.setSingleLine();
  Flavor=new TextViewWithView(ctx,(ServerView)this);
  String flavName=S.getFlavor() != null ? S.getFlavor().getName() : "String_Node_Str";
  Flavor.setText("String_Node_Str" + flavName);
  Flavor.setOnClickListener(infoListener);
  Flavor.setTextColor(Color.parseColor("String_Node_Str"));
  Flavor.setEllipsize(TextUtils.TruncateAt.END);
  Flavor.setSingleLine();
  Status=new TextViewWithView(ctx,(ServerView)this);
  Status.setText("String_Node_Str" + S.getStatus());
  Status.setOnClickListener(infoListener);
  Task=new TextViewWithView(ctx,(ServerView)this);
  Task.setText("String_Node_Str" + (S.getTask() != null || S.getTask().compareTo("String_Node_Str") == 0 ? S.getTask() : getContext().getString(R.string.NONE)));
  Task.setOnClickListener(infoListener);
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0)   Status.setTextColor(Color.parseColor("String_Node_Str"));
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0)   Status.setTextColor(Color.parseColor("String_Node_Str"));
  if (S.getStatus().compareToIgnoreCase("String_Node_Str") == 0) {
    Status.setText("String_Node_Str" + S.getStatus());
  }
  if (S.getTask().compareToIgnoreCase("String_Node_Str") == 0)   Task.setText("String_Node_Str" + ctx.getString(R.string.NONE));
  LinearLayout.LayoutParams params5=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  consoleLog=new ButtonWithView(ctx,this);
  consoleLog.setText("String_Node_Str");
  consoleLog.setTextSize(10.0f);
  int density=200;
  String dispDensity=Configuration.getInstance().getValue("String_Node_Str","String_Node_Str");
  if (dispDensity != null)   density=Integer.parseInt(dispDensity);
  consoleLog.setPadding(10 * density,2 * density,10 * density,2 * density);
  consoleLog.setOnClickListener(consoleLogListener);
  consoleLog.setLayoutParams(params5);
  serverUpdateProgress=new ProgressBar(ctx,null,android.R.attr.progressBarStyleSmall);
  serverUpdateProgress.setIndeterminate(true);
  LayoutParams params7=new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  serverUpdateProgress.setLayoutParams(params7);
  serverUpdateProgress.setVisibility(View.INVISIBLE);
  btns2=new LinearLayoutWithView(ctx,(ServerView)this);
  btns2.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params6=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
  btns2.addView(consoleLog);
  btns2.addView(serverUpdateProgress);
  text.addView(Name);
  text.addView(Flavor);
  text.addView(Status);
  text.addView(Task);
  text.addView(btns2);
  text.setOnClickListener(infoListener);
  row.addView(text);
  setOnClickListener(infoListener);
  deleteServer=new ImageButtonWithView(ctx,this);
  deleteServer.setImageResource(android.R.drawable.ic_menu_close_clear_cancel);
  deleteServer.setOnClickListener(deleteServerListener);
  manageServer=new ImageButtonWithView(ctx,this);
  manageServer.setImageResource(android.R.drawable.ic_menu_edit);
  manageServer.setOnClickListener(manageServerListener);
  addIPToServer=new ButtonWithView(ctx,this);
  addIPToServer.setText("String_Node_Str");
  addIPToServer.setOnClickListener(addIP);
  btns=new LinearLayoutWithView(ctx,(ServerView)this);
  btns.setOrientation(LinearLayout.HORIZONTAL);
  LinearLayout.LayoutParams params3=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT,1f);
  btns.setLayoutParams(params3);
  btns.setGravity(Gravity.RIGHT | Gravity.CENTER_VERTICAL);
  btns.addView(addIPToServer);
  btns.addView(manageServer);
  btns.addView(deleteServer);
  row.addView(btns);
  addView(row);
}