nus-yam/ex-repair huggingface dataset:
Program: 55449
Project: 55449
Buggy source:
@Override protected void process(@NotNull final Wire in,@NotNull final Wire out) throws StreamCorruptedException {
  logYamlToStandardOut(in);
  in.readDocument(this.metaDataConsumer,(  WireIn dataWire) -> {
    try {
      if (mh != null) {
        final Class viewType=requestContext.viewType();
        if (viewType == MapView.class) {
          mapWireHandler.process(in,out,(MapView)view,tid,mh,requestContext);
          return;
        }
        if (viewType == EntrySetView.class) {
          entrySetHandler.process(in,out,(EntrySetView)view,cspText,mh.entryToWire(),mh.wireToEntry(),HashSet::new,tid);
          return;
        }
        if (viewType == KeySetView.class) {
          keySetHandler.process(in,out,(KeySetView)view,cspText,mh.keyToWire(),mh.wireToKey(),HashSet::new,tid);
          return;
        }
        if (viewType == ValuesView.class) {
          valuesHander.process(in,out,(ValuesView)view,cspText,mh.keyToWire(),mh.wireToKey(),ArrayList::new,tid);
          return;
        }
      }
      if (endsWith(cspText,"String_Node_Str") && queueWireHandler != null) {
        queueWireHandler.process(in,out);
      }
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str",e);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void process(@NotNull final Wire in,@NotNull final Wire out) throws StreamCorruptedException {
  logYamlToStandardOut(in);
  in.readDocument(this.metaDataConsumer,(  WireIn dataWire) -> {
    try {
      if (mh != null) {
        if (viewType == MapView.class) {
          mapWireHandler.process(in,out,(MapView)view,tid,mh,requestContext);
          return;
        }
        if (viewType == EntrySetView.class) {
          entrySetHandler.process(in,out,(EntrySetView)view,cspText,mh.entryToWire(),mh.wireToEntry(),HashSet::new,tid);
          return;
        }
        if (viewType == KeySetView.class) {
          keySetHandler.process(in,out,(KeySetView)view,cspText,mh.keyToWire(),mh.wireToKey(),HashSet::new,tid);
          return;
        }
        if (viewType == ValuesView.class) {
          valuesHander.process(in,out,(ValuesView)view,cspText,mh.keyToWire(),mh.wireToKey(),ArrayList::new,tid);
          return;
        }
      }
      if (endsWith(cspText,"String_Node_Str") && queueWireHandler != null) {
        queueWireHandler.process(in,out);
      }
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str",e);
    }
  }
);
}
Program: 55450
Project: 55450
Buggy source:
@NotNull private Consumer<WireIn> getWireInConsumer() throws IOException {
  return (metaDataWire) -> {
    try {
      readCsp(metaDataWire);
      readTid(metaDataWire);
      if (hasCspChanged(cspText)) {
        requestContext=RequestContext.requestContext(cspText);
        final Asset asset=Chassis.acquireAsset(requestContext);
        view=asset.acquireView(requestContext);
        requestContext.keyType();
        final Class viewType=requestContext.viewType();
        if (viewType == MapView.class || viewType == EntrySetView.class || viewType == ValuesView.class || viewType == KeySetView.class) {
          final Class kClass=requestContext.keyType() == null ? String.class : requestContext.keyType();
          final Class vClass=requestContext.valueType() == null ? String.class : requestContext.valueType();
          mh=new GenericMapHandler(kClass,vClass);
        }
 else         throw new UnsupportedOperationException("String_Node_Str");
      }
    }
 catch (    Exception e) {
      rethrow(e);
    }
  }
;
}

Fixed version (ground truth):
@NotNull private Consumer<WireIn> getWireInConsumer() throws IOException {
}
Program: 55451
Project: 55451
Buggy source:
@Override public void setCallback(Object callback){
  MapEventListener mel=(MapEventListener)callback;
  Consumer<FPMEvent> fpmEventConsumer=(  FPMEvent e) -> {
    System.out.println(e);
    if (subscribeAll || subscribedKeys.contains(e.getKey())) {
      mel.update(e.getKey(),e.getLastValue(),e.getValue());
    }
  }
;
  filePerKeyMap.registerForEvents(fpmEventConsumer);
}

Fixed version (ground truth):
@Override public void setCallback(Object callback){
  MapEventListener mel=(MapEventListener)callback;
  Consumer<FPMEvent> fpmEventConsumer=(  FPMEvent e) -> {
    LOG.error("String_Node_Str",e);
    if (subscribeAll || subscribedKeys.contains(e.getKey())) {
      mel.update(e.getKey(),e.getLastValue(),e.getValue());
    }
  }
;
  filePerKeyMap.registerForEvents(fpmEventConsumer);
}
Program: 55452
Project: 55452
Buggy source:
private void logYamlToStandardOut(@NotNull Wire in){
  if (YamlLogging.showServerReads) {
    try {
      System.out.println("String_Node_Str" + Wires.fromSizePrefixedBlobs(in.bytes()));
    }
 catch (    Exception e) {
      System.out.println("String_Node_Str" + Bytes.toDebugString(in.bytes()));
    }
  }
}

Fixed version (ground truth):
private void logYamlToStandardOut(@NotNull Wire in){
  if (YamlLogging.showServerReads) {
    try {
      LOG.info("String_Node_Str" + Wires.fromSizePrefixedBlobs(in.bytes()));
    }
 catch (    Exception e) {
      LOG.info("String_Node_Str" + Bytes.toDebugString(in.bytes()));
    }
  }
}
Program: 55453
Project: 55453
Buggy source:
@Ignore("String_Node_Str") @Test(timeout=500000) public void testPutAll() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    final Set<Map.Entry<Integer,String>> entries=mapProxy.entrySet();
    assertEquals(0,entries.size());
    assertEquals(true,entries.isEmpty());
    Map<Integer,String> data=new HashMap<>();
    data.put(1,"String_Node_Str");
    data.put(2,"String_Node_Str");
    assertEquals(true,entries.isEmpty());
    mapProxy.putAll(data);
    final Set<Map.Entry<Integer,String>> e=mapProxy.entrySet();
    final Iterator<Map.Entry<Integer,String>> iterator=e.iterator();
    Map.Entry<Integer,String> entry=iterator.next();
    if (entry.getKey() == 1) {
      assertEquals("String_Node_Str",entry.getValue());
      entry=iterator.next();
      assertEquals("String_Node_Str",entry.getValue());
    }
 else     if (entry.getKey() == 2) {
      assertEquals("String_Node_Str",entry.getValue());
      entry=iterator.next();
      assertEquals("String_Node_Str",entry.getValue());
    }
    assertEquals(2,mapProxy.size());
  }
);
}

Fixed version (ground truth):
@Test public void testPutAll() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    final Set<Map.Entry<Integer,String>> entries=mapProxy.entrySet();
    assertEquals(0,entries.size());
    assertEquals(true,entries.isEmpty());
    assertEquals(true,entries.isEmpty());
    Map<Integer,String> data=new HashMap<>();
    data.put(1,"String_Node_Str");
    data.put(2,"String_Node_Str");
    mapProxy.putAll(data);
    final Set<Map.Entry<Integer,String>> e=mapProxy.entrySet();
    final Iterator<Map.Entry<Integer,String>> iterator=e.iterator();
    Map.Entry<Integer,String> entry=iterator.next();
    if (entry.getKey() == 1) {
      assertEquals("String_Node_Str",entry.getValue());
      entry=iterator.next();
      assertEquals("String_Node_Str",entry.getValue());
    }
 else     if (entry.getKey() == 2) {
      assertEquals("String_Node_Str",entry.getValue());
      entry=iterator.next();
      assertEquals("String_Node_Str",entry.getValue());
    }
    assertEquals(2,mapProxy.size());
  }
);
}
Program: 55454
Project: 55454
Buggy source:
/** 
 * containsKey(null) throws NPE
 */
@Ignore("String_Node_Str") @Test(timeout=50000,expected=NullPointerException.class) public void testContainsKey_NullPointerException() throws IOException {
  try (ChronicleMap c=newIntString()){
    writeMessage="String_Node_Str";
    yamlLoggger(() -> c.containsKey(null));
  }
 }

Fixed version (ground truth):
/** 
 * containsKey(null) throws NPE
 */
@Test(timeout=50000,expected=NullPointerException.class) public void testContainsKey_NullPointerException() throws IOException {
  try (ChronicleMap c=newIntString()){
    writeMessage="String_Node_Str";
    yamlLoggger(() -> c.containsKey(null));
  }
 }
Program: 55455
Project: 55455
Buggy source:
/** 
 * get(null) throws NPE
 */
@Ignore("String_Node_Str") @Test(timeout=50000,expected=NullPointerException.class) public void testGet_NullPointerException() throws IOException {
  try (ChronicleMap c=newIntString()){
    writeMessage="String_Node_Str";
    yamlLoggger(() -> c.get(null));
  }
 }

Fixed version (ground truth):
/** 
 * get(null) throws NPE
 */
@Test(timeout=50000,expected=NullPointerException.class) public void testGet_NullPointerException() throws IOException {
  try (ChronicleMap c=newIntString()){
    writeMessage="String_Node_Str";
    yamlLoggger(() -> c.get(null));
  }
 }
Program: 55456
Project: 55456
Buggy source:
@Test(timeout=500000) public void testPutAll() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    final Set<Map.Entry<Integer,String>> entries=mapProxy.entrySet();
    assertEquals(0,entries.size());
    assertEquals(true,entries.isEmpty());
    Map<Integer,String> data=new HashMap<>();
    data.put(1,"String_Node_Str");
    data.put(2,"String_Node_Str");
    assertEquals(true,entries.isEmpty());
    mapProxy.putAll(data);
    assertEquals(2,mapProxy.size());
  }
);
}

Fixed version (ground truth):
@Test(timeout=500000) public void testPutAll() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    final Set<Map.Entry<Integer,String>> entries=mapProxy.entrySet();
    assertEquals(0,entries.size());
    assertEquals(true,entries.isEmpty());
    Map<Integer,String> data=new HashMap<>();
    data.put(1,"String_Node_Str");
    data.put(2,"String_Node_Str");
    assertEquals(true,entries.isEmpty());
    mapProxy.putAll(data);
    final Set<Map.Entry<Integer,String>> e=mapProxy.entrySet();
{
      final Map.Entry<Integer,String> entry=e.iterator().next();
      if (entry.getKey() == 1)       assertEquals(e.toString(),"String_Node_Str",entry.getValue());
 else       if (entry.getKey() == 2)       assertEquals(e.toString(),"String_Node_Str",entry.getValue());
    }
{
      final Map.Entry<Integer,String> entry=e.iterator().next();
      if (entry.getKey() == 1)       assertEquals(e.toString(),"String_Node_Str",entry.getValue());
 else       if (entry.getKey() == 2)       assertEquals(e.toString(),"String_Node_Str",entry.getValue());
    }
    assertEquals(2,mapProxy.size());
  }
);
}
Program: 55457
Project: 55457
Buggy source:
public V remove(Object key){
  if (key == null)   throw keyNotNullNPE();
  final EventId eventId=removeReturnsNull ? remove : getAndRemove;
  return this.proxyReturnTypedObject(eventId,null,vClass,key);
}

Fixed version (ground truth):
public V remove(Object key){
  if (key == null)   throw keyNotNullNPE();
  if (removeReturnsNull) {
    sendEventAsync(remove,toParameters(remove,key));
    return null;
  }
 else {
    return proxyReturnTypedObject(getAndRemove,null,vClass,key);
  }
}
Program: 55458
Project: 55458
Buggy source:
/** 
 * remove removes the correct key-value pair from the map
 */
@Test(timeout=50000) public void testRemove() throws IOException {
  try (ChronicleMap map=map5()){
    yamlLoggger(() -> map.remove(five));
    assertEquals(4,map.size());
    assertFalse(map.containsKey(five));
  }
 }

Fixed version (ground truth):
/** 
 * remove removes the correct key-value pair from the map
 */
@Ignore @Test(timeout=50000) public void testRemove() throws IOException {
  try (ChronicleMap map=map5()){
    yamlLoggger(() -> map.remove(five));
    assertEquals(4,map.size());
    assertFalse(map.containsKey(five));
  }
 }
Program: 55459
Project: 55459
Buggy source:
public FilePerKeyMap getFilePerKeyMap(String name);

Fixed version (ground truth):
FilePerKeyMap getFilePerKeyMap(String name);
Program: 55460
Project: 55460
Buggy source:
public AcceptorEventHandler start(int port) throws IOException {
  eg.start();
  AcceptorEventHandler eah=new AcceptorEventHandler(port,() -> {
    final Map<Long,CharSequence> cidToCsp=new HashMap<>();
    try {
      mapWireConnectionHub=new MapWireConnectionHub(localIdentifier,8085);
      return new EngineWireHandler(cidToCsp,chronicleEngine);
    }
 catch (    IOException e) {
      LOG.error("String_Node_Str",e);
    }
    return null;
  }
);
  eg.addHandler(eah);
  this.eah=eah;
  return eah;
}

Fixed version (ground truth):
public AcceptorEventHandler start(int port) throws IOException {
  eg.start();
  AcceptorEventHandler eah=new AcceptorEventHandler(port,() -> {
    final Map<Long,String> cidToCsp=new HashMap<>();
    try {
      mapWireConnectionHub=new MapWireConnectionHub(localIdentifier,8085);
      return new EngineWireHandler(cidToCsp,chronicleEngine);
    }
 catch (    IOException e) {
      LOG.error("String_Node_Str",e);
    }
    return null;
  }
);
  eg.addHandler(eah);
  this.eah=eah;
  return eah;
}
Program: 55461
Project: 55461
Buggy source:
public EngineWireHandler(@NotNull final Map<Long,CharSequence> cidToCsp,@NotNull final ChronicleEngine chronicleEngine) throws IOException {
  this.mapWireHandler=new MapWireHandlerProcessor<>(cidToCsp);
  this.fileMapWireHandler=new MapWireHandlerProcessor<>(cidToCsp);
  this.keySetHandler=new CollectionWireHandlerProcessor<>();
  this.queueWireHandler=null;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
  this.entrySetHandler=new CollectionWireHandlerProcessor<>();
  this.valuesHander=new CollectionWireHandlerProcessor<>();
}

Fixed version (ground truth):
public EngineWireHandler(@NotNull final Map<Long,String> cidToCsp,@NotNull final ChronicleEngine chronicleEngine) throws IOException {
  this.mapWireHandler=new MapWireHandlerProcessor<>(cidToCsp);
  this.fileMapWireHandler=new MapWireHandlerProcessor<>(cidToCsp);
  this.keySetHandler=new CollectionWireHandlerProcessor<>();
  this.queueWireHandler=null;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
  this.entrySetHandler=new CollectionWireHandlerProcessor<>();
  this.valuesHander=new CollectionWireHandlerProcessor<>();
}
Program: 55462
Project: 55462
Buggy source:
@Override public FilePerKeyMap getFilePerKeyMap(String name){
  return fpMaps.computeIfAbsent(name,k -> new FilePerKeyMap(k));
}

Fixed version (ground truth):
@Override public FilePerKeyMap getFilePerKeyMap(String name){
  return fpMaps.computeIfAbsent(name,k -> {
    try {
      return new FilePerKeyMap(k);
    }
 catch (    IOException e) {
      Jvm.rethrow(e);
      return null;
    }
  }
);
}
Program: 55463
Project: 55463
Buggy source:
public static void main(String[] args){
  ChronicleEngine chronicleEngine=new ChronicleEngine();
  try {
    int port=55555;
    final ServerEndpoint serverEndpoint=new ServerEndpoint(port,(byte)1,chronicleEngine);
    System.out.println("String_Node_Str" + serverEndpoint.getPort());
    while (true) {
      Thread.sleep(1000 * 10);
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  ChronicleEngine chronicleEngine=new ChronicleEngine();
  try {
    int port=8088;
    final ServerEndpoint serverEndpoint=new ServerEndpoint(port,(byte)1,chronicleEngine);
    System.out.println("String_Node_Str" + serverEndpoint.getPort());
    while (true) {
      Thread.sleep(1000 * 10);
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
}
Program: 55464
Project: 55464
Buggy source:
public EngineWireHandler(@NotNull final MapWireHandler mapWireHandler,@NotNull final WireHandler queueWireHandler,@NotNull final Map<Long,CharSequence> cidToCsp,@NotNull final ChronicleEngine chronicleEngine,@NotNull final SetWireHandler setWireHandler){
  this.mapWireHandler=mapWireHandler;
  this.setWireHandler=setWireHandler;
  this.queueWireHandler=queueWireHandler;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
}

Fixed version (ground truth):
public EngineWireHandler(@NotNull final MapWireHandler<byte[],byte[]> mapWireHandler,@NotNull final WireHandler queueWireHandler,@NotNull final Map<Long,CharSequence> cidToCsp,@NotNull final ChronicleEngine chronicleEngine,@NotNull final SetWireHandler setWireHandler){
  this.mapWireHandler=mapWireHandler;
  this.setWireHandler=setWireHandler;
  this.queueWireHandler=queueWireHandler;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
}
Program: 55465
Project: 55465
Buggy source:
public AcceptorEventHandler start(int port) throws IOException {
  eg.start();
  AcceptorEventHandler eah=new AcceptorEventHandler(port,() -> {
    final Map<Long,CharSequence> cidToCsp=new HashMap<>();
    queueWireHandler=new QueueWireHandler();
    MapWireHandlerProcessor wireHandler=null;
    try {
      mapWireConnectionHub=new MapWireConnectionHub(localIdentifier,8085);
      mapWireHandler=wireHandler=new MapWireHandlerProcessor(cidToCsp);
    }
 catch (    IOException e) {
      LOG.error("String_Node_Str",e);
    }
    final EngineWireHandler engineWireHandler=new EngineWireHandler(mapWireHandler,queueWireHandler,cidToCsp,chronicleEngine,new SetWireHandlerProcessor<byte[]>());
    if (wireHandler != null)     wireHandler.accept(engineWireHandler);
    return engineWireHandler;
  }
);
  eg.addHandler(eah);
  this.eah=eah;
  return eah;
}

Fixed version (ground truth):
public AcceptorEventHandler start(int port) throws IOException {
  eg.start();
  AcceptorEventHandler eah=new AcceptorEventHandler(port,() -> {
    final Map<Long,CharSequence> cidToCsp=new HashMap<>();
    queueWireHandler=new QueueWireHandler();
    try {
      mapWireConnectionHub=new MapWireConnectionHub(localIdentifier,8085);
      mapWireHandler=new MapWireHandlerProcessor<>(cidToCsp);
    }
 catch (    IOException e) {
      LOG.error("String_Node_Str",e);
    }
    return new EngineWireHandler(mapWireHandler,queueWireHandler,cidToCsp,chronicleEngine,new SetWireHandlerProcessor<>(),new SetWireHandlerProcessor<>());
  }
);
  eg.addHandler(eah);
  this.eah=eah;
  return eah;
}
Program: 55466
Project: 55466
Buggy source:
@Override public byte[] getKey(){
  return key1;
}

Fixed version (ground truth):
@Override public byte[] getKey(){
  return key;
}
Program: 55467
Project: 55467
Buggy source:
@Override protected void process(Wire in,Wire out) throws StreamCorruptedException {
  try {
    final StringBuilder cspText=peekType(in);
    final String serviceName=serviceName(cspText);
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      mapWireHandler.process(in,out,map,cspText,valueToWire,wireToKey,wireToValue);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      setWireHandler.process(in,out,map.entrySet(),cspText,entryToWire,wireToEntry);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      setWireHandler.process(in,out,map.keySet(),cspText,keyToWire,wireToKey);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      queueWireHandler.process(in,out);
      return;
    }
  }
 catch (  IOException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override protected void process(Wire in,Wire out) throws StreamCorruptedException {
  try {
    final StringBuilder cspText=peekType(in);
    final String serviceName=serviceName(cspText);
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      mapWireHandler.process(in,out,map,cspText,valueToWire,wireToKey,wireToValue);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      entrySetHandler.process(in,out,map.entrySet(),cspText,entryToWire,wireToEntry);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      final ChronicleMap<byte[],byte[]> map=chronicleEngine.getMap(serviceName,byte[].class,byte[].class);
      keSetHandler.process(in,out,map.keySet(),cspText,keyToWire,wireToKey);
      return;
    }
    if (endsWith(cspText,"String_Node_Str")) {
      queueWireHandler.process(in,out);
      return;
    }
  }
 catch (  IOException e) {
    LOG.error("String_Node_Str",e);
  }
}
Program: 55468
Project: 55468
Buggy source:
public EngineWireHandler(@NotNull final MapWireHandler<byte[],byte[]> mapWireHandler,@NotNull final WireHandler queueWireHandler,@NotNull final Map<Long,CharSequence> cidToCsp,@NotNull final ChronicleEngine chronicleEngine,@NotNull final SetWireHandler setWireHandler){
  this.mapWireHandler=mapWireHandler;
  this.setWireHandler=setWireHandler;
  this.queueWireHandler=queueWireHandler;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
}

Fixed version (ground truth):
public EngineWireHandler(@NotNull final MapWireHandler<byte[],byte[]> mapWireHandler,@NotNull final WireHandler queueWireHandler,@NotNull final Map<Long,CharSequence> cidToCsp,@NotNull final ChronicleEngine chronicleEngine,@NotNull final SetWireHandler<Set<byte[]>,byte[]> keSetHandler,@NotNull final SetWireHandler<Set<Map.Entry<byte[],byte[]>>,Map.Entry<byte[],byte[]>> entrySetHandler){
  this.mapWireHandler=mapWireHandler;
  this.keSetHandler=keSetHandler;
  this.queueWireHandler=queueWireHandler;
  this.cidToCsp=cidToCsp;
  this.chronicleEngine=chronicleEngine;
  this.entrySetHandler=entrySetHandler;
}
Program: 55469
Project: 55469
Buggy source:
public RemoteTcpClientChronicleContext(String hostname,int port) throws IOException {
  this.remoteClientServiceLocator=new RemoteClientServiceLocator(hostname,port,(byte)2);
}

Fixed version (ground truth):
public RemoteTcpClientChronicleContext(String hostname,int port,byte identifier) throws IOException {
  this.remoteClientServiceLocator=new RemoteClientServiceLocator(hostname,port,identifier);
}
Program: 55470
Project: 55470
Buggy source:
@Test(timeout=50000) public void testMarshable() throws Exception {
  try (final ServerEndpoint serverEndpoint=new ServerEndpoint((byte)1)){
    int serverPort=serverEndpoint.getPort();
    try (final RemoteTcpClientChronicleContext context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort)){
      try (ChronicleMap<MyMarshallable,Long> numbers=context.getMap("String_Node_Str",MyMarshallable.class,Long.class)){
        MyMarshallable key1=new MyMarshallable("String_Node_Str");
        MyMarshallable key2=new MyMarshallable("String_Node_Str");
        numbers.put(key1,1L);
        numbers.put(key2,2L);
      }
       try (ChronicleMap<MyMarshallable,Long> numbers=context.getMap("String_Node_Str",MyMarshallable.class,Long.class)){
        MyMarshallable key1=new MyMarshallable("String_Node_Str");
        MyMarshallable key2=new MyMarshallable("String_Node_Str");
        assertEquals(2,numbers.size());
        assertEquals(Long.valueOf(1),numbers.get(key1));
        assertEquals(Long.valueOf(2),numbers.get(key2));
      }
     }
   }
 }

Fixed version (ground truth):
@Test(timeout=50000) public void testMarshable() throws Exception {
  try (final ServerEndpoint serverEndpoint=new ServerEndpoint((byte)1)){
    int serverPort=serverEndpoint.getPort();
    try (final RemoteTcpClientChronicleContext context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort,(byte)2)){
      try (ChronicleMap<MyMarshallable,Long> numbers=context.getMap("String_Node_Str",MyMarshallable.class,Long.class)){
        MyMarshallable key1=new MyMarshallable("String_Node_Str");
        MyMarshallable key2=new MyMarshallable("String_Node_Str");
        numbers.put(key1,1L);
        numbers.put(key2,2L);
      }
       try (ChronicleMap<MyMarshallable,Long> numbers=context.getMap("String_Node_Str",MyMarshallable.class,Long.class)){
        MyMarshallable key1=new MyMarshallable("String_Node_Str");
        MyMarshallable key2=new MyMarshallable("String_Node_Str");
        assertEquals(2,numbers.size());
        assertEquals(Long.valueOf(1),numbers.get(key1));
        assertEquals(Long.valueOf(2),numbers.get(key2));
      }
     }
   }
 }
Program: 55471
Project: 55471
Buggy source:
public RemoteMapSupplier(Class<K> kClass,Class<V> vClass) throws IOException {
  serverEndpoint=new ServerEndpoint((byte)1);
  int serverPort=serverEndpoint.getPort();
  context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort);
  map=context.getMap("String_Node_Str",kClass,vClass);
}

Fixed version (ground truth):
public RemoteMapSupplier(Class<K> kClass,Class<V> vClass) throws IOException {
  serverEndpoint=new ServerEndpoint((byte)1);
  int serverPort=serverEndpoint.getPort();
  context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort,(byte)2);
  map=context.getMap("String_Node_Str",kClass,vClass);
}
Program: 55472
Project: 55472
Buggy source:
public RemoteQueueSupplier() throws IOException {
  serverEndpoint=new ServerEndpoint((byte)1);
  int serverPort=serverEndpoint.getPort();
  context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort);
  queue=context.getQueue("String_Node_Str");
}

Fixed version (ground truth):
public RemoteQueueSupplier() throws IOException {
  serverEndpoint=new ServerEndpoint((byte)1);
  int serverPort=serverEndpoint.getPort();
  context=new RemoteTcpClientChronicleContext("String_Node_Str",serverPort,(byte)2);
  queue=context.getQueue("String_Node_Str");
}
Program: 55473
Project: 55473
Buggy source:
@Test(timeout=50000) public void testPutAndGet() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    mapProxy.put(1,"String_Node_Str");
    assertEquals(1,mapProxy.size());
  }
);
}

Fixed version (ground truth):
@Test(timeout=50000) public void testPutAndGet() throws IOException, InterruptedException {
  supplyMap(Integer.class,String.class,mapProxy -> {
    mapProxy.put(1,"String_Node_Str");
    assertEquals("String_Node_Str",mapProxy.get(1));
    assertEquals(1,mapProxy.size());
  }
);
}
Program: 55474
Project: 55474
Buggy source:
private <I,KI,VI>I mapInstance(Class<KI> kClass,Class<VI> vClass,short channelID) throws IOException {
  return (I)new ClientWiredChronicleMapStatelessClientBuilder<KI,VI>(hub,kClass,vClass,channelID).create();
}

Fixed version (ground truth):
private <I,KI,VI>I mapInstance(Class<KI> kClass,Class<VI> vClass,short channelID) throws IOException {
  return (I)new ClientWiredChronicleMapStatelessBuilder<KI,VI>(hub,kClass,vClass,channelID).create();
}
Program: 55475
Project: 55475
Buggy source:
public RemoteClientServiceLocator(@NotNull String hostname,int port,byte identifier) throws IOException {
  final ClientWiredChronicleMapStatelessClientBuilder<String,ServiceDescriptor> builder=new ClientWiredChronicleMapStatelessClientBuilder<>(new InetSocketAddress(hostname,port),String.class,ServiceDescriptor.class,(short)1);
  builder.identifier(identifier);
  serviceLocator=builder.create();
  hub=builder.hub();
}

Fixed version (ground truth):
public RemoteClientServiceLocator(@NotNull String hostname,int port,byte identifier) throws IOException {
  final ClientWiredChronicleMapStatelessBuilder<String,ServiceDescriptor> builder=new ClientWiredChronicleMapStatelessBuilder<>(new InetSocketAddress(hostname,port),String.class,ServiceDescriptor.class,(short)1);
  builder.identifier(identifier);
  serviceLocator=builder.create();
  hub=builder.hub();
}
Program: 55476
Project: 55476
Buggy source:
private static String computeStatus(@Nullable TestResult input){
  String result=input.getResultStatus().name().toLowerCase();
  if (input.getResultStatus() == ResultStatus.PASS && input.getTotalFailureCount() > 0) {
    result="String_Node_Str";
  }
  return result;
}

Fixed version (ground truth):
private static String computeStatus(@Nullable TestResult input){
  String result=input.getResultStatus().name().toLowerCase();
  if (input.getResultStatus() == PASS && input.getTotalFailureCount() > 0) {
    result="String_Node_Str";
  }
  return result;
}
Program: 55477
Project: 55477
Buggy source:
private void generateCssFromLess(){
  try {
    LessCompiler compiler=new LessCompiler();
    String less=Resources.toString(getClass().getResource("String_Node_Str"),UTF_8);
    String css=compiler.compile(less);
    File cssFile=new File(staticOutput,"String_Node_Str");
    writeStringToFile(cssFile,css);
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
private void generateCssFromLess(){
  try {
    LessCompiler compiler=new LessCompiler();
    String less=Resources.toString(getClass().getResource("String_Node_Str"),UTF_8);
    String css=compiler.compile(less);
    File cssFile=new File(staticOutput,"String_Node_Str");
    writeStringToFile(cssFile,css);
  }
 catch (  Exception e) {
    throw new ForkException(e);
  }
}
Program: 55478
Project: 55478
Buggy source:
@SuppressWarnings("String_Node_Str") @Test public void populatesTestCaseEvents() throws Exception {
  Map<String,String> multiPropertiesMap=new HashMap(){
{
      put("String_Node_Str","String_Node_Str");
      put("String_Node_Str","String_Node_Str");
    }
  }
;
  TestSuiteLoader testSuiteLoader=new TestSuiteLoader(ANY_INSTRUMENTATION_APK_FILE,fakeDexFileExtractor,fakeTestClassMatcher);
  assertThat(testSuiteLoader.loadTestSuite(),containsInAnyOrder(sameTestEventAs("String_Node_Str","String_Node_Str",true),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",true),sameTestEventAs("String_Node_Str","String_Node_Str",false,asList("String_Node_Str","String_Node_Str")),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",singletonMap("String_Node_Str","String_Node_Str")),sameTestEventAs("String_Node_Str","String_Node_Str",multiPropertiesMap)));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Test public void populatesTestCaseEvents() throws Exception {
  Map<String,String> multiPropertiesMap=new HashMap();
  multiPropertiesMap.put("String_Node_Str","String_Node_Str");
  multiPropertiesMap.put("String_Node_Str","String_Node_Str");
  TestSuiteLoader testSuiteLoader=new TestSuiteLoader(ANY_INSTRUMENTATION_APK_FILE,fakeDexFileExtractor,fakeTestClassMatcher);
  assertThat(testSuiteLoader.loadTestSuite(),containsInAnyOrder(sameTestEventAs("String_Node_Str","String_Node_Str",true),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",true),sameTestEventAs("String_Node_Str","String_Node_Str",false,asList("String_Node_Str","String_Node_Str")),sameTestEventAs("String_Node_Str","String_Node_Str",false),sameTestEventAs("String_Node_Str","String_Node_Str",singletonMap("String_Node_Str","String_Node_Str")),sameTestEventAs("String_Node_Str","String_Node_Str",multiPropertiesMap)));
}
Program: 55479
Project: 55479
Buggy source:
public static DexFileExtractor dexFileExtractor(){
  return new DexFileExtractor(configuration().getOutput());
}

Fixed version (ground truth):
public static DexFileExtractor dexFileExtractor(){
  return new ClassesDexFileExtractor(configuration().getOutput());
}
Program: 55480
Project: 55480
Buggy source:
static TestClassMatcher testClassMatcher(){
  Configuration configuration=configuration();
  String testPackage=configuration.getTestPackage();
  log.info("String_Node_Str",testPackage);
  Pattern testPackagePattern=compilePatternFor(testPackage);
  return new TestClassMatcher(testPackagePattern,configuration.getTestClassPattern());
}

Fixed version (ground truth):
static TestClassMatcher testClassMatcher(){
  Configuration configuration=configuration();
  String testPackage=configuration.getTestPackage();
  log.info("String_Node_Str",testPackage);
  Pattern testPackagePattern=compilePatternFor(testPackage);
  return new PackageAndClassNameMatcher(testPackagePattern,configuration.getTestClassPattern());
}
Program: 55481
Project: 55481
Buggy source:
private Configuration aConfiguration(int totalRetry,int singleMethodRetry){
  return new Configuration(null,null,null,null,null,null,null,null,0,false,totalRetry,singleMethodRetry);
}

Fixed version (ground truth):
private Configuration aConfiguration(int totalRetry,int singleMethodRetry){
  return new Configuration(null,null,null,null,null,null,null,null,0,false,totalRetry,singleMethodRetry,true);
}
Program: 55482
Project: 55482
Buggy source:
public Builder withTestSize(String testSize){
  this.testSize=IRemoteAndroidTestRunner.TestSize.getTestSize(testSize);
  return this;
}

Fixed version (ground truth):
public Builder withTestSize(String testSize){
  this.testSize=(testSize == null ? null : IRemoteAndroidTestRunner.TestSize.getTestSize(testSize));
  return this;
}
Program: 55483
Project: 55483
Buggy source:
/** 
 * We need to make sure zero or one strategy has been passed. If zero default to pool per device. If more than one we throw an exception.
 */
private PoolingStrategy validatePoolingStrategy(PoolingStrategy poolingStrategy){
  if (poolingStrategy == null) {
    logger.warn("String_Node_Str");
    poolingStrategy=new PoolingStrategy();
    poolingStrategy.eachDevice=true;
  }
 else {
    long selectedStrategies=asList(poolingStrategy.eachDevice,poolingStrategy.splitTablets,poolingStrategy.computed,poolingStrategy.manual).stream().filter(p -> p == null).count();
    if (selectedStrategies > Defaults.STRATEGY_LIMIT) {
      throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
    }
  }
  return poolingStrategy;
}

Fixed version (ground truth):
/** 
 * We need to make sure zero or one strategy has been passed. If zero default to pool per device. If more than one we throw an exception.
 */
private PoolingStrategy validatePoolingStrategy(PoolingStrategy poolingStrategy){
  if (poolingStrategy == null) {
    logger.warn("String_Node_Str");
    poolingStrategy=new PoolingStrategy();
    poolingStrategy.eachDevice=true;
  }
 else {
    long selectedStrategies=asList(poolingStrategy.eachDevice,poolingStrategy.splitTablets,poolingStrategy.computed,poolingStrategy.manual).stream().filter(p -> p != null).count();
    if (selectedStrategies > Defaults.STRATEGY_LIMIT) {
      throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
    }
  }
  return poolingStrategy;
}
Program: 55484
Project: 55484
Buggy source:
public boolean run(){
  ExecutorService poolExecutor=null;
  try {
    Collection<Pool> pools=poolLoader.loadPools();
    int numberOfPools=pools.size();
    CountDownLatch poolCountDownLatch=new CountDownLatch(numberOfPools);
    poolExecutor=namedExecutor(numberOfPools,"String_Node_Str");
    List<TestCaseEvent> testCases=testClassLoader.loadTestClasses();
    summaryGeneratorHook.registerHook(pools,testCases);
    progressReporter.start();
    for (    Pool pool : pools) {
      PoolTestRunner poolTestRunner=poolTestRunnerFactory.createPoolTestRunner(pool,testCases,poolCountDownLatch,progressReporter);
      poolExecutor.execute(poolTestRunner);
    }
    poolCountDownLatch.await();
    progressReporter.stop();
    boolean overallSuccess=summaryGeneratorHook.defineOutcome();
    logger.info("String_Node_Str" + overallSuccess);
    return overallSuccess;
  }
 catch (  NoPoolLoaderConfiguredException|NoDevicesForPoolException e) {
    logger.error("String_Node_Str",e);
    return false;
  }
catch (  TestClassScanningException e) {
    logger.error("String_Node_Str",e);
    return false;
  }
catch (  Exception e) {
    logger.error("String_Node_Str",e);
    return false;
  }
 finally {
    if (poolExecutor != null) {
      poolExecutor.shutdown();
    }
  }
}

Fixed version (ground truth):
public boolean run(){
  ExecutorService poolExecutor=null;
  try {
    Collection<Pool> pools=poolLoader.loadPools();
    int numberOfPools=pools.size();
    CountDownLatch poolCountDownLatch=new CountDownLatch(numberOfPools);
    poolExecutor=namedExecutor(numberOfPools,"String_Node_Str");
    List<TestCaseEvent> testCases=testClassLoader.loadTestClasses();
    summaryGeneratorHook.registerHook(pools,testCases);
    progressReporter.start();
    for (    Pool pool : pools) {
      Runnable poolTestRunner=poolTestRunnerFactory.createPoolTestRunner(pool,testCases,poolCountDownLatch,progressReporter);
      poolExecutor.execute(poolTestRunner);
    }
    poolCountDownLatch.await();
    progressReporter.stop();
    boolean overallSuccess=summaryGeneratorHook.defineOutcome();
    logger.info("String_Node_Str" + overallSuccess);
    return overallSuccess;
  }
 catch (  NoPoolLoaderConfiguredException|NoDevicesForPoolException e) {
    logger.error("String_Node_Str",e);
    return false;
  }
catch (  TestClassScanningException e) {
    logger.error("String_Node_Str",e);
    return false;
  }
catch (  Exception e) {
    logger.error("String_Node_Str",e);
    return false;
  }
 finally {
    if (poolExecutor != null) {
      poolExecutor.shutdown();
    }
  }
}
Program: 55485
Project: 55485
Buggy source:
public PoolTestRunner createPoolTestRunner(Pool pool,List<TestCaseEvent> testCases,CountDownLatch poolCountDownLatch,ProgressReporter progressReporter){
  int totalTests=testCases.size();
  progressReporter.addPoolProgress(pool,new PoolProgressTrackerImpl(totalTests));
  return new PoolTestRunner(deviceTestRunnerFactory,pool,new LinkedList<>(testCases),poolCountDownLatch,progressReporter);
}

Fixed version (ground truth):
public Runnable createPoolTestRunner(Pool pool,List<TestCaseEvent> testCases,CountDownLatch poolCountDownLatch,ProgressReporter progressReporter){
  int totalTests=testCases.size();
  progressReporter.addPoolProgress(pool,new PoolProgressTrackerImpl(totalTests));
  return new PoolTestRunner(deviceTestRunnerFactory,pool,new LinkedList<>(testCases),poolCountDownLatch,progressReporter);
}
Program: 55486
Project: 55486
Buggy source:
private Set<Resource> findPathMatchingKeys(String keyPattern,List<String> matchingBuckets){
  Set<Resource> resources=new HashSet<>();
  if (this.pathMatcher.isPattern(keyPattern)) {
    for (    String bucketName : matchingBuckets) {
      findPathMatchingKeyInBucket(bucketName,resources,null,keyPattern);
    }
  }
 else {
    for (    String matchingBucket : matchingBuckets) {
      Resource resource=this.simpleStorageResourceLoader.getResource(SimpleStorageNameUtils.getLocationForBucketAndObject(matchingBucket,keyPattern));
      if (resource.exists()) {
        resources.add(resource);
      }
    }
  }
  return resources;
}

Fixed version (ground truth):
private Set<Resource> findPathMatchingKeys(String keyPattern,List<String> matchingBuckets){
  Set<Resource> resources=new HashSet<>();
  if (this.pathMatcher.isPattern(keyPattern)) {
    for (    String bucketName : matchingBuckets) {
      findPathMatchingKeyInBucket(bucketName,resources,getValidPrefix(keyPattern),keyPattern);
    }
  }
 else {
    for (    String matchingBucket : matchingBuckets) {
      Resource resource=this.simpleStorageResourceLoader.getResource(SimpleStorageNameUtils.getLocationForBucketAndObject(matchingBucket,keyPattern));
      if (resource.exists()) {
        resources.add(resource);
      }
    }
  }
  return resources;
}
Program: 55487
Project: 55487
Buggy source:
@Override public String resolveDestination(String name) throws DestinationResolutionException {
  String queueName=name;
  if (this.resourceIdResolver != null) {
    queueName=this.resourceIdResolver.resolveToPhysicalResourceId(name);
  }
  if (isValidQueueUrl(queueName)) {
    return queueName;
  }
  if (this.autoCreate) {
    CreateQueueResult createQueueResult=this.amazonSqs.createQueue(new CreateQueueRequest(name));
    return createQueueResult.getQueueUrl();
  }
 else {
    try {
      GetQueueUrlResult getQueueUrlResult=this.amazonSqs.getQueueUrl(new GetQueueUrlRequest(name));
      return getQueueUrlResult.getQueueUrl();
    }
 catch (    QueueDoesNotExistException e) {
      throw new DestinationResolutionException(e.getMessage(),e);
    }
  }
}

Fixed version (ground truth):
@Override public String resolveDestination(String name) throws DestinationResolutionException {
  String queueName=name;
  if (this.resourceIdResolver != null) {
    queueName=this.resourceIdResolver.resolveToPhysicalResourceId(name);
  }
  if (isValidQueueUrl(queueName)) {
    return queueName;
  }
  if (this.autoCreate) {
    CreateQueueResult createQueueResult=this.amazonSqs.createQueue(new CreateQueueRequest(queueName));
    return createQueueResult.getQueueUrl();
  }
 else {
    try {
      GetQueueUrlResult getQueueUrlResult=this.amazonSqs.getQueueUrl(new GetQueueUrlRequest(queueName));
      return getQueueUrlResult.getQueueUrl();
    }
 catch (    QueueDoesNotExistException e) {
      throw new DestinationResolutionException(e.getMessage(),e);
    }
  }
}
Program: 55489
Project: 55489
Buggy source:
@Test public void parseInternal_customTaskExecutor_shouldCreateContainerAndClientWithCustomTaskExecutor() throws Exception {
  SimpleBeanDefinitionRegistry registry=new SimpleBeanDefinitionRegistry();
  XmlBeanDefinitionReader reader=new XmlBeanDefinitionReader(registry);
  reader.loadBeanDefinitions(new ClassPathResource(getClass().getSimpleName() + "String_Node_Str",getClass()));
  BeanDefinition executor=registry.getBeanDefinition("String_Node_Str");
  assertNotNull(executor);
  BeanDefinition abstractContainerDefinition=registry.getBeanDefinition(SimpleMessageListenerContainer.class.getName() + "String_Node_Str");
  assertNotNull(abstractContainerDefinition);
  assertEquals(4,abstractContainerDefinition.getPropertyValues().size());
  assertEquals("String_Node_Str",((RuntimeBeanReference)abstractContainerDefinition.getPropertyValues().getPropertyValue("String_Node_Str").getValue()).getBeanName());
}

Fixed version (ground truth):
@Test public void parseInternal_customTaskExecutor_shouldCreateContainerAndClientWithCustomTaskExecutor() throws Exception {
  DefaultListableBeanFactory beanFactory=new DefaultListableBeanFactory();
  XmlBeanDefinitionReader reader=new XmlBeanDefinitionReader(beanFactory);
  reader.loadBeanDefinitions(new ClassPathResource(getClass().getSimpleName() + "String_Node_Str",getClass()));
  BeanDefinition executor=beanFactory.getBeanDefinition("String_Node_Str");
  assertNotNull(executor);
  BeanDefinition abstractContainerDefinition=beanFactory.getBeanDefinition(SimpleMessageListenerContainer.class.getName() + "String_Node_Str");
  assertNotNull(abstractContainerDefinition);
  assertEquals(4,abstractContainerDefinition.getPropertyValues().size());
  assertEquals("String_Node_Str",((RuntimeBeanReference)abstractContainerDefinition.getPropertyValues().getPropertyValue("String_Node_Str").getValue()).getBeanName());
  AmazonSQSBufferedAsyncClient bufferedAsyncClient=beanFactory.getBean(AmazonSQSBufferedAsyncClient.class);
  assertNotNull(bufferedAsyncClient);
}
Program: 55490
Project: 55490
Buggy source:
/** 
 * Set the PathMatcher implementation to use for this resource pattern resolver. Default is AntPathMatcher.
 * @see org.springframework.util.AntPathMatcher
 */
public void setPathMatcher(PathMatcher pathMatcher){
  Assert.notNull(pathMatcher,"String_Node_Str");
  this.pathMatcher=pathMatcher;
}

Fixed version (ground truth):
/** 
 * Set the PathMatcher implementation to use for this resource pattern resolver. Default is AntPathMatcher.
 * @param pathMatcher The pathMatches implementation used, must not be null
 * @see org.springframework.util.AntPathMatcher
 */
public void setPathMatcher(PathMatcher pathMatcher){
  Assert.notNull(pathMatcher,"String_Node_Str");
  this.pathMatcher=pathMatcher;
}
Program: 55491
Project: 55491
Buggy source:
/** 
 * Destroys the instance if the instance itself implement   {@link DisposableBean}
 * @param instance the instance which has been created by  {@link #createInstance()}
 * @throws Exception
 */
@Override protected final void destroyInstance(Object instance) throws Exception {
  if (instance instanceof DisposableBean) {
    ((DisposableBean)instance).destroy();
  }
}

Fixed version (ground truth):
/** 
 * Destroys the instance if the instance itself implement   {@link DisposableBean}
 * @param instance the instance which has been created by  {@link #createInstance()}
 * @throws Exception if the underlying disposable bean throws one
 */
@Override protected final void destroyInstance(Object instance) throws Exception {
  if (instance instanceof DisposableBean) {
    ((DisposableBean)instance).destroy();
  }
}
Program: 55492
Project: 55492
Buggy source:
/** 
 * Create a default TaskExecutor. Called if no explicit TaskExecutor has been specified. <p>The default implementation builds a   {@link org.springframework.core.task.SimpleAsyncTaskExecutor}with the specified bean name (or the class name, if no bean name specified) as thread name prefix.
 * @see org.springframework.core.task.SimpleAsyncTaskExecutor#SimpleAsyncTaskExecutor(String)
 */
protected TaskExecutor createDefaultTaskExecutor(){
  String beanName=getBeanName();
  String threadNamePrefix=(beanName != null ? beanName + "String_Node_Str" : DEFAULT_THREAD_NAME_PREFIX);
  return new SimpleAsyncTaskExecutor(threadNamePrefix);
}

Fixed version (ground truth):
/** 
 * Create a default TaskExecutor. Called if no explicit TaskExecutor has been specified. <p>The default implementation builds a   {@link org.springframework.core.task.SimpleAsyncTaskExecutor}with the specified bean name (or the class name, if no bean name specified) as thread name prefix.
 * @return a {@link org.springframework.core.task.SimpleAsyncTaskExecutor} configured with the thread name prefix
 * @see org.springframework.core.task.SimpleAsyncTaskExecutor#SimpleAsyncTaskExecutor(String)
 */
protected TaskExecutor createDefaultTaskExecutor(){
  String beanName=getBeanName();
  String threadNamePrefix=(beanName != null ? beanName + "String_Node_Str" : DEFAULT_THREAD_NAME_PREFIX);
  return new SimpleAsyncTaskExecutor(threadNamePrefix);
}
Program: 55493
Project: 55493
Buggy source:
/** 
 * Resolves the provided logical resource id to the corresponding physical resource id. If the implementation is unable to resolve the logical resource id to a physical one based on the specific resource information available, the logical resource id is returned as the physical one. <p/> This resolving mechanism provides no guarantees on existence of the resource denoted by the resolved physical resource id.
 * @param logicalResourceId the logical resource id to be resolved
 * @return the physical resource id
 */
String resolveToPhysicalResourceId(String logicalResourceId);

Fixed version (ground truth):
/** 
 * Resolves the provided logical resource id to the corresponding physical resource id. If the implementation is unable to resolve the logical resource id to a physical one based on the specific resource information available, the logical resource id is returned as the physical one. <p> This resolving mechanism provides no guarantees on existence of the resource denoted by the resolved physical resource id. </p>
 * @param logicalResourceId the logical resource id to be resolved
 * @return the physical resource id
 */
String resolveToPhysicalResourceId(String logicalResourceId);