Program: 72666
Project: 72666
Buggy source:
/** 
 * Construct an actor in the specified container with the specified name.
 * @param container The container.
 * @param name The name of this adder within the container.
 * @exception IllegalActionException If the actor cannot be containedby the proposed container.
 * @exception NameDuplicationException If the name coincides withan actor already in the container.
 */
public ChordFollower(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  incomingDuration=new TypedIOPort(this,"String_Node_Str",true,false);
  incomingDuration.setTypeEquals(BaseType.DOUBLE);
  chordSequence=new TypedIOPort(this,"String_Node_Str",true,false);
  chordSequence.setTypeEquals(BaseType.OBJECT);
  acceptedTuples=new TypedIOPort(this,"String_Node_Str",false,true);
  Type[] tupleType={BaseType.STRING,BaseType.DOUBLE};
  acceptedTuples.setTypeEquals(new RecordType(labels,tupleType));
  trigger=new TypedIOPort(this,"String_Node_Str",true,false);
  _triggersSinceLastOutput=0;
  nextChord=new TypedIOPort(this,"String_Node_Str",false,true);
  nextChord.setTypeEquals(BaseType.STRING);
  reset=new TypedIOPort(this,"String_Node_Str",true,false);
  StringAttribute cardinality=new StringAttribute(reset,"String_Node_Str");
  cardinality.setExpression("String_Node_Str");
  startLick=new TypedIOPort(this,"String_Node_Str",false,true);
  cardinality=new StringAttribute(startLick,"String_Node_Str");
  cardinality.setExpression("String_Node_Str");
  startLick.setTypeEquals(BaseType.BOOLEAN);
  currentBeat=new TypedIOPort(this,"String_Node_Str",false,true);
  currentBeat.setTypeEquals(BaseType.DOUBLE);
  incomingNote=new TypedIOPort(this,"String_Node_Str",true,false);
  incomingNote.setTypeEquals(BaseType.STRING);
  resetBeat=new TypedIOPort(this,"String_Node_Str",true,false);
  _allChords=new HashMap<Double,Chord>();
  _currentBeat=0.0;
  _durations=new LinkedList<Double>();
}

Fixed version (ground truth):
/** 
 * Construct an actor in the specified container with the specified name.
 * @param container The container.
 * @param name The name of this adder within the container.
 * @exception IllegalActionException If the actor cannot be containedby the proposed container.
 * @exception NameDuplicationException If the name coincides withan actor already in the container.
 */
public ChordFollower(CompositeEntity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  incomingDuration=new TypedIOPort(this,"String_Node_Str",true,false);
  incomingDuration.setTypeEquals(BaseType.DOUBLE);
  chordSequence=new TypedIOPort(this,"String_Node_Str",true,false);
  chordSequence.setTypeEquals(BaseType.OBJECT);
  acceptedTuples=new TypedIOPort(this,"String_Node_Str",false,true);
  Type[] tupleType={BaseType.STRING,BaseType.DOUBLE};
  acceptedTuples.setTypeEquals(new RecordType(labels,tupleType));
  trigger=new TypedIOPort(this,"String_Node_Str",true,false);
  _triggersSinceLastOutput=0;
  nextChord=new TypedIOPort(this,"String_Node_Str",false,true);
  nextChord.setTypeEquals(BaseType.STRING);
  reset=new TypedIOPort(this,"String_Node_Str",true,false);
  StringAttribute cardinality=new StringAttribute(reset,"String_Node_Str");
  cardinality.setExpression("String_Node_Str");
  startLick=new TypedIOPort(this,"String_Node_Str",false,true);
  cardinality=new StringAttribute(startLick,"String_Node_Str");
  cardinality.setExpression("String_Node_Str");
  startLick.setTypeEquals(BaseType.BOOLEAN);
  currentBeat=new TypedIOPort(this,"String_Node_Str",false,true);
  currentBeat.setTypeEquals(BaseType.DOUBLE);
  incomingNote=new TypedIOPort(this,"String_Node_Str",true,false);
  incomingNote.setTypeEquals(BaseType.STRING);
  resetBeat=new TypedIOPort(this,"String_Node_Str",true,false);
  _allChords=new HashMap<Double,Chord>();
  _currentBeatCursor=0.0;
  _durations=new LinkedList<Double>();
}