Program: 167296
Project: 167296
Buggy source:
public DeployDialog(ApplicationContext context,EditAgentPanel parentPanel){
  super("String_Node_Str");
  this.context=context;
  this.configurationService=context.getConfigurationService();
  this.operationsService=context.getOperationsSerivce();
  this.parentPanel=parentPanel;
  this.context=context;
  final float DESIRED_WIDTH=1000;
  float width=DESIRED_WIDTH;
  float maxWidth=(float)(Page.getCurrent().getBrowserWindowWidth() * .8);
  if (maxWidth < DESIRED_WIDTH) {
    width=maxWidth;
  }
  setWidth(width,Unit.PIXELS);
  setHeight(600.0f,Unit.PIXELS);
  VerticalLayout layout=new VerticalLayout();
  layout.setMargin(true);
  layout.setSizeFull();
  addComponent(layout,1);
  deployByOptionGroup=new OptionGroup("String_Node_Str");
  deployByOptionGroup.addStyleName(ValoTheme.OPTIONGROUP_HORIZONTAL);
  deployByOptionGroup.addItem(DEPLOY_BY_PACKAGE);
  deployByOptionGroup.addItem(DEPLOY_BY_FLOW);
  layout.addComponent(deployByOptionGroup);
  selectDeploymentLayout=new VerticalLayout();
  selectDeploymentLayout.setSizeFull();
  selectDeploymentLayout.setMargin(new MarginInfo(true,false));
  layout.addComponent(selectDeploymentLayout);
  layout.setExpandRatio(selectDeploymentLayout,1);
  backButton=new Button("String_Node_Str",e -> back());
  actionButton=new Button("String_Node_Str",e -> takeAction());
  actionButton.addStyleName(ValoTheme.BUTTON_PRIMARY);
  actionButton.setClickShortcut(KeyCode.ENTER);
  addComponent(buildButtonFooter(backButton,actionButton));
  deployByOptionGroup.addValueChangeListener(e -> deployByChanged());
  deployByOptionGroup.setValue(DEPLOY_BY_PACKAGE);
}

Fixed version (ground truth):
public DeployDialog(ApplicationContext context,EditAgentPanel parentPanel){
  super("String_Node_Str");
  this.context=context;
  this.configurationService=context.getConfigurationService();
  this.operationsService=context.getOperationsService();
  this.parentPanel=parentPanel;
  this.context=context;
  final float DESIRED_WIDTH=1000;
  float width=DESIRED_WIDTH;
  float maxWidth=(float)(Page.getCurrent().getBrowserWindowWidth() * .8);
  if (maxWidth < DESIRED_WIDTH) {
    width=maxWidth;
  }
  setWidth(width,Unit.PIXELS);
  setHeight(600.0f,Unit.PIXELS);
  VerticalLayout layout=new VerticalLayout();
  layout.setMargin(true);
  layout.setSizeFull();
  addComponent(layout,1);
  deployByOptionGroup=new OptionGroup("String_Node_Str");
  deployByOptionGroup.addStyleName(ValoTheme.OPTIONGROUP_HORIZONTAL);
  deployByOptionGroup.addItem(DEPLOY_BY_PACKAGE);
  deployByOptionGroup.addItem(DEPLOY_BY_FLOW);
  layout.addComponent(deployByOptionGroup);
  selectDeploymentLayout=new VerticalLayout();
  selectDeploymentLayout.setSizeFull();
  selectDeploymentLayout.setMargin(new MarginInfo(true,false));
  layout.addComponent(selectDeploymentLayout);
  layout.setExpandRatio(selectDeploymentLayout,1);
  backButton=new Button("String_Node_Str",e -> back());
  actionButton=new Button("String_Node_Str",e -> takeAction());
  actionButton.addStyleName(ValoTheme.BUTTON_PRIMARY);
  actionButton.setClickShortcut(KeyCode.ENTER);
  addComponent(buildButtonFooter(backButton,actionButton));
  deployByOptionGroup.addValueChangeListener(e -> deployByChanged());
  deployByOptionGroup.setValue(DEPLOY_BY_PACKAGE);
}