Program: 74330
Project: 74330
Buggy source:
/** 
 * Construct an event with the given name contained by the specified composite entity. The container argument must not be null, or a NullPointerException will be thrown. This event will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace. This constructor write-synchronizes on the workspace.
 * @param container The container.
 * @param name The name of the state.
 * @exception IllegalActionException If the state cannot be containedby the proposed container.
 * @exception NameDuplicationException If the name coincides withthat of an entity already in the container.
 */
public Event(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  refinementName.setVisibility(Settable.NONE);
  isInitialState.setVisibility(Settable.NONE);
  isInitialState.setPersistent(false);
  isFinalState.setVisibility(Settable.NONE);
  isFinalState.setPersistent(false);
  isInitialEvent=new Parameter(this,"String_Node_Str");
  isInitialEvent.setTypeEquals(BaseType.BOOLEAN);
  isInitialEvent.setToken(isInitialState.getToken());
  isFinalEvent=new Parameter(this,"String_Node_Str");
  isFinalEvent.setTypeEquals(BaseType.BOOLEAN);
  isFinalEvent.setExpression("String_Node_Str");
  parameters=new ParametersAttribute(this,"String_Node_Str");
  actions=new ActionsAttribute(this,"String_Node_Str");
  Variable variable=new Variable(actions,"String_Node_Str");
  variable.setExpression("String_Node_Str");
  variable.setPersistent(false);
  parameters.setExpression("String_Node_Str");
  fireOnInput=new Parameter(this,"String_Node_Str");
  fireOnInput.setToken(BooleanToken.FALSE);
  fireOnInput.setTypeEquals(BaseType.BOOLEAN);
  monitoredVariables=new StringParameter(this,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Construct an event with the given name contained by the specified composite entity. The container argument must not be null, or a NullPointerException will be thrown. This event will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace. This constructor write-synchronizes on the workspace.
 * @param container The container.
 * @param name The name of the state.
 * @exception IllegalActionException If the state cannot be containedby the proposed container.
 * @exception NameDuplicationException If the name coincides withthat of an entity already in the container.
 */
public Event(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  refinementName.setVisibility(Settable.NONE);
  isInitialState.setVisibility(Settable.NONE);
  isInitialState.setPersistent(false);
  isFinalState.setVisibility(Settable.NONE);
  isFinalState.setPersistent(false);
  isInitialEvent=new Parameter(this,"String_Node_Str");
  isInitialEvent.setTypeEquals(BaseType.BOOLEAN);
  isInitialEvent.setExpression("String_Node_Str");
  if (((BooleanToken)isInitialState.getToken()).booleanValue()) {
    isInitialEvent.setExpression("String_Node_Str");
    isInitialEvent.setPersistent(true);
  }
  isFinalEvent=new Parameter(this,"String_Node_Str");
  isFinalEvent.setTypeEquals(BaseType.BOOLEAN);
  isFinalEvent.setExpression("String_Node_Str");
  parameters=new ParametersAttribute(this,"String_Node_Str");
  actions=new ActionsAttribute(this,"String_Node_Str");
  Variable variable=new Variable(actions,"String_Node_Str");
  variable.setExpression("String_Node_Str");
  variable.setPersistent(false);
  parameters.setExpression("String_Node_Str");
  fireOnInput=new Parameter(this,"String_Node_Str");
  fireOnInput.setToken(BooleanToken.FALSE);
  fireOnInput.setTypeEquals(BaseType.BOOLEAN);
  monitoredVariables=new StringParameter(this,"String_Node_Str");
}