nus-yam/ex-repair huggingface dataset:
Program: 19684
Project: 19684
Buggy source:
/** 
 * Creates a ReferenceUtterance from the given line of reference.
 * @param line the line of reference, in the format: [test_name] [category] [speaker_name|"inter_segment_gap"][start_time] [end_time] [<params>] [reference_text]
 */
ReferenceUtterance(String line){
  StringTokenizer st=new StringTokenizer(line);
  st.nextToken();
  st.nextToken();
  String type=st.nextToken();
  if (type.equals("String_Node_Str")) {
    isSilenceGap=true;
  }
  startTime=Float.parseFloat(st.nextToken());
  endTime=Float.parseFloat(st.nextToken());
  st.nextToken();
  words=new String[st.countTokens()];
  for (int i=0; i < words.length; i++) {
    words[i]=st.nextToken();
  }
}

Fixed version (ground truth):
/** 
 * Creates a ReferenceUtterance from the given line of reference.
 * @param line the line of reference, in the format: [test_name] [category] [speaker_name|"inter_segment_gap"][start_time] [end_time] [<params>] [reference_text]
 */
ReferenceUtterance(String line){
  StringTokenizer st=new StringTokenizer(line);
  st.nextToken();
  st.nextToken();
  String type=st.nextToken();
  if (type.equals("String_Node_Str")) {
    isSilenceGap=true;
  }
  startTime=Float.parseFloat(st.nextToken());
  endTime=Float.parseFloat(st.nextToken());
  if (st.hasMoreTokens()) {
    st.nextToken();
    words=new String[st.countTokens()];
    for (int i=0; i < words.length; i++) {
      words[i]=st.nextToken();
    }
  }
 else {
    words=new String[0];
  }
}
Program: 19685
Project: 19685
Buggy source:
public Data getData() throws DataProcessingException {
  Data d=getPredecessor().getData();
  if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData)) {
    result=decode(null);
    if (result != null && result.isFinal()) {
      fireResultListeners(result);
      result=null;
    }
  }
  if (d instanceof SpeechStartSignal) {
    searchManager.startRecognition();
    isRecognizing=true;
    result=null;
  }
  if (d instanceof SpeechEndSignal) {
    searchManager.stopRecognition();
    if (result != null)     fireResultListeners(result);
    isRecognizing=false;
  }
  return d;
}

Fixed version (ground truth):
public Data getData() throws DataProcessingException {
  Data d=getPredecessor().getData();
  if (isRecognizing && (d instanceof FloatData || d instanceof DoubleData || d instanceof SpeechEndSignal)) {
    result=decode(null);
    if (result != null) {
      if (result.isFinal()) {
        fireResultListeners(result);
        result=null;
      }
    }
  }
  if (d instanceof SpeechStartSignal) {
    searchManager.startRecognition();
    isRecognizing=true;
    result=null;
  }
  if (d instanceof SpeechEndSignal) {
    searchManager.stopRecognition();
    if (result != null)     fireResultListeners(result);
    isRecognizing=false;
  }
  return d;
}
Program: 19686
Project: 19686
Buggy source:
public void startRecognition(){
  int debugCounter=0;
  Data data;
  while (!((data=frontEnd.getData()) instanceof SpeechStartSignal) && !(data instanceof DataEndSignal) && useStreamSignals) {
    debugCounter++;
    if (debugCounter > 100) {
      debugCounter=0;
      logger.finer("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void startRecognition(){
  int debugCounter=0;
  Data data=frontEnd.getData();
  if (!useStreamSignals)   return;
  while (!(data instanceof SpeechStartSignal) && !(data instanceof DataEndSignal)) {
    data=frontEnd.getData();
    if (data == null)     throw new RuntimeException("String_Node_Str");
    debugCounter++;
    if (debugCounter > 100) {
      debugCounter=0;
      logger.finer("String_Node_Str");
    }
  }
}
Program: 19687
Project: 19687
Buggy source:
/** 
 * Calculate the acoustic scores for the active list. The active list should contain only emitting tokens.
 * @return <code>true</code> if there are more frames to score, otherwise, false
 */
protected boolean scoreTokens(){
  boolean moreTokens;
  scoreTimer.start();
  Token bestToken=(Token)scorer.calculateScores(activeList.getTokens());
  scoreTimer.stop();
  moreTokens=(bestToken != null);
  activeList.setBestToken(bestToken);
  curTokensScored.value+=activeList.size();
  totalTokensScored.value+=activeList.size();
  tokensPerSecond.value=totalTokensScored.value / getTotalTime();
  return moreTokens;
}

Fixed version (ground truth):
/** 
 * Calculate the acoustic scores for the active list. The active list should contain only emitting tokens.
 * @return <code>true</code> if there are more frames to score, otherwise, false
 */
protected boolean scoreTokens(){
  boolean isDone=false;
  scoreTimer.start();
  Token bestToken=(Token)scorer.calculateScores(activeList.getTokens());
  scoreTimer.stop();
  if (bestToken != null) {
    isDone=true;
    activeList.setBestToken(bestToken);
  }
  curTokensScored.value+=activeList.size();
  totalTokensScored.value+=activeList.size();
  tokensPerSecond.value=totalTokensScored.value / getTotalTime();
  return isDone;
}
Program: 19688
Project: 19688
Buggy source:
/** 
 * Configure the logger 
 */
public static void configureLogger(ConfigurationManager cm){
  if (wasLogConfigured)   return;
  wasLogConfigured=true;
  if (System.getProperty("String_Node_Str") != null || System.getProperty("String_Node_Str") != null) {
    return;
  }
  Logger rootLogger=Logger.getLogger("String_Node_Str");
  Level rootLevel=rootLogger.getLevel();
  LogManager logManager=LogManager.getLogManager();
  ByteArrayOutputStream bos=new ByteArrayOutputStream();
  Properties props=new Properties();
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  try {
    props.store(bos,"String_Node_Str");
    bos.close();
    ByteArrayInputStream bis=new ByteArrayInputStream(bos.toByteArray());
    logManager.readConfiguration(bis);
    bis.close();
  }
 catch (  IOException ioe) {
    System.err.println("String_Node_Str");
  }
  String level=cm.getGlobalProperty(GLOBAL_COMMON_LOGLEVEL);
  if (level == null)   level=Level.WARNING.getName();
  Level userLevel=Level.parse(level);
  Level newLevel=userLevel.intValue() < rootLevel.intValue() ? userLevel : rootLevel;
  rootLogger.setLevel(newLevel);
  Handler[] handlers=rootLogger.getHandlers();
  for (  Handler handler : handlers) {
    handler.setFormatter(new SphinxLogFormatter());
  }
}

Fixed version (ground truth):
/** 
 * Configure the logger 
 */
public static void configureLogger(ConfigurationManager cm){
  if (wasLogConfigured)   return;
  wasLogConfigured=true;
  if (System.getProperty("String_Node_Str") != null || System.getProperty("String_Node_Str") != null) {
    return;
  }
  String cmPrefix=getLogPrefix(cm);
  Logger cmRootLogger=Logger.getLogger(cmPrefix.substring(0,cmPrefix.length() - 1));
  Level rootLevel=Logger.getLogger("String_Node_Str").getLevel();
  LogManager logManager=LogManager.getLogManager();
  ByteArrayOutputStream bos=new ByteArrayOutputStream();
  Properties props=new Properties();
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  props.setProperty("String_Node_Str","String_Node_Str");
  try {
    props.store(bos,"String_Node_Str");
    bos.close();
    ByteArrayInputStream bis=new ByteArrayInputStream(bos.toByteArray());
    logManager.readConfiguration(bis);
    bis.close();
  }
 catch (  IOException ioe) {
    System.err.println("String_Node_Str");
  }
  String level=cm.getGlobalProperty(GLOBAL_COMMON_LOGLEVEL);
  if (level == null)   level=Level.WARNING.getName();
  cmRootLogger.setLevel(Level.parse(level));
  Handler[] handlers=cmRootLogger.getHandlers();
  for (  Handler handler : handlers) {
    handler.setFormatter(new SphinxLogFormatter());
  }
  Logger.getLogger("String_Node_Str").setLevel(rootLevel);
}
Program: 19689
Project: 19689
Buggy source:
/** 
 * Returns a logger to use for this configurable component. The logger can be configured with the property: 'logLevel' - The default logLevel value is defined (within the xml configuration file by the global property 'defaultLogLevel' (which defaults to WARNING). <p/> implementation note: the logger became configured within the constructor of the parenting configuration manager.
 * @return the logger for this component
 * @throws edu.cmu.sphinx.util.props.PropertyException if an error occurs
 */
public Logger getLogger(){
  Logger logger;
  if (instanceName != null) {
    logger=Logger.getLogger(ownerClass.getName() + "String_Node_Str" + instanceName);
  }
 else   logger=Logger.getLogger(ownerClass.getName());
  Object rawLogLevel=rawProps.get(COMP_LOG_LEVEL);
  if (rawLogLevel != null)   logger.setLevel(rawLogLevel instanceof String ? Level.parse((String)rawLogLevel) : (Level)rawLogLevel);
  return logger;
}

Fixed version (ground truth):
/** 
 * Returns a logger to use for this configurable component. The logger can be configured with the property: 'logLevel' - The default logLevel value is defined (within the xml configuration file by the global property 'defaultLogLevel' (which defaults to WARNING). <p/> implementation note: the logger became configured within the constructor of the parenting configuration manager.
 * @return the logger for this component
 * @throws edu.cmu.sphinx.util.props.PropertyException if an error occurs
 */
public Logger getLogger(){
  Logger logger;
  String baseName=ConfigurationManagerUtils.getLogPrefix(cm) + ownerClass.getName();
  if (instanceName != null) {
    logger=Logger.getLogger(baseName + "String_Node_Str" + instanceName);
  }
 else   logger=Logger.getLogger(baseName);
  Object rawLogLevel=rawProps.get(COMP_LOG_LEVEL);
  if (rawLogLevel != null)   logger.setLevel(rawLogLevel instanceof String ? Level.parse((String)rawLogLevel) : (Level)rawLogLevel);
  return logger;
}
Program: 19691
Project: 19691
Buggy source:
/** 
 * Main method for running the HelloDigits demo. 
 */
public static void main(String[] args){
  try {
    URL audioURL;
    if (args.length > 0) {
      audioURL=new File(args[0]).toURI().toURL();
    }
 else {
      audioURL=Transcriber.class.getResource("String_Node_Str");
    }
    URL configURL=Transcriber.class.getResource("String_Node_Str");
    ConfigurationManager cm=new ConfigurationManager(configURL);
    Recognizer recognizer=(Recognizer)cm.lookup("String_Node_Str");
    recognizer.allocate();
    AudioInputStream ais=AudioSystem.getAudioInputStream(audioURL);
    StreamDataSource reader=(StreamDataSource)cm.lookup("String_Node_Str");
    reader.setInputStream(ais,audioURL.getFile());
    boolean done=false;
    while (!done) {
      Result result=recognizer.recognize();
      if (result != null) {
        String resultText=result.getBestResultNoFiller();
        System.out.println(resultText);
      }
 else {
        done=true;
      }
    }
  }
 catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
catch (  PropertyException e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
catch (  UnsupportedAudioFileException e) {
    System.err.println("String_Node_Str");
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Main method for running the HelloDigits demo. 
 */
public static void main(String[] args){
  try {
    URL audioURL;
    if (args.length > 0) {
      audioURL=new File(args[0]).toURI().toURL();
    }
 else {
      audioURL=Transcriber.class.getResource("String_Node_Str");
    }
    URL configURL=Transcriber.class.getResource("String_Node_Str");
    ConfigurationManager cm=new ConfigurationManager(configURL);
    Recognizer recognizer=(Recognizer)cm.lookup("String_Node_Str");
    recognizer.allocate();
    AudioInputStream ais=AudioSystem.getAudioInputStream(audioURL);
    StreamDataSource reader=(StreamDataSource)cm.lookup("String_Node_Str");
    reader.setInputStream(ais,audioURL.getFile());
    boolean done=false;
    while (!done) {
      Result result=recognizer.recognize();
      if (result != null) {
        String resultText=result.getBestResultNoFiller();
        System.out.println(resultText);
        unitTestBuffer.add(result);
      }
 else {
        done=true;
      }
    }
  }
 catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
    throw new RuntimeException(e);
  }
catch (  PropertyException e) {
    System.err.println("String_Node_Str" + e);
    throw new RuntimeException(e);
  }
catch (  UnsupportedAudioFileException e) {
    System.err.println("String_Node_Str");
    throw new RuntimeException(e);
  }
}
Program: 19692
Project: 19692
Buggy source:
/** 
 * Converts this demo into a unit-test. 
 */
@Test public void testLatticeDemo(){
  try {
    main(new String[]{});
  }
 catch (  Throwable t) {
    Assert.fail();
  }
}

Fixed version (ground truth):
/** 
 * Converts this demo into a unit-test. 
 */
@Test public void testLatticeDemo(){
  try {
    Transcriber.main(new String[]{});
  }
 catch (  Throwable t) {
    Assert.fail();
  }
  List<String> expResults=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str");
  Assert.assertTrue(unitTestBuffer.size() == expResults.size());
  for (int i=0; i < expResults.size(); i++) {
    String recogResult=unitTestBuffer.get(i).getBestResultNoFiller();
    Assert.assertEquals(expResults.get(i),recogResult);
  }
}
Program: 19693
Project: 19693
Buggy source:
/** 
 * Main method for running the WavFile demo. 
 */
public static void main(String[] args){
  try {
    URL audioFileURL;
    if (args.length > 0) {
      audioFileURL=new File(args[0]).toURI().toURL();
    }
 else {
      audioFileURL=WavFile.class.getResource("String_Node_Str");
    }
    URL configURL=WavFile.class.getResource("String_Node_Str");
    System.out.println("String_Node_Str");
    ConfigurationManager cm=new ConfigurationManager(configURL);
    Recognizer recognizer=(Recognizer)cm.lookup("String_Node_Str");
    recognizer.allocate();
    System.out.println("String_Node_Str" + audioFileURL.getFile());
    System.out.println(AudioSystem.getAudioFileFormat(audioFileURL));
    StreamDataSource reader=(StreamDataSource)cm.lookup("String_Node_Str");
    AudioInputStream ais=AudioSystem.getAudioInputStream(audioFileURL);
    reader.setInputStream(ais,audioFileURL.getFile());
    Result result=recognizer.recognize();
    if (result != null) {
      System.out.println("String_Node_Str" + result.getBestFinalResultNoFiller() + "String_Node_Str");
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
catch (  PropertyException e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
catch (  UnsupportedAudioFileException e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Main method for running the WavFile demo. 
 */
public static void main(String[] args){
  try {
    URL audioFileURL;
    if (args.length > 0) {
      audioFileURL=new File(args[0]).toURI().toURL();
    }
 else {
      audioFileURL=WavFile.class.getResource("String_Node_Str");
    }
    URL configURL=WavFile.class.getResource("String_Node_Str");
    System.out.println("String_Node_Str");
    ConfigurationManager cm=new ConfigurationManager(configURL);
    Recognizer recognizer=(Recognizer)cm.lookup("String_Node_Str");
    recognizer.allocate();
    System.out.println("String_Node_Str" + audioFileURL.getFile());
    System.out.println(AudioSystem.getAudioFileFormat(audioFileURL));
    StreamDataSource reader=(StreamDataSource)cm.lookup("String_Node_Str");
    AudioInputStream ais=AudioSystem.getAudioInputStream(audioFileURL);
    reader.setInputStream(ais,audioFileURL.getFile());
    result=recognizer.recognize();
    if (result != null) {
      System.out.println("String_Node_Str" + result.getBestFinalResultNoFiller() + "String_Node_Str");
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
    throw new RuntimeException(e);
  }
catch (  PropertyException e) {
    System.err.println("String_Node_Str" + e);
    throw new RuntimeException(e);
  }
catch (  UnsupportedAudioFileException e) {
    System.err.println("String_Node_Str" + e);
    throw new RuntimeException(e);
  }
}
Program: 19694
Project: 19694
Buggy source:
/** 
 * Converts this demo into a unit-test. 
 */
@Test public void testLatticeDemo(){
  try {
    main(new String[]{});
  }
 catch (  Throwable t) {
    Assert.fail();
  }
}

Fixed version (ground truth):
/** 
 * Converts this demo into a unit-test. 
 */
@Test public void testLatticeDemo(){
  try {
    WavFile.main(new String[]{});
  }
 catch (  Throwable t) {
    Assert.fail();
  }
  Assert.assertNotNull(result);
  Assert.assertTrue(result.getBestResultNoFiller().equals("String_Node_Str"));
}
Program: 19695
Project: 19695
Buggy source:
public void startRecognition(){
  int debugCounter=0;
  while (!(frontEnd.getData() instanceof SpeechStartSignal) && useStreamSignals) {
    debugCounter++;
    if (debugCounter > 100) {
      debugCounter=0;
      logger.finer("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void startRecognition(){
  int debugCounter=0;
  Data data;
  while (!((data=frontEnd.getData()) instanceof SpeechStartSignal) && !(data instanceof DataEndSignal) && useStreamSignals) {
    debugCounter++;
    if (debugCounter > 100) {
      debugCounter=0;
      logger.finer("String_Node_Str");
    }
  }
}
Program: 19696
Project: 19696
Buggy source:
@Override public void allocate(){
  logger.info("String_Node_Str" + numThreads);
  if (numThreads > 1) {
    mailbox=new Mailbox();
    semaphore=new Semaphore();
    for (int i=0; i < (numThreads - 1); i++) {
      Thread t=new ScoringThread();
      t.start();
    }
  }
}

Fixed version (ground truth):
@Override public void allocate(){
  logger.fine("String_Node_Str" + numThreads);
  if (numThreads > 1) {
    mailbox=new Mailbox();
    semaphore=new Semaphore();
    for (int i=0; i < (numThreads - 1); i++) {
      Thread t=new ScoringThread();
      t.start();
    }
  }
}
Program: 19697
Project: 19697
Buggy source:
@Test public void testConcatDataSource() throws DataProcessingException {
  ConcatAudioFileDataSource dataSource=new ConcatAudioFileDataSource();
  dataSource.addNewFileListener(new AudioFileProcessListener(){
    public void audioFileProcStarted(    File audioFile){
      numFileStarts++;
    }
    public void audioFileProcFinished(    File audioFile){
      numFileEnds++;
    }
  }
);
  dataSource.setBatchFile(new File(baseDir + "String_Node_Str"));
  Assert.assertTrue(dataSource.getData() instanceof DataStartSignal);
  Assert.assertTrue(dataSource.getData() instanceof DoubleData);
  Data d;
  while ((d=dataSource.getData()) instanceof DoubleData)   ;
  Assert.assertTrue(d instanceof DataEndSignal);
  Assert.assertTrue(numFileStarts == 3);
  Assert.assertTrue(numFileEnds == 3);
}

Fixed version (ground truth):
@Test public void testConcatDataSource() throws DataProcessingException {
}
Program: 19698
Project: 19698
Buggy source:
public void addSubConfiguration(ConfigurationManager subCM){
  Collection<String> compNames=getComponentNames();
  for (  String addCompName : subCM.getComponentNames()) {
    if (compNames.contains(addCompName)) {
      throw new RuntimeException(addCompName + "String_Node_Str");
    }
  }
  for (  String globProp : subCM.globalProperties.keySet()) {
    if (globalProperties.keySet().contains(globProp)) {
      throw new IllegalArgumentException(globProp + "String_Node_Str");
    }
  }
  globalProperties.putAll(subCM.globalProperties);
  for (  PropertySheet ps : subCM.symbolTable.values()) {
    ps.setCM(this);
  }
  symbolTable.putAll(subCM.symbolTable);
  rawPropertyMap.putAll(subCM.rawPropertyMap);
}

Fixed version (ground truth):
public void addSubConfiguration(ConfigurationManager subCM){
  Collection<String> compNames=getComponentNames();
  for (  String addCompName : subCM.getComponentNames()) {
    if (compNames.contains(addCompName)) {
      throw new RuntimeException(addCompName + "String_Node_Str");
    }
  }
  for (  String globProp : subCM.globalProperties.keySet()) {
    if (globalProperties.keySet().contains(globProp) && !System.getProperties().keySet().contains(globProp)) {
      throw new IllegalArgumentException(globProp + "String_Node_Str");
    }
  }
  globalProperties.putAll(subCM.globalProperties);
  for (  PropertySheet ps : subCM.symbolTable.values()) {
    ps.setCM(this);
  }
  symbolTable.putAll(subCM.symbolTable);
  rawPropertyMap.putAll(subCM.rawPropertyMap);
}
Program: 19701
Project: 19701
Buggy source:
/** 
 * Class constructor.
 */
public BaseAudioManager(){
  listeners=new Vector();
}

Fixed version (ground truth):
/** 
 * Class constructor. 
 */
public BaseAudioManager(){
  listeners=new Vector();
}
Program: 19702
Project: 19702
Buggy source:
public Object clone() throws CloneNotSupportedException {
  ConfigurationManager cloneCM=(ConfigurationManager)super.clone();
  cloneCM.changeListeners=new ArrayList<ConfigurationChangeListener>();
  cloneCM.symbolTable=new LinkedHashMap<String,PropertySheet>();
  for (  String compName : symbolTable.keySet()) {
    cloneCM.symbolTable.put(compName,(PropertySheet)symbolTable.get(compName).clone());
  }
  cloneCM.globalProperties=new GlobalProperties(globalProperties);
  cloneCM.rawPropertyMap=new HashMap<String,RawPropertyData>(rawPropertyMap);
  return cloneCM;
}

Fixed version (ground truth):
/** 
 * Creates a deep copy of the given CM instance. 
 */
public Object clone() throws CloneNotSupportedException {
  ConfigurationManager cloneCM=(ConfigurationManager)super.clone();
  cloneCM.changeListeners=new ArrayList<ConfigurationChangeListener>();
  cloneCM.symbolTable=new LinkedHashMap<String,PropertySheet>();
  for (  String compName : symbolTable.keySet()) {
    cloneCM.symbolTable.put(compName,(PropertySheet)symbolTable.get(compName).clone());
  }
  cloneCM.globalProperties=new GlobalProperties(globalProperties);
  cloneCM.rawPropertyMap=new HashMap<String,RawPropertyData>(rawPropertyMap);
  return cloneCM;
}
Program: 19703
Project: 19703
Buggy source:
/** 
 * Creates a new configuration manager. Initial properties are loaded from the given URL. No need to keep the notion of 'context' around anymore we will just pass around this property manager.
 * @param url place to load initial properties from
 * @throws java.io.IOException if an error occurs while loading properties from the URL
 */
public ConfigurationManager(URL url) throws IOException, PropertyException {
  configURL=url;
  SaxLoader saxLoader=new SaxLoader(url,globalProperties);
  rawPropertyMap=saxLoader.load();
  ConfigurationManagerUtils.applySystemProperties(rawPropertyMap,globalProperties);
  ConfigurationManagerUtils.configureLogger(this);
  showCreations="String_Node_Str".equals(globalProperties.get("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * Creates a new configuration manager. Initial properties are loaded from the given URL. No need to keep the notion of 'context' around anymore we will just pass around this property manager.
 * @param url place to load initial properties from
 * @throws java.io.IOException if an error occurs while loading properties from the URL
 */
public ConfigurationManager(URL url) throws IOException, PropertyException {
  configURL=url;
  SaxLoader saxLoader=new SaxLoader(url,globalProperties);
  rawPropertyMap=saxLoader.load();
  ConfigurationManagerUtils.applySystemProperties(rawPropertyMap,globalProperties);
  ConfigurationManagerUtils.configureLogger(this);
  GlobalProperty showCreations=globalProperties.get("String_Node_Str");
  if (showCreations != null)   this.showCreations="String_Node_Str".equals(showCreations.getValue());
}
Program: 19704
Project: 19704
Buggy source:
/** 
 * Returns the next Data object.
 * @return the next Data object, or null if none available
 * @throws DataProcessingException if a data processing error occurs
 */
public Data getData() throws DataProcessingException {
  if (outputQueue.size() == 0) {
    Data audio=readData();
    if (audio != null) {
      if (!inSpeech) {
        sendToQueue(audio);
        if (audio instanceof SpeechClassifiedData) {
          SpeechClassifiedData data=(SpeechClassifiedData)audio;
          if (data.isSpeech()) {
            boolean speechStarted=handleFirstSpeech(data);
            if (speechStarted) {
              addSpeechStart();
              inSpeech=true;
            }
          }
        }
      }
 else {
        if (audio instanceof SpeechClassifiedData) {
          SpeechClassifiedData data=(SpeechClassifiedData)audio;
          sendToQueue(data);
          if (!data.isSpeech()) {
            inSpeech=!(readEndFrames(data));
          }
        }
 else         if (audio instanceof DataEndSignal) {
          sendToQueue(new SpeechStartSignal(((Signal)audio).getTime()));
          sendToQueue(audio);
          inSpeech=false;
        }
 else         if (audio instanceof DataStartSignal) {
          throw new Error("String_Node_Str");
        }
      }
    }
  }
  if (outputQueue.size() > 0) {
    Data audio=outputQueue.remove(0);
    if (audio instanceof SpeechClassifiedData) {
      SpeechClassifiedData data=(SpeechClassifiedData)audio;
      audio=data.getDoubleData();
    }
    return audio;
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the next Data object.
 * @return the next Data object, or null if none available
 * @throws DataProcessingException if a data processing error occurs
 */
public Data getData() throws DataProcessingException {
  if (outputQueue.size() == 0) {
    Data audio=readData();
    if (audio != null) {
      if (!inSpeech) {
        sendToQueue(audio);
        if (audio instanceof SpeechClassifiedData) {
          SpeechClassifiedData data=(SpeechClassifiedData)audio;
          if (data.isSpeech()) {
            boolean speechStarted=handleFirstSpeech(data);
            if (speechStarted) {
              addSpeechStart();
              inSpeech=true;
            }
          }
        }
      }
 else {
        if (audio instanceof SpeechClassifiedData) {
          SpeechClassifiedData data=(SpeechClassifiedData)audio;
          sendToQueue(data);
          if (!data.isSpeech()) {
            inSpeech=!(readEndFrames(data));
          }
        }
 else         if (audio instanceof DataEndSignal) {
          sendToQueue(new SpeechEndSignal(((Signal)audio).getTime()));
          sendToQueue(audio);
          inSpeech=false;
        }
 else         if (audio instanceof DataStartSignal) {
          throw new Error("String_Node_Str");
        }
      }
    }
  }
  if (outputQueue.size() > 0) {
    Data audio=outputQueue.remove(0);
    if (audio instanceof SpeechClassifiedData) {
      SpeechClassifiedData data=(SpeechClassifiedData)audio;
      audio=data.getDoubleData();
    }
    return audio;
  }
 else {
    return null;
  }
}
Program: 19705
Project: 19705
Buggy source:
public void newProperties(PropertySheet ps) throws PropertyException {
  super.newProperties(ps);
  this.mergeSpeechSegments=ps.getBoolean(PROP_MERGE_SPEECH_SEGMENTS);
}

Fixed version (ground truth):
public void newProperties(PropertySheet ps) throws PropertyException {
  super.newProperties(ps);
  this.mergeSpeechSegments=ps.getBoolean(PROP_MERGE_SPEECH_SEGMENTS);
  initialize();
}
Program: 19706
Project: 19706
Buggy source:
@Test public void testDefInstance() throws PropertyException, InstantiationException {
  ComponentPropertyTest cpt=(ComponentPropertyTest)ConfigurationManager.getDefaultInstance(ComponentPropertyTest.class);
  Assert.assertTrue(cpt != null);
  Assert.assertTrue(cpt.dataProc instanceof AnotherDummyProcessor);
}

Fixed version (ground truth):
@Test public void testDefInstance() throws PropertyException, InstantiationException {
  ComponentPropertyTest cpt=(ComponentPropertyTest)ConfigurationManager.getInstance(ComponentPropertyTest.class);
  Assert.assertTrue(cpt != null);
  Assert.assertTrue(cpt.dataProc instanceof AnotherDummyProcessor);
}
Program: 19707
Project: 19707
Buggy source:
@Test public void testGetDefaultInstance() throws PropertyException, InstantiationException {
  DummyComp dc=(DummyComp)ConfigurationManager.getDefaultInstance(DummyComp.class);
  Assert.assertEquals(4,dc.getBeamWidth());
  Assert.assertEquals(1.3,dc.getAlpha(),1E-10);
  DummyFrontEnd fe=dc.getFrontEnd();
  Assert.assertTrue(fe != null);
  Assert.assertTrue(fe instanceof AnotherDummyFrontEnd);
  Assert.assertTrue(fe.getDataProcs().size() == 3);
  Assert.assertTrue(fe.getDataProcs().get(0) instanceof DummyProcessor);
  Assert.assertTrue(fe.getDataProcs().get(1) instanceof AnotherDummyProcessor);
  Assert.assertTrue(fe.getDataProcs().get(2) instanceof DummyProcessor);
  Assert.assertTrue(dc.getBestASR().equals("String_Node_Str"));
  Assert.assertTrue(dc.getLogger() != null);
}

Fixed version (ground truth):
@Test public void testGetDefaultInstance() throws PropertyException, InstantiationException {
  DummyComp dc=(DummyComp)ConfigurationManager.getInstance(DummyComp.class);
  Assert.assertEquals(4,dc.getBeamWidth());
  Assert.assertEquals(1.3,dc.getAlpha(),1E-10);
  DummyFrontEnd fe=dc.getFrontEnd();
  Assert.assertTrue(fe != null);
  Assert.assertTrue(fe instanceof AnotherDummyFrontEnd);
  Assert.assertTrue(fe.getDataProcs().size() == 3);
  Assert.assertTrue(fe.getDataProcs().get(0) instanceof DummyProcessor);
  Assert.assertTrue(fe.getDataProcs().get(1) instanceof AnotherDummyProcessor);
  Assert.assertTrue(fe.getDataProcs().get(2) instanceof DummyProcessor);
  Assert.assertTrue(dc.getBestASR().equals("String_Node_Str"));
  Assert.assertTrue(dc.getLogger() != null);
}
Program: 19708
Project: 19708
Buggy source:
/** 
 * Applies the system properties to the raw property map. System properties should be of the form compName[paramName]=paramValue <p/> List types cannot currently be set from system properties.
 * @param rawMap the map of raw property values
 * @param global global properies
 * @throws PropertyException if an attempt is made to set a parameter for an unknown component.
 */
static void applySystemProperties(Map<String,RawPropertyData> rawMap,Map<String,String> global) throws PropertyException {
  Properties props=System.getProperties();
  for (Enumeration e=props.keys(); e.hasMoreElements(); ) {
    String param=(String)e.nextElement();
    String value=props.getProperty(param);
    int lb=param.indexOf('[');
    int rb=param.indexOf(']');
    if (lb > 0 && rb > lb) {
      String compName=param.substring(0,lb);
      String paramName=param.substring(lb + 1,rb);
      RawPropertyData rpd=rawMap.get(compName);
      if (rpd != null) {
        rpd.add(paramName,value);
      }
 else {
        throw new PropertyException(compName,param,"String_Node_Str" + "String_Node_Str" + compName + "String_Node_Str"+ param+ "String_Node_Str");
      }
    }
 else     if (param.indexOf('.') == -1) {
      String symbolName="String_Node_Str" + param + "String_Node_Str";
      global.put(symbolName,value);
    }
  }
}

Fixed version (ground truth):
/** 
 * Applies the system properties to the raw property map. System properties should be of the form compName[paramName]=paramValue <p/> List types cannot currently be set from system properties.
 * @param rawMap the map of raw property values
 * @param global global properies
 * @throws PropertyException if an attempt is made to set a parameter for an unknown component.
 */
static void applySystemProperties(Map<String,RawPropertyData> rawMap,Map<String,String> global) throws PropertyException {
  Properties props=System.getProperties();
  for (Enumeration e=props.keys(); e.hasMoreElements(); ) {
    String param=(String)e.nextElement();
    String value=props.getProperty(param);
    int lb=param.indexOf('[');
    int rb=param.indexOf(']');
    if (lb > 0 && rb > lb) {
      String compName=param.substring(0,lb);
      String paramName=param.substring(lb + 1,rb);
      RawPropertyData rpd=rawMap.get(compName);
      if (rpd != null) {
        rpd.add(paramName,value);
      }
 else {
        throw new PropertyException(compName,param,"String_Node_Str" + "String_Node_Str" + compName + "String_Node_Str"+ param+ "String_Node_Str");
      }
    }
 else     if (param.indexOf('.') == -1) {
      global.put(param,value);
    }
  }
}
Program: 19709
Project: 19709
Buggy source:
/** 
 * @param global Set the global Map to this Map 
 */
public void setGlobal(Map global){
  _globalProperties=global;
}

Fixed version (ground truth):
/** 
 * @param global Set the global Map to this Map
 */
public void setGlobal(Map global){
  _globalProperties=global;
}
Program: 19710
Project: 19710
Buggy source:
/** 
 * @return get the Map of component properties / configuration set with classname as the Map key 
 */
public Map getOtherProp(){
  return _otherPropMap;
}

Fixed version (ground truth):
/** 
 * @return get the Map of component properties / configuration setwith classname as the Map key
 */
public Map getOtherProp(){
  return _otherPropMap;
}
Program: 19711
Project: 19711
Buggy source:
/** 
 * @return the configuration set/component properties with configuration name as Map key 
 */
public Map getProperty(){
  return _propertyMap;
}

Fixed version (ground truth):
/** 
 * @return the configuration set/component propertieswith configuration name as Map key
 */
public Map getProperty(){
  return _propertyMap;
}
Program: 19712
Project: 19712
Buggy source:
/** 
 * @param c Set the component properties to this one 
 */
public void setProperty(Map c){
  _propertyMap=c;
  if (_otherPropMap == null)   _otherPropMap=new HashMap();
 else   _otherPropMap.clear();
  copyPropertiesToOtherMap(_propertyMap);
}

Fixed version (ground truth):
/** 
 * @param c Set the component properties to this one
 */
public void setProperty(Map c){
  _propertyMap=c;
  if (_otherPropMap == null)   _otherPropMap=new HashMap();
 else   _otherPropMap.clear();
  copyPropertiesToOtherMap(_propertyMap);
}
Program: 19713
Project: 19713
Buggy source:
/** 
 * @return get the Map of Global properties 
 */
public Map getGlobal(){
  return _globalProperties;
}

Fixed version (ground truth):
/** 
 * @return get the Map of Global properties
 */
public Map getGlobal(){
  return _globalProperties;
}
Program: 19714
Project: 19714
Buggy source:
/** 
 * copy all the data in the input Map into the Other Map 
 */
private void copyPropertiesToOtherMap(Map from){
  if (from != null && !from.isEmpty()) {
    if (_otherPropMap == null) {
      _otherPropMap=new HashMap();
    }
    Map classmap;
    for (Iterator it=from.values().iterator(); it.hasNext(); ) {
      RawPropertyData rpd=(RawPropertyData)it.next();
      String classname=rpd.getClassName();
      if (_otherPropMap.containsKey(classname)) {
        classmap=(Map)_otherPropMap.get(classname);
        if (!classmap.containsKey(rpd.getName()))         classmap.put(rpd.getName(),rpd);
      }
 else {
        classmap=new HashMap();
        classmap.put(rpd.getName(),rpd);
        _otherPropMap.put(classname,classmap);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * copy all the data in the input Map into the Other Map
 */
private void copyPropertiesToOtherMap(Map from){
  if (from != null && !from.isEmpty()) {
    if (_otherPropMap == null) {
      _otherPropMap=new HashMap();
    }
    Map classmap;
    for (Iterator it=from.values().iterator(); it.hasNext(); ) {
      RawPropertyData rpd=(RawPropertyData)it.next();
      String classname=rpd.getClassName();
      if (_otherPropMap.containsKey(classname)) {
        classmap=(Map)_otherPropMap.get(classname);
        if (!classmap.containsKey(rpd.getName()))         classmap.put(rpd.getName(),rpd);
      }
 else {
        classmap=new HashMap();
        classmap.put(rpd.getName(),rpd);
        _otherPropMap.put(classname,classmap);
      }
    }
  }
}
Program: 19715
Project: 19715
Buggy source:
/** 
 * model has just been reloaded 
 */
public void modelRefresh() throws ConfigurableUtilException ;

Fixed version (ground truth):
/** 
 * model has just been reloaded
 */
public void modelRefresh() throws ConfigurableUtilException ;
Program: 19716
Project: 19716
Buggy source:
/** 
 * save the data from GUI
 * @param cp the holder of new data
 */
public void saveData(ConfigProperties cp) throws GUIOperationException ;

Fixed version (ground truth):
/** 
 * save the data from GUI 
 * @param cp the holder of new data
 */
public void saveData(ConfigProperties cp) throws GUIOperationException ;
Program: 19717
Project: 19717
Buggy source:
/** 
 * update GUI with new data
 * @param cp <code>ConfigProperties</code> with new data
 */
public void update(ConfigProperties cp);

Fixed version (ground truth):
/** 
 * update GUI with new data 
 * @param cp <code>ConfigProperties</code> with new data
 */
public void update(ConfigProperties cp);
Program: 19718
Project: 19718
Buggy source:
/** 
 * clear all data in the GUI 
 */
public void clearAll();

Fixed version (ground truth):
/** 
 * clear all data in the GUI
 */
public void clearAll();
Program: 19719
Project: 19719
Buggy source:
/** 
 * @param args the command line arguments 
 */
public static void main(String args[]){
  java.awt.EventQueue.invokeLater(new Runnable(){
    public void run(){
      try {
        new GUIMediator().execute();
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str" + e.getMessage());
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * @param args the command line arguments
 */
public static void main(String args[]){
  java.awt.EventQueue.invokeLater(new Runnable(){
    public void run(){
      try {
        new GUIMediator().execute();
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str" + e.getMessage());
      }
    }
  }
);
}
Program: 19720
Project: 19720
Buggy source:
public void newProperties(PropertySheet ps) throws PropertyException {
}

Fixed version (ground truth):
public void newProperties(PropertySheet ps) throws PropertyException {
  name=ps.getInstanceName();
}
Program: 19721
Project: 19721
Buggy source:
/** 
 * Collect all states starting from the given start state
 * @param start the state to start the search from
 * @return the set of collected state
 */
static public Set collectStates(SentenceHMMState start){
  Set visitedStates=new HashSet();
  List queue=new LinkedList();
  queue.add(start);
  while (queue.size() > 0) {
    SentenceHMMState state=(SentenceHMMState)queue.remove(0);
    visitedStates.add(state);
    SentenceHMMStateArc[] successors=state.getSuccessorArray();
    for (int i=0; i < successors.length; i++) {
      SentenceHMMStateArc arc=successors[i];
      SentenceHMMState nextState=(SentenceHMMState)arc.getState();
      if (!visitedStates.contains(nextState)) {
        queue.add(nextState);
      }
    }
  }
  return visitedStates;
}

Fixed version (ground truth):
/** 
 * Collect all states starting from the given start state
 * @param start the state to start the search from
 * @return the set of collected state
 */
public static Set collectStates(SentenceHMMState start){
  Set visitedStates=new HashSet();
  List queue=new LinkedList();
  queue.add(start);
  while (queue.size() > 0) {
    SentenceHMMState state=(SentenceHMMState)queue.remove(0);
    visitedStates.add(state);
    SentenceHMMStateArc[] successors=state.getSuccessorArray();
    for (int i=0; i < successors.length; i++) {
      SentenceHMMStateArc arc=successors[i];
      SentenceHMMState nextState=(SentenceHMMState)arc.getState();
      if (!visitedStates.contains(nextState)) {
        queue.add(nextState);
      }
    }
  }
  return visitedStates;
}
Program: 19722
Project: 19722
Buggy source:
/** 
 * Returns the property names <code>name</code> which is still wrapped into the annotation instance. 
 */
S4PropWrapper getProperty(String name,Class propertyClass) throws PropertyException {
  if (!propValues.containsKey(name))   throw new PropertyException(owner,name,"String_Node_Str");
  S4PropWrapper s4PropWrapper=registeredProperties.get(name);
  try {
    propertyClass.cast(s4PropWrapper.getAnnotation());
  }
 catch (  Exception e) {
    throw new PropertyException(owner,name,name + "String_Node_Str" + owner.getClass().getName());
  }
  return s4PropWrapper;
}

Fixed version (ground truth):
/** 
 * Returns the property names <code>name</code> which is still wrapped into the annotation instance. 
 */
public S4PropWrapper getProperty(String name,Class propertyClass) throws PropertyException {
  if (!propValues.containsKey(name))   throw new PropertyException(owner,name,"String_Node_Str" + name + "String_Node_Str");
  S4PropWrapper s4PropWrapper=registeredProperties.get(name);
  try {
    propertyClass.cast(s4PropWrapper.getAnnotation());
  }
 catch (  Exception e) {
    throw new PropertyException(owner,name,name + "String_Node_Str" + owner.getClass().getName()+ "String_Node_Str");
  }
  return s4PropWrapper;
}
Program: 19723
Project: 19723
Buggy source:
/** 
 * Multiplies each element of the given array by the multiplier.
 * @param array the array to multiply
 * @param multiplier the amount to multiply by
 */
private static final void multiplyArray(double[] array,double multiplier){
  for (int i=0; i < array.length; i++) {
    array[i]*=multiplier;
  }
}

Fixed version (ground truth):
/** 
 * Multiplies each element of the given array by the multiplier.
 * @param array      the array to multiply
 * @param multiplier the amount to multiply by
 */
private static void multiplyArray(double[] array,double multiplier){
  for (int i=0; i < array.length; i++) {
    array[i]*=multiplier;
  }
}
Program: 19724
Project: 19724
Buggy source:
public static Map getConfigurationInfo(){
  Map info=new HashMap();
  info.put(new String("String_Node_Str"),new String("String_Node_Str"));
  info.put(new String("String_Node_Str"),new String("String_Node_Str"));
  info.put(new String("String_Node_Str"),new String("String_Node_Str"));
  return info;
}

Fixed version (ground truth):
public static Map getConfigurationInfo(){
  Map<String,String> info=new HashMap<String,String>();
  info.put("String_Node_Str","String_Node_Str");
  info.put("String_Node_Str","String_Node_Str");
  info.put("String_Node_Str","String_Node_Str");
  return info;
}
Program: 19725
Project: 19725
Buggy source:
/** 
 * Initializes this LiveCMN.
 */
public void initialize(){
  super.initialize();
}

Fixed version (ground truth):
/** 
 * Initializes this LiveCMN. 
 */
public void initialize(){
  super.initialize();
}
Program: 19726
Project: 19726
Buggy source:
/** 
 * Returns the next Data object, which is a normalized Data produced by this class. Signals are returned unmodified.
 * @return the next available Data object, returns null if noData object is available
 * @throws DataProcessingException if there is a data processing error
 */
public Data getData() throws DataProcessingException {
  Data input=getPredecessor().getData();
  getTimer().start();
  if (input != null) {
    if (input instanceof DoubleData) {
      DoubleData data=(DoubleData)input;
      if (sum == null) {
        initMeansSums(data.getValues().length);
      }
      normalize(data);
    }
 else     if (input instanceof DataEndSignal) {
      updateMeanSumBuffers();
    }
  }
  getTimer().stop();
  return input;
}

Fixed version (ground truth):
/** 
 * Returns the next Data object, which is a normalized Data produced by this class. Signals are returned unmodified.
 * @return the next available Data object, returns null if no Data object is available
 * @throws DataProcessingException if there is a data processing error
 */
public Data getData() throws DataProcessingException {
  Data input=getPredecessor().getData();
  if (input instanceof DataStartSignal)   sum=null;
  getTimer().start();
  if (input != null) {
    if (input instanceof DoubleData) {
      DoubleData data=(DoubleData)input;
      if (sum == null) {
        initMeansSums(data.getValues().length);
      }
      normalize(data);
    }
 else     if (input instanceof DataEndSignal) {
      updateMeanSumBuffers();
    }
  }
  getTimer().stop();
  return input;
}
Program: 19727
Project: 19727
Buggy source:
/** 
 * Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 * @return the next element of this enumeration.
 */
public Object nextElement(){
  Object stream=null;
  if (nextFile == null) {
    nextFile=readNext();
  }
 else {
    for (int i=0; i < fileListeners.size(); i++)     fileListeners.get(i).audioFileProcFinished(new File(nextFile));
  }
  if (nextFile != null) {
    try {
      AudioInputStream ais=AudioSystem.getAudioInputStream(new File(nextFile).toURI().toURL());
      AudioFormat format=ais.getFormat();
      if (!isInitialized) {
        isInitialized=true;
        bigEndian=format.isBigEndian();
        sampleRate=(int)format.getSampleRate();
        signedData=format.getEncoding().equals(AudioFormat.Encoding.PCM_SIGNED);
        bytesPerValue=format.getSampleSizeInBits() / 8;
      }
      if (format.getSampleRate() != sampleRate || format.getChannels() != 1 || format.isBigEndian() != bigEndian) {
        throw new RuntimeException("String_Node_Str");
      }
      stream=ais;
      for (int i=0; i < fileListeners.size(); i++)       fileListeners.get(i).audioFileProcStarted(new File(nextFile));
      nextFile=null;
    }
 catch (    IOException ioe) {
      ioe.printStackTrace();
      throw new Error("String_Node_Str" + nextFile + "String_Node_Str");
    }
catch (    UnsupportedAudioFileException e) {
      e.printStackTrace();
    }
  }
  return stream;
}

Fixed version (ground truth):
/** 
 * Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 * @return the next element of this enumeration.
 */
public Object nextElement(){
  Object stream=null;
  if (nextFile == null) {
    nextFile=readNext();
  }
 else   if (isInitialized) {
    for (int i=0; i < fileListeners.size(); i++)     fileListeners.get(i).audioFileProcFinished(new File(nextFile));
  }
  if (nextFile != null) {
    try {
      AudioInputStream ais=AudioSystem.getAudioInputStream(new File(nextFile).toURI().toURL());
      AudioFormat format=ais.getFormat();
      if (!isInitialized) {
        isInitialized=true;
        bigEndian=format.isBigEndian();
        sampleRate=(int)format.getSampleRate();
        signedData=format.getEncoding().equals(AudioFormat.Encoding.PCM_SIGNED);
        bytesPerValue=format.getSampleSizeInBits() / 8;
      }
      if (format.getSampleRate() != sampleRate || format.getChannels() != 1 || format.isBigEndian() != bigEndian) {
        throw new RuntimeException("String_Node_Str");
      }
      stream=ais;
      for (int i=0; i < fileListeners.size(); i++)       fileListeners.get(i).audioFileProcStarted(new File(nextFile));
      nextFile=null;
    }
 catch (    IOException ioe) {
      ioe.printStackTrace();
      throw new Error("String_Node_Str" + nextFile + "String_Node_Str");
    }
catch (    UnsupportedAudioFileException e) {
      e.printStackTrace();
    }
  }
  return stream;
}
Program: 19728
Project: 19728
Buggy source:
public URL getResource(String name) throws PropertyException {
  throw new NotImplementedException();
}

Fixed version (ground truth):
public URL getResource(String name) throws PropertyException {
  throw new RuntimeException("String_Node_Str");
}
Program: 19729
Project: 19729
Buggy source:
public String[] getNames(){
  throw new NotImplementedException();
}

Fixed version (ground truth):
public String[] getNames(){
  throw new RuntimeException("String_Node_Str");
}
Program: 19730
Project: 19730
Buggy source:
public List getComponentList(String name,Class type) throws PropertyException {
  throw new NotImplementedException();
}

Fixed version (ground truth):
public List getComponentList(String name,Class type) throws PropertyException {
  throw new RuntimeException("String_Node_Str");
}
Program: 19731
Project: 19731
Buggy source:
public void dump(PrintStream out){
  throw new NotImplementedException();
}

Fixed version (ground truth):
public void dump(PrintStream out){
  throw new RuntimeException("String_Node_Str");
}
Program: 19732
Project: 19732
Buggy source:
public void setRaw(String key,Object val) throws PropertyException {
  throw new NotImplementedException();
}

Fixed version (ground truth):
public void setRaw(String key,Object val) throws PropertyException {
  throw new RuntimeException("String_Node_Str");
}