nus-yam/ex-repair huggingface dataset:
Program: 24528
Project: 24528
Buggy source:
/** 
 * Lookup scenario name from given request.
 * @param request
 * @param keyExtractor
 * @return
 */
private Optional<String> lookupScenarioName(Message request,XPathPayloadMappingKeyExtractor keyExtractor){
  return Optional.ofNullable(keyExtractor.getMappingKey(request));
}

Fixed version (ground truth):
/** 
 * Lookup scenario name from given request.
 * @param request
 * @param keyExtractor
 * @return
 */
private Optional<String> lookupScenarioName(Message request,XPathPayloadMappingKeyExtractor keyExtractor){
  final String noMatch="String_Node_Str";
  try {
    final String mappingKey=keyExtractor.getMappingKey(request);
    final String scenarioLookupResult=StringUtils.hasLength(mappingKey) ? mappingKey : noMatch;
    LOG.debug("String_Node_Str",scenarioLookupResult);
    return Optional.ofNullable(mappingKey);
  }
 catch (  RuntimeException e) {
    LOG.debug("String_Node_Str",noMatch,e.getMessage());
    return Optional.empty();
  }
}
Program: 24529
Project: 24529
Buggy source:
@Override public boolean isHandlerFor(Message message,TestContext context){
  return xPathPayloadMappingKeyExtractor.extractMappingKey(message).equals(context.replaceDynamicContentInString(value));
}

Fixed version (ground truth):
@Override public boolean isHandlerFor(Message message,TestContext context){
  boolean isIntermediateMessage;
  try {
    isIntermediateMessage=xPathPayloadMappingKeyExtractor.extractMappingKey(message).equals(context.replaceDynamicContentInString(value));
  }
 catch (  RuntimeException e) {
    LOG.debug("String_Node_Str",message.getId(),e.getMessage());
    isIntermediateMessage=false;
  }
  LOG.debug("String_Node_Str",message.getId(),isIntermediateMessage);
  return isIntermediateMessage;
}
Program: 24531
Project: 24531
Buggy source:
@Override public Message dispatchMessage(Message request,String mappingName){
  CompletableFuture<Message> responseFuture=new CompletableFuture<>();
  SimulatorScenario scenario;
  if (applicationContext.containsBean(mappingName)) {
    scenario=applicationContext.getBean(mappingName,SimulatorScenario.class);
  }
 else {
    LOG.info(String.format("String_Node_Str" + "String_Node_Str",mappingName,configuration.getDefaultScenario()));
    scenario=applicationContext.getBean(configuration.getDefaultScenario(),SimulatorScenario.class);
  }
  scenario.getScenarioEndpoint().setName(mappingName);
  scenario.getScenarioEndpoint().add(request,responseFuture);
  scenarioService.run(scenario,mappingName,Collections.EMPTY_LIST);
  try {
    if (handleResponse) {
      return responseFuture.get(configuration.getDefaultTimeout(),TimeUnit.MILLISECONDS);
    }
 else {
      return null;
    }
  }
 catch (  TimeoutException e) {
    LOG.warn(String.format("String_Node_Str",mappingName));
    return null;
  }
catch (  InterruptedException|ExecutionException e) {
    throw new SimulatorException(e);
  }
}

Fixed version (ground truth):
@Override public Message dispatchMessage(Message request,String mappingName){
  String scenarioName=mappingName;
  CompletableFuture<Message> responseFuture=new CompletableFuture<>();
  SimulatorScenario scenario;
  if (StringUtils.hasText(scenarioName) && applicationContext.containsBean(scenarioName)) {
    scenario=applicationContext.getBean(scenarioName,SimulatorScenario.class);
  }
 else {
    scenarioName=configuration.getDefaultScenario();
    LOG.info(String.format("String_Node_Str" + "String_Node_Str",mappingName,scenarioName));
    scenario=applicationContext.getBean(scenarioName,SimulatorScenario.class);
  }
  scenario.getScenarioEndpoint().setName(scenarioName);
  scenario.getScenarioEndpoint().add(request,responseFuture);
  scenarioService.run(scenario,scenarioName,Collections.EMPTY_LIST);
  try {
    if (handleResponse) {
      return responseFuture.get(configuration.getDefaultTimeout(),TimeUnit.MILLISECONDS);
    }
 else {
      return null;
    }
  }
 catch (  TimeoutException e) {
    LOG.warn(String.format("String_Node_Str",scenarioName));
    return null;
  }
catch (  InterruptedException|ExecutionException e) {
    throw new SimulatorException(e);
  }
}
Program: 24532
Project: 24532
Buggy source:
/** 
 * Default constructor with correlation handler.
 */
public CorrelationHandlerBuilder(ScenarioEndpoint scenarioEndpoint){
  super(new StartCorrelationHandlerAction());
  this.scenarioEndpoint=scenarioEndpoint;
}

Fixed version (ground truth):
/** 
 * Default constructor with correlation handler.
 */
public CorrelationHandlerBuilder(ScenarioEndpoint scenarioEndpoint,ApplicationContext applicationContext){
  super(new StartCorrelationHandlerAction());
  this.scenarioEndpoint=scenarioEndpoint;
  this.applicationContext=applicationContext;
}
Program: 24533
Project: 24533
Buggy source:
public CorrelationHandlerBuilder onPayload(String expression,String value){
  return withHandler(new XPathPayloadCorrelationHandler(scenarioEndpoint,expression,value));
}

Fixed version (ground truth):
public CorrelationHandlerBuilder onPayload(String expression,String value){
  return withHandler(new XPathPayloadCorrelationHandler(lookupNamespaceContextBuilder(),scenarioEndpoint,expression,value));
}
Program: 24534
Project: 24534
Buggy source:
/** 
 * Default constructor using expression value to match.
 * @param scenarioEndpoint
 * @param expression
 * @param value
 */
public XPathPayloadCorrelationHandler(ScenarioEndpoint scenarioEndpoint,String expression,String value){
  super(scenarioEndpoint);
  this.xPathPayloadMappingKeyExtractor.setXpathExpression(expression);
  this.value=value;
}

Fixed version (ground truth):
/** 
 * Default constructor using expression value to match.
 * @param namespaceContextBuilder
 * @param scenarioEndpoint
 * @param expression
 * @param value
 */
public XPathPayloadCorrelationHandler(NamespaceContextBuilder namespaceContextBuilder,ScenarioEndpoint scenarioEndpoint,String expression,String value){
  super(scenarioEndpoint);
  this.xPathPayloadMappingKeyExtractor.setNamespaceContextBuilder(namespaceContextBuilder);
  this.xPathPayloadMappingKeyExtractor.setXpathExpression(expression);
  this.value=value;
}
Program: 24535
Project: 24535
Buggy source:
/** 
 * Start new message correlation so scenario is provided with additional inbound messages.
 * @return
 */
public CorrelationManager correlation(){
  return () -> {
    CorrelationHandlerBuilder builder=new CorrelationHandlerBuilder(scenarioEndpoint);
    action(builder);
    doFinally().actions(builder.stop());
    return builder;
  }
;
}

Fixed version (ground truth):
/** 
 * Start new message correlation so scenario is provided with additional inbound messages.
 * @return
 */
public CorrelationManager correlation(){
  return () -> {
    CorrelationHandlerBuilder builder=new CorrelationHandlerBuilder(scenarioEndpoint,getApplicationContext());
    action(builder);
    doFinally().actions(builder.stop());
    return builder;
  }
;
}
Program: 24536
Project: 24536
Buggy source:
/** 
 * Start new message correlation so scenario is provided with additional inbound messages.
 * @return
 */
public StartCorrelationHandlerAction correlation(CorrelationBuilderSupport configurer){
  CorrelationHandlerBuilder builder=new CorrelationHandlerBuilder(scenarioEndpoint);
  configurer.configure(() -> builder);
  doFinally().actions(builder.stop());
  return run(builder.build());
}

Fixed version (ground truth):
/** 
 * Start new message correlation so scenario is provided with additional inbound messages.
 * @return
 */
public StartCorrelationHandlerAction correlation(CorrelationBuilderSupport configurer){
  CorrelationHandlerBuilder builder=new CorrelationHandlerBuilder(scenarioEndpoint,getApplicationContext());
  configurer.configure(() -> builder);
  doFinally().actions(builder.stop());
  return run(builder.build());
}
Program: 24537
Project: 24537
Buggy source:
@PostConstruct private void init(){
  scenarios=applicationContext.getBeansOfType(SimulatorScenario.class);
  log.info(String.format("String_Node_Str",Arrays.toString(scenarios.keySet().toArray())));
  scenarioStarters=applicationContext.getBeansOfType(ScenarioStarter.class);
  log.info(String.format("String_Node_Str",Arrays.toString(scenarioStarters.keySet().toArray())));
}

Fixed version (ground truth):
@PostConstruct private void init(){
  scenarios=findSimulatorScenarios(applicationContext);
  scenarioStarters=findScenarioStarters(applicationContext);
}
Program: 24539
Project: 24539
Buggy source:
@Override public Collection<ScenarioParameter> lookupScenarioParameters(String scenarioName){
  if (scenarioStarters.containsKey(scenarioName)) {
    return scenarioStarters.get(scenarioName).getScenarioParameters();
  }
  return Collections.EMPTY_LIST;
}

Fixed version (ground truth):
@Override public Collection<ScenarioParameter> lookupScenarioParameters(String scenarioName){
  if (scenarioStarters.containsKey(scenarioName)) {
    return scenarioStarters.get(scenarioName).getScenarioParameters();
  }
  return Collections.emptyList();
}
Program: 24540
Project: 24540
Buggy source:
/** 
 * Adds a new variable to the testExecutable using the supplied key an value.
 * @param scenario
 * @param key            variable name
 * @param value          variable value
 */
private void addVariable(SimulatorScenario scenario,String key,Object value){
  if (scenario instanceof TestDesigner) {
    ((TestDesigner)scenario).variable(key,value);
  }
  if (scenario instanceof TestRunner) {
    ((TestRunner)scenario).variable(key,value);
  }
}

Fixed version (ground truth):
/** 
 * Adds a new variable to the testExecutable using the supplied key an value.
 * @param scenario
 * @param key      variable name
 * @param value    variable value
 */
private void addVariable(SimulatorScenario scenario,String key,Object value){
  if (scenario instanceof TestDesigner) {
    ((TestDesigner)scenario).variable(key,value);
  }
  if (scenario instanceof TestRunner) {
    ((TestRunner)scenario).variable(key,value);
  }
}
Program: 24541
Project: 24541
Buggy source:
/** 
 * Start up runnable in separate thread.
 */
public void start(){
  running=true;
  taskExecutor.execute(this);
}

Fixed version (ground truth):
/** 
 * Start up runnable in separate thread.
 */
public void start(){
  running=true;
  taskExecutor.setDaemon(true);
  taskExecutor.execute(this);
}
Program: 24542
Project: 24542
Buggy source:
@Override public final Long run(String name,List<ScenarioParameter> scenarioParameters){
  log.info(String.format("String_Node_Str",name));
  Executable testExecutable=applicationContext.getBean(name,Executable.class);
  if (testExecutable instanceof ApplicationContextAware) {
    ((ApplicationContextAware)testExecutable).setApplicationContext(applicationContext);
  }
  prepare(testExecutable);
  if (scenarioParameters != null) {
    scenarioParameters.forEach(p -> addTestVariable(testExecutable,p.getName(),p.getValue()));
  }
  ScenarioExecution es=activityService.createExecutionScenario(name,scenarioParameters);
  addTestVariable(testExecutable,ScenarioExecution.EXECUTION_ID,es.getExecutionId());
  ExecutorService executor=Executors.newSingleThreadExecutor();
  executor.submit(() -> {
    log.debug(String.format("String_Node_Str",name));
    try {
      testExecutable.execute();
      log.debug(String.format("String_Node_Str",name));
    }
 catch (    Exception e) {
      log.error(String.format("String_Node_Str",name),e);
    }
  }
);
  return es.getExecutionId();
}

Fixed version (ground truth):
@Override public final Long run(String name,List<ScenarioParameter> scenarioParameters){
  log.info(String.format("String_Node_Str",name));
  Executable testExecutable=applicationContext.getBean(name,Executable.class);
  if (testExecutable instanceof ApplicationContextAware) {
    ((ApplicationContextAware)testExecutable).setApplicationContext(applicationContext);
  }
  prepare(testExecutable);
  if (scenarioParameters != null) {
    scenarioParameters.forEach(p -> addTestVariable(testExecutable,p.getName(),p.getValue()));
  }
  ScenarioExecution es=activityService.createExecutionScenario(name,scenarioParameters);
  addTestVariable(testExecutable,ScenarioExecution.EXECUTION_ID,es.getExecutionId());
  executeScenarioAsync(name,testExecutable);
  return es.getExecutionId();
}
Program: 24543
Project: 24543
Buggy source:
/** 
 * Tests the UpdateFaxStatus simulation starter. It launches the simulation started via the simulator's REST interface and verifies that the status update was sent.
 */
public void testUpdateFaxStatusStarter(){
  ReferenceId referenceId=new ReferenceId();
  Status status=new Status(FaxStatusEnumType.QUEUED);
  StatusMessage statusMessage=new StatusMessage("String_Node_Str");
  http().client(restEndpoint).send().post("String_Node_Str").contentType("String_Node_Str").payload(asJson(referenceId.asScenarioParameter(),status.asScenarioParameter(),statusMessage.asScenarioParameter()));
  receive(simulatorOutboundEndpoint).payload(payloadHelper.generateFaxStatusMessage(referenceId.getValue(),FaxStatusEnumType.QUEUED,statusMessage.getValue()),payloadHelper.getMarshaller());
}

Fixed version (ground truth):
/** 
 * Tests the UpdateFaxStatus simulation starter. It launches the simulation started via the simulator's REST interface and verifies that the status update was sent.
 */
@CitrusTest public void testUpdateFaxStatusStarter(){
  ReferenceId referenceId=new ReferenceId();
  Status status=new Status(FaxStatusEnumType.QUEUED);
  StatusMessage statusMessage=new StatusMessage("String_Node_Str");
  http().client(restEndpoint).send().post("String_Node_Str").contentType("String_Node_Str").payload(asJson(referenceId.asScenarioParameter(),status.asScenarioParameter(),statusMessage.asScenarioParameter()));
  http().client(restEndpoint).receive().response(HttpStatus.OK);
  receive(simulatorOutboundEndpoint).payload(payloadHelper.generateFaxStatusMessage(referenceId.getValue(),FaxStatusEnumType.QUEUED,statusMessage.getValue()),payloadHelper.getMarshaller());
}
Program: 24544
Project: 24544
Buggy source:
@Override public void onTestActionFinish(TestCase testCase,TestAction testAction){
  executionService.completeTestAction(testCase,testAction);
}

Fixed version (ground truth):
@Override public void onTestActionFinish(TestCase testCase,TestAction testAction){
  if (!ignoreTestAction(testAction)) {
    executionService.completeTestAction(testCase,testAction);
  }
}
Program: 24545
Project: 24545
Buggy source:
@Override public void onTestActionStart(TestCase testCase,TestAction testAction){
  if (!testAction.getClass().equals(SleepAction.class)) {
    LOG.debug(testCase.getName() + "String_Node_Str" + StringUtils.arrayToCommaDelimitedString(getParameters(testCase))+ "String_Node_Str"+ testAction.getName()+ "String_Node_Str"+ (StringUtils.hasText(testAction.getDescription()) ? testAction.getDescription() : "String_Node_Str"));
    executionService.createTestAction(testCase,testAction);
  }
}

Fixed version (ground truth):
@Override public void onTestActionStart(TestCase testCase,TestAction testAction){
  if (!ignoreTestAction(testAction)) {
    LOG.debug(testCase.getName() + "String_Node_Str" + StringUtils.arrayToCommaDelimitedString(getParameters(testCase))+ "String_Node_Str"+ testAction.getName()+ "String_Node_Str"+ (StringUtils.hasText(testAction.getDescription()) ? testAction.getDescription() : "String_Node_Str"));
    executionService.createTestAction(testCase,testAction);
  }
}
Program: 24546
Project: 24546
Buggy source:
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<ScenarioParameter>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}

Fixed version (ground truth):
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}
Program: 24547
Project: 24547
Buggy source:
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<ScenarioParameter>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}

Fixed version (ground truth):
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}
Program: 24548
Project: 24548
Buggy source:
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<ScenarioParameter>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}

Fixed version (ground truth):
@Override public List<ScenarioParameter> getScenarioParameter(){
  List<ScenarioParameter> parameters=new ArrayList<>();
  parameters.add(new ScenarioParameter("String_Node_Str","String_Node_Str","String_Node_Str").addScenarioFilter(HelloStarter.class));
  return parameters;
}
Program: 24549
Project: 24549
Buggy source:
public void frameworkEvent(FrameworkEvent event){
  if (event.getType() != FrameworkEvent.PACKAGES_REFRESHED)   return;
  long bundleID=bundlesToKill.removeLast().longValue();
  System.out.println("String_Node_Str" + bundleID);
  j3.vm.OSGi.resetReferencesToBundle(bundleID);
}

Fixed version (ground truth):
public void frameworkEvent(FrameworkEvent event){
  if (event.getType() != FrameworkEvent.PACKAGES_REFRESHED)   return;
  if (bundlesToKill.isEmpty())   return;
  long bundleID=bundlesToKill.removeLast().longValue();
  System.out.println("String_Node_Str" + bundleID);
  j3.vm.OSGi.resetReferencesToBundle(bundleID);
}
Program: 24550
Project: 24550
Buggy source:
public void tracePageAcquired(Space space,Address startAddress,int numPages){
}

Fixed version (ground truth):
public native void tracePageAcquired(Space space,Address startAddress,int numPages);
Program: 24551
Project: 24551
Buggy source:
public void heapSizeChanged(Extent heapSize){
}

Fixed version (ground truth):
public native void heapSizeChanged(Extent heapSize);
Program: 24552
Project: 24552
Buggy source:
public void tracePageReleased(Space space,Address startAddress,int numPages){
}

Fixed version (ground truth):
public native void tracePageReleased(Space space,Address startAddress,int numPages);
Program: 24553
Project: 24553
Buggy source:
@Override public String dataSourceIngestNow(List<DataSourceUI> dataSourceUIList) throws ServerSideException {
  try {
    for (    DataSourceUI dataSourceUI : dataSourceUIList) {
      DataSource dataSource=ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager().getDataSourceContainer(dataSourceUI.getDataSourceSet()).getDataSource();
      if (dataSource == null) {
        return "String_Node_Str";
      }
      int oldValue=dataSource.getMaxRecord4Sample();
      ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager().startIngestDataSource(dataSourceUI.getDataSourceSet(),true,oldValue != -1);
    }
  }
 catch (  ObjectNotFoundException e) {
    return "String_Node_Str";
  }
catch (  AlreadyExistsException e) {
    return "String_Node_Str";
  }
catch (  Exception e) {
    e.printStackTrace();
    throw new ServerSideException(Util.stackTraceToString(e));
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
@Override public String dataSourceIngestNow(List<DataSourceUI> dataSourceUIList) throws ServerSideException {
  try {
    for (    DataSourceUI dataSourceUI : dataSourceUIList) {
      DataSource dataSource=ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager().getDataSourceContainer(dataSourceUI.getDataSourceSet()).getDataSource();
      if (dataSource == null) {
        return "String_Node_Str";
      }
      ConfigSingleton.getRepoxContextUtil().getRepoxManager().getDataManager().startIngestDataSource(dataSourceUI.getDataSourceSet(),true,!dataSource.isSample());
    }
  }
 catch (  ObjectNotFoundException e) {
    return "String_Node_Str";
  }
catch (  AlreadyExistsException e) {
    return "String_Node_Str";
  }
catch (  Exception e) {
    e.printStackTrace();
    throw new ServerSideException(Util.stackTraceToString(e));
  }
  return "String_Node_Str";
}
Program: 24559
Project: 24559
Buggy source:
private static void loadIdExtractedInfo(DirectoryImporterDataSource dataSourceDirectoryImporter,DataSource dataSource,DataSourceUI dataSourceUI){
  if (dataSourceDirectoryImporter.getRecordIdPolicy() instanceof IdExtractedRecordIdPolicy) {
    IdExtractedRecordIdPolicy idExtracted=(IdExtractedRecordIdPolicy)dataSource.getRecordIdPolicy();
    dataSourceUI.setIdXPath(idExtracted.getIdentifierXpath());
    dataSourceUI.setRecordIdPolicy("String_Node_Str");
    Map<String,String> namespaces=idExtracted.getNamespaces();
    Iterator iterator=namespaces.entrySet().iterator();
    while (iterator.hasNext()) {
      Map.Entry mapEntry=(Map.Entry)iterator.next();
      dataSourceUI.getNamespaceList().add("String_Node_Str" + mapEntry.getKey());
      dataSourceUI.getNamespaceList().add("String_Node_Str" + mapEntry.getValue());
    }
  }
 else   dataSourceUI.setRecordIdPolicy("String_Node_Str");
}

Fixed version (ground truth):
private static void loadIdExtractedInfo(DirectoryImporterDataSource dataSourceDirectoryImporter,DataSource dataSource,DataSourceUI dataSourceUI){
  if (dataSourceDirectoryImporter.getRecordIdPolicy() instanceof IdExtractedRecordIdPolicy) {
    IdExtractedRecordIdPolicy idExtracted=(IdExtractedRecordIdPolicy)dataSource.getRecordIdPolicy();
    dataSourceUI.setIdXPath(idExtracted.getIdentifierXpath());
    dataSourceUI.setRecordIdPolicy(IdExtractedRecordIdPolicy.IDEXTRACTED);
    Map<String,String> namespaces=idExtracted.getNamespaces();
    Iterator iterator=namespaces.entrySet().iterator();
    while (iterator.hasNext()) {
      Map.Entry mapEntry=(Map.Entry)iterator.next();
      dataSourceUI.getNamespaceList().add("String_Node_Str" + mapEntry.getKey());
      dataSourceUI.getNamespaceList().add("String_Node_Str" + mapEntry.getValue());
    }
  }
 else   dataSourceUI.setRecordIdPolicy(IdGeneratedRecordIdPolicy.IDGENERATED);
}
Program: 24560
Project: 24560
Buggy source:
/** 
 * Create new Aggregator
 * @param name
 * @param nameCode
 * @param homepageUrl
 * @throws IOException
 * @throws DocumentException
 * @return MessageType
 * @throws InvalidArgumentsException 
 * @throws AlreadyExistsException 
 */
public Aggregator createAggregator(String name,String nameCode,String homepageUrl) throws DocumentException, IOException, InvalidArgumentsException, AlreadyExistsException {
  Aggregator newAggregator=new Aggregator();
  if (homepageUrl != null && !homepageUrl.equals("String_Node_Str")) {
    try {
      String generatedHomepageUrl=null;
      if (!homepageUrl.startsWith("String_Node_Str") && !homepageUrl.startsWith("String_Node_Str")) {
        generatedHomepageUrl="String_Node_Str" + homepageUrl;
      }
      if (!FileUtilSecond.checkUrl(generatedHomepageUrl)) {
        throw new Exception();
      }
      newAggregator.setHomePage(generatedHomepageUrl);
    }
 catch (    Exception e) {
      throw new InvalidArgumentsException(homepageUrl);
    }
  }
  newAggregator.setName(name);
  newAggregator.setNameCode(nameCode);
  newAggregator.setId(Aggregator.generateId(newAggregator.getName()));
  if (!checkIfAggregatorExists(aggregators,newAggregator)) {
    aggregators.add(newAggregator);
    saveData();
    return newAggregator;
  }
 else   throw new AlreadyExistsException(newAggregator.getName());
}

Fixed version (ground truth):
/** 
 * Create new Aggregator
 * @param name
 * @param nameCode
 * @param homepageUrl
 * @throws IOException
 * @throws DocumentException
 * @return MessageType
 * @throws InvalidArgumentsException 
 * @throws AlreadyExistsException 
 */
public Aggregator createAggregator(String name,String nameCode,String homepageUrl) throws DocumentException, IOException, InvalidArgumentsException, AlreadyExistsException {
  Aggregator newAggregator=new Aggregator();
  if (homepageUrl != null && !homepageUrl.equals("String_Node_Str")) {
    try {
      String generatedHomepageUrl=null;
      if (!homepageUrl.startsWith("String_Node_Str") && !homepageUrl.startsWith("String_Node_Str")) {
        generatedHomepageUrl="String_Node_Str" + homepageUrl;
      }
      if (!FileUtilSecond.checkUrl(generatedHomepageUrl)) {
        throw new Exception();
      }
      newAggregator.setHomePage(generatedHomepageUrl);
    }
 catch (    Exception e) {
      throw new InvalidArgumentsException(homepageUrl);
    }
  }
 else   if (homepageUrl != null && homepageUrl.equals("String_Node_Str"))   newAggregator.setHomePage(homepageUrl);
  newAggregator.setName(name);
  newAggregator.setNameCode(nameCode);
  newAggregator.setId(Aggregator.generateId(newAggregator.getName()));
  if (!checkIfAggregatorExists(aggregators,newAggregator)) {
    aggregators.add(newAggregator);
    saveData();
    return newAggregator;
  }
 else   throw new AlreadyExistsException(newAggregator.getName());
}
Program: 24562
Project: 24562
Buggy source:
private DataProviderUI parseDataProviderEuropeana(DataProvider dataProvider,AggregatorUI aggregatorUI) throws ServerSideException {
  DataProvider dataProviderEuropeana=dataProvider;
  String country;
  if (dataProviderEuropeana.getCountry() != null)   country=dataProviderEuropeana.getCountry();
 else   country="String_Node_Str";
  DataProviderUI newDataProviderUI=new DataProviderUI(dataProviderEuropeana.getId(),dataProviderEuropeana.getName(),country,(country != null && !country.equals("String_Node_Str")) ? Countries.getCountries().get(country) : "String_Node_Str");
  newDataProviderUI.setName(dataProviderEuropeana.getName());
  newDataProviderUI.setNameCode(dataProviderEuropeana.getNameCode());
  newDataProviderUI.setDescription(dataProviderEuropeana.getDescription());
  if (dataProviderEuropeana.getHomePage() != null)   newDataProviderUI.setHomepage(dataProviderEuropeana.getHomePage().toString());
  newDataProviderUI.setType(dataProviderEuropeana.getProviderType().name());
  newDataProviderUI.setParentAggregatorID(aggregatorUI.getId());
  return newDataProviderUI;
}

Fixed version (ground truth):
private DataProviderUI parseDataProviderEuropeana(DataProvider dataProvider,AggregatorUI aggregatorUI) throws ServerSideException {
  DataProvider dataProviderEuropeana=dataProvider;
  String country;
  if (dataProviderEuropeana.getCountry() != null)   country=dataProviderEuropeana.getCountry();
 else   country="String_Node_Str";
  DataProviderUI newDataProviderUI=new DataProviderUI(dataProviderEuropeana.getId(),dataProviderEuropeana.getName(),country,(country != null && !country.equals("String_Node_Str")) ? Countries.getCountries().get(country) : "String_Node_Str");
  newDataProviderUI.setName(dataProviderEuropeana.getName());
  newDataProviderUI.setNameCode(dataProviderEuropeana.getNameCode());
  newDataProviderUI.setDescription(dataProviderEuropeana.getDescription());
  if (dataProviderEuropeana.getHomepage() != null)   newDataProviderUI.setHomepage(dataProviderEuropeana.getHomepage().toString());
  newDataProviderUI.setType(dataProviderEuropeana.getProviderType().name());
  newDataProviderUI.setParentAggregatorID(aggregatorUI.getId());
  return newDataProviderUI;
}
Program: 24564
Project: 24564
Buggy source:
Host getHost(Message.Request request){
}

Fixed version (ground truth):
Host getHost(Message.Request request){
  if (request instanceof Requests.DestinationSpecific) {
    Object routingKey=((Requests.DestinationSpecific)request).getRoutingKey();
    if (null == routingKey)     throw new NoHostAvailableException(String.format("String_Node_Str"));
    Host host=getHostForRoutingKey(routingKey);
    if (null == host)     throw new NoHostAvailableException(String.format("String_Node_Str",routingKey));
    return host;
  }
 else {
    return null;
  }
}
Program: 24565
Project: 24565
Buggy source:
public Date runningSince(){
  return initialStart;
}

Fixed version (ground truth):
public Date runningSince(){
  return new Date(initialStart.getTime());
}
Program: 24566
Project: 24566
Buggy source:
/** 
 * <p> Retrieve the identified <code>boolean</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public boolean getBooleanValueFromString(String key){
  Object obj=get(key);
  return new Boolean((String)obj).booleanValue();
}

Fixed version (ground truth):
/** 
 * <p> Retrieve the identified <code>boolean</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public boolean getBooleanValueFromString(String key){
  Object obj=get(key);
  return Boolean.valueOf((String)obj).booleanValue();
}
Program: 24567
Project: 24567
Buggy source:
/** 
 * <p> Retrieve the identified <code>Boolean</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public Boolean getBooleanFromString(String key){
  Object obj=get(key);
  return new Boolean((String)obj);
}

Fixed version (ground truth):
/** 
 * <p> Retrieve the identified <code>Boolean</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public Boolean getBooleanFromString(String key){
  Object obj=get(key);
  return Boolean.valueOf((String)obj);
}
Program: 24568
Project: 24568
Buggy source:
/** 
 * <p> Retrieve the identified <code>double</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public double getDoubleValueFromString(String key){
  Object obj=get(key);
  return new Double((String)obj).doubleValue();
}

Fixed version (ground truth):
/** 
 * <p> Retrieve the identified <code>double</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public double getDoubleValueFromString(String key){
  Object obj=get(key);
  return Double.valueOf((String)obj).doubleValue();
}
Program: 24569
Project: 24569
Buggy source:
/** 
 * <p> Retrieve the identified <code>Character</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public Character getCharacterFromString(String key){
  Object obj=get(key);
  return new Character(((String)obj).charAt(0));
}

Fixed version (ground truth):
/** 
 * <p> Retrieve the identified <code>Character</code> value from the <code>JobDataMap</code>. </p>
 * @throws ClassCastException if the identified object is not a String.
 */
public Character getCharacterFromString(String key){
  Object obj=get(key);
  return Character.valueOf(((String)obj).charAt(0));
}
Program: 24570
Project: 24570
Buggy source:
public void initialize() throws SchedulerException {
  try {
    bind();
  }
 catch (  Exception re) {
    throw new SchedulerException("String_Node_Str",re);
  }
  if (resources.getJMXExport()) {
    try {
      registerJMX();
    }
 catch (    Exception e) {
      throw new SchedulerException("String_Node_Str",e);
    }
  }
  getLog().info("String_Node_Str" + (new SchedulerMetaData(getSchedulerName(),getSchedulerInstanceId(),getClass(),boundRemotely,runningSince() != null,isInStandbyMode(),isShutdown(),runningSince(),numJobsExecuted(),getJobStoreClass(),supportsPersistence(),isClustered(),getThreadPoolClass(),getThreadPoolSize(),getVersion())).toString());
}

Fixed version (ground truth):
public void initialize() throws SchedulerException {
  try {
    bind();
  }
 catch (  Exception re) {
    throw new SchedulerException("String_Node_Str",re);
  }
  if (resources.getJMXExport()) {
    try {
      registerJMX();
    }
 catch (    Exception e) {
      throw new SchedulerException("String_Node_Str",e);
    }
  }
  this.schedThread.start();
  getLog().info("String_Node_Str" + (new SchedulerMetaData(getSchedulerName(),getSchedulerInstanceId(),getClass(),boundRemotely,runningSince() != null,isInStandbyMode(),isShutdown(),runningSince(),numJobsExecuted(),getJobStoreClass(),supportsPersistence(),isClustered(),getThreadPoolClass(),getThreadPoolSize(),getVersion())).toString());
}
Program: 24571
Project: 24571
Buggy source:
/** 
 * <p> Construct a new <code>QuartzSchedulerThread</code> for the given <code>QuartzScheduler</code> as a <code>Thread</code> with the given attributes. </p>
 */
QuartzSchedulerThread(QuartzScheduler qs,QuartzSchedulerResources qsRsrcs,boolean setDaemon,int threadPrio){
  super(qs.getSchedulerThreadGroup(),qsRsrcs.getThreadName());
  this.qs=qs;
  this.qsRsrcs=qsRsrcs;
  this.setDaemon(setDaemon);
  if (qsRsrcs.isThreadsInheritInitializersClassLoadContext()) {
    log.info("String_Node_Str" + Thread.currentThread().getName());
    this.setContextClassLoader(Thread.currentThread().getContextClassLoader());
  }
  this.setPriority(threadPrio);
  paused=true;
  halted=new AtomicBoolean(false);
  this.start();
}

Fixed version (ground truth):
/** 
 * <p> Construct a new <code>QuartzSchedulerThread</code> for the given <code>QuartzScheduler</code> as a <code>Thread</code> with the given attributes. </p>
 */
QuartzSchedulerThread(QuartzScheduler qs,QuartzSchedulerResources qsRsrcs,boolean setDaemon,int threadPrio){
  super(qs.getSchedulerThreadGroup(),qsRsrcs.getThreadName());
  this.qs=qs;
  this.qsRsrcs=qsRsrcs;
  this.setDaemon(setDaemon);
  if (qsRsrcs.isThreadsInheritInitializersClassLoadContext()) {
    log.info("String_Node_Str" + Thread.currentThread().getName());
    this.setContextClassLoader(Thread.currentThread().getContextClassLoader());
  }
  this.setPriority(threadPrio);
  paused=true;
  halted=new AtomicBoolean(false);
}
Program: 24573
Project: 24573
Buggy source:
public void jobToBeExecuted(JobExecutionContext context){
  numJobsFired++;
synchronized (executingJobs) {
    executingJobs.put(((OperableTrigger)context.getTrigger()).getFireInstanceId(),context);
  }
}

Fixed version (ground truth):
public void jobToBeExecuted(JobExecutionContext context){
  numJobsFired.incrementAndGet();
synchronized (executingJobs) {
    executingJobs.put(((OperableTrigger)context.getTrigger()).getFireInstanceId(),context);
  }
}
Program: 24574
Project: 24574
Buggy source:
public int getNumJobsFired(){
  return numJobsFired;
}

Fixed version (ground truth):
public int getNumJobsFired(){
  return numJobsFired.get();
}
Program: 24575
Project: 24575
Buggy source:
/** 
 * @return whether the associated Job class carries the {@link PersistJobDataAfterExecution} annotation.
 */
public boolean isPersistJobDataAfterExecution(){
  if (jobClass == null) {
    return false;
  }
  return jobClass.isAnnotationPresent(PersistJobDataAfterExecution.class);
}

Fixed version (ground truth):
/** 
 * @return whether the associated Job class carries the {@link PersistJobDataAfterExecution} annotation.
 */
public boolean isPersistJobDataAfterExecution(){
  return ClassUtils.isAnnotationPresent(jobClass,PersistJobDataAfterExecution.class);
}
Program: 24576
Project: 24576
Buggy source:
/** 
 * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
 */
public boolean isConcurrentExectionDisallowed(){
  if (jobClass == null) {
    return false;
  }
  return jobClass.isAnnotationPresent(DisallowConcurrentExecution.class);
}

Fixed version (ground truth):
/** 
 * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
 */
public boolean isConcurrentExectionDisallowed(){
  return ClassUtils.isAnnotationPresent(jobClass,DisallowConcurrentExecution.class);
}
Program: 24577
Project: 24577
Buggy source:
/** 
 * <p> Get a <code>Date</code> object that represents the given time, on the given date. </p>
 * @param second The value (0-59) to give the seconds field of the date
 * @param minute The value (0-59) to give the minutes field of the date
 * @param hour The value (0-23) to give the hours field of the date
 * @param dayOfMonth The value (1-31) to give the day of month field of the date
 * @param month The value (1-12) to give the month field of the date
 * @param year The value (1970-2099) to give the year field of the date
 * @return the new date
 */
public static Date dateOf(int second,int minute,int hour,int dayOfMonth,int month,int year){
  validateSecond(second);
  validateMinute(minute);
  validateHour(hour);
  validateDayOfMonth(dayOfMonth);
  validateMonth(month);
  validateYear(year);
  Date date=new Date();
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  c.set(Calendar.YEAR,year);
  c.set(Calendar.MONTH,month - 1);
  c.set(Calendar.DAY_OF_MONTH,dayOfMonth);
  c.set(Calendar.HOUR_OF_DAY,hour);
  c.set(Calendar.MINUTE,minute);
  c.set(Calendar.SECOND,second);
  c.set(Calendar.MILLISECOND,0);
  return c.getTime();
}

Fixed version (ground truth):
/** 
 * <p> Get a <code>Date</code> object that represents the given time, on the given date. </p>
 * @param second The value (0-59) to give the seconds field of the date
 * @param minute The value (0-59) to give the minutes field of the date
 * @param hour The value (0-23) to give the hours field of the date
 * @param dayOfMonth The value (1-31) to give the day of month field of the date
 * @param month The value (1-12) to give the month field of the date
 * @param year The value (1970-2099) to give the year field of the date
 * @return the new date
 */
public static Date dateOf(int hour,int minute,int second,int dayOfMonth,int month,int year){
  validateSecond(second);
  validateMinute(minute);
  validateHour(hour);
  validateDayOfMonth(dayOfMonth);
  validateMonth(month);
  validateYear(year);
  Date date=new Date();
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  c.set(Calendar.YEAR,year);
  c.set(Calendar.MONTH,month - 1);
  c.set(Calendar.DAY_OF_MONTH,dayOfMonth);
  c.set(Calendar.HOUR_OF_DAY,hour);
  c.set(Calendar.MINUTE,minute);
  c.set(Calendar.SECOND,second);
  c.set(Calendar.MILLISECOND,0);
  return c.getTime();
}
Program: 24578
Project: 24578
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public TriggerState getTriggerState(TriggerKey triggerKey) throws SchedulerException {
  return (TriggerState)invoke("String_Node_Str",new Object[]{triggerKey.getName(),triggerKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public TriggerState getTriggerState(TriggerKey triggerKey) throws SchedulerException {
  return (TriggerState)invoke("String_Node_Str",new Object[]{triggerKey},new String[]{TriggerKey.class.getName()});
}
Program: 24579
Project: 24579
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void resumeTrigger(TriggerKey triggerKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{triggerKey.getName(),triggerKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void resumeTrigger(TriggerKey triggerKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{triggerKey},new String[]{TriggerKey.class.getName()});
}
Program: 24580
Project: 24580
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public boolean deleteJob(JobKey jobKey) throws SchedulerException {
  return ((Boolean)invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()})).booleanValue();
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public boolean deleteJob(JobKey jobKey) throws SchedulerException {
  return ((Boolean)invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()})).booleanValue();
}
Program: 24581
Project: 24581
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void pauseJob(JobKey jobKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void pauseJob(JobKey jobKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()});
}
Program: 24582
Project: 24582
Buggy source:
/** 
 * @see org.quartz.Scheduler#interrupt(JobKey)
 */
public boolean interrupt(JobKey jobKey) throws UnableToInterruptJobException {
  try {
    return ((Boolean)invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()})).booleanValue();
  }
 catch (  SchedulerException se) {
    throw new UnableToInterruptJobException(se);
  }
}

Fixed version (ground truth):
/** 
 * @see org.quartz.Scheduler#interrupt(JobKey)
 */
public boolean interrupt(JobKey jobKey) throws UnableToInterruptJobException {
  try {
    return ((Boolean)invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()})).booleanValue();
  }
 catch (  SchedulerException se) {
    throw new UnableToInterruptJobException(se);
  }
}
Program: 24583
Project: 24583
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void triggerJob(JobKey jobKey,JobDataMap data) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup(),data},new String[]{String.class.getName(),String.class.getName(),JobDataMap.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void triggerJob(JobKey jobKey,JobDataMap data) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey,data},new String[]{JobKey.class.getName(),JobDataMap.class.getName()});
}
Program: 24584
Project: 24584
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. </p>
 */
public Trigger getTrigger(TriggerKey triggerKey) throws SchedulerException {
  return (Trigger)invoke("String_Node_Str",new Object[]{triggerKey.getName(),triggerKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. </p>
 */
public Trigger getTrigger(TriggerKey triggerKey) throws SchedulerException {
  return (Trigger)invoke("String_Node_Str",new Object[]{triggerKey},new String[]{TriggerKey.class.getName()});
}
Program: 24585
Project: 24585
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void resumeJob(JobKey jobKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void resumeJob(JobKey jobKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()});
}
Program: 24586
Project: 24586
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public boolean unscheduleJob(TriggerKey triggerKey) throws SchedulerException {
  return ((Boolean)invoke("String_Node_Str",new Object[]{triggerKey.getName(),triggerKey.getGroup()},new String[]{String.class.getName(),String.class.getName()})).booleanValue();
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public boolean unscheduleJob(TriggerKey triggerKey) throws SchedulerException {
  return ((Boolean)invoke("String_Node_Str",new Object[]{triggerKey},new String[]{TriggerKey.class.getName()})).booleanValue();
}
Program: 24587
Project: 24587
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public List<Trigger> getTriggersOfJob(JobKey jobKey) throws SchedulerException {
  return (List<Trigger>)invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public List<Trigger> getTriggersOfJob(JobKey jobKey) throws SchedulerException {
  return (List<Trigger>)invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()});
}
Program: 24588
Project: 24588
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public JobDetail getJobDetail(JobKey jobKey) throws SchedulerException {
  return (JobDetail)invoke("String_Node_Str",new Object[]{jobKey.getName(),jobKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public JobDetail getJobDetail(JobKey jobKey) throws SchedulerException {
  return (JobDetail)invoke("String_Node_Str",new Object[]{jobKey},new String[]{JobKey.class.getName()});
}
Program: 24589
Project: 24589
Buggy source:
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void pauseTrigger(TriggerKey triggerKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{triggerKey.getName(),triggerKey.getGroup()},new String[]{String.class.getName(),String.class.getName()});
}

Fixed version (ground truth):
/** 
 * <p> Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, passing the <code>SchedulingContext</code> associated with this instance. </p>
 */
public void pauseTrigger(TriggerKey triggerKey) throws SchedulerException {
  invoke("String_Node_Str",new Object[]{triggerKey},new String[]{TriggerKey.class.getName()});
}