Program: 2627
Project: 2627
Buggy source:
public ConsolePresenter(final HablarEventBus eventBus,final ConsoleDisplay display){
  super(TYPE,eventBus,display);
  model.init(HablarIcons.get(IconType.console),"String_Node_Str");
  setVisibility(Visibility.hidden);
  model.setCloseable(true);
  final Session session=Suco.get(Session.class);
  final Connection connection=Suco.get(Connection.class);
  connection.onStanzaReceived(new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket parameter){
      display.add(parameter.toString(),"String_Node_Str",session.getState().toString());
    }
  }
);
  connection.onStanzaSent(new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket parameter){
      display.add(parameter.toString(),"String_Node_Str",session.getState().toString());
    }
  }
);
  display.getClear().addClickHandler(new ClickHandler(){
    @Override public void onClick(    final ClickEvent event){
      display.clear();
    }
  }
);
  display.getInput().addKeyDownHandler(new KeyDownHandler(){
    @Override public void onKeyDown(    final KeyDownEvent event){
      if (event.getNativeKeyCode() == 13) {
        final HasText input=display.getInputText();
        if (event.getNativeEvent().getCtrlKey()) {
          final String newText=input.getText() + "String_Node_Str";
          input.setText(newText);
          display.setInputCursorPos(newText.length());
        }
 else {
          final String packet=input.getText();
          if (session.getState() == State.ready && !packet.isEmpty()) {
            session.send(GWTXMLService.toXML(packet));
            input.setText("String_Node_Str");
          }
        }
      }
    }
  }
);
}

Fixed version (ground truth):
public ConsolePresenter(final HablarEventBus eventBus,final ConsoleDisplay display){
  super(TYPE,eventBus,display);
  model.init(HablarIcons.get(IconType.console),"String_Node_Str","String_Node_Str");
  setVisibility(Visibility.hidden);
  model.setCloseable(true);
  final Session session=Suco.get(Session.class);
  final Connection connection=Suco.get(Connection.class);
  connection.onStanzaReceived(new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket parameter){
      display.add(parameter.toString(),"String_Node_Str",session.getState().toString());
    }
  }
);
  connection.onStanzaSent(new Listener<IPacket>(){
    @Override public void onEvent(    final IPacket parameter){
      display.add(parameter.toString(),"String_Node_Str",session.getState().toString());
    }
  }
);
  display.getClear().addClickHandler(new ClickHandler(){
    @Override public void onClick(    final ClickEvent event){
      display.clear();
    }
  }
);
  display.getInput().addKeyDownHandler(new KeyDownHandler(){
    @Override public void onKeyDown(    final KeyDownEvent event){
      if (event.getNativeKeyCode() == 13) {
        final HasText input=display.getInputText();
        if (event.getNativeEvent().getCtrlKey()) {
          final String newText=input.getText() + "String_Node_Str";
          input.setText(newText);
          display.setInputCursorPos(newText.length());
        }
 else {
          final String packet=input.getText();
          if (session.getState() == State.ready && !packet.isEmpty()) {
            session.send(GWTXMLService.toXML(packet));
            input.setText("String_Node_Str");
          }
        }
      }
    }
  }
);
}