nus-yam/ex-repair huggingface dataset:
Program: 45996
Project: 45996
Buggy source:
private void populateResultFromRemote(int currentSize,List<Object> resultingKeyValuePairs,Map<Object,Long> reservations){
  for (int i=currentSize; i < resultingKeyValuePairs.size(); i+=2) {
    Data keyData=(Data)resultingKeyValuePairs.get(i);
    Data valueData=(Data)resultingKeyValuePairs.get(i + 1);
    Object ncKey=serializeKeys ? keyData : toObject(keyData);
    if (!serializeKeys) {
      resultingKeyValuePairs.set(i,ncKey);
    }
    Long reservationId=reservations.get(ncKey);
    if (reservationId != null) {
      Object cachedValue=tryPublishReserved(ncKey,valueData,reservationId);
      resultingKeyValuePairs.set(i + 1,cachedValue);
      reservations.remove(ncKey);
    }
  }
}

Fixed version (ground truth):
private void populateResultFromRemote(int currentSize,List<Object> resultingKeyValuePairs,Map<Object,Long> reservations,Map<Data,Object> reverseKeyMap){
  for (int i=currentSize; i < resultingKeyValuePairs.size(); i+=2) {
    Data keyData=(Data)resultingKeyValuePairs.get(i);
    Data valueData=(Data)resultingKeyValuePairs.get(i + 1);
    Object ncKey=serializeKeys ? keyData : reverseKeyMap.get(keyData);
    if (!serializeKeys) {
      resultingKeyValuePairs.set(i,ncKey);
    }
    Long reservationId=reservations.get(ncKey);
    if (reservationId != null) {
      Object cachedValue=tryPublishReserved(ncKey,valueData,reservationId);
      resultingKeyValuePairs.set(i + 1,cachedValue);
      reservations.remove(ncKey);
    }
  }
}
Program: 45997
Project: 45997
Buggy source:
@Override protected void getAllInternal(Set<K> keys,Map<Integer,List<Data>> partitionToKeyData,List<Object> resultingKeyValuePairs){
  Map<Object,Data> keyMap=createHashMap(keys.size());
  if (serializeKeys) {
    fillPartitionToKeyData(keys,partitionToKeyData,keyMap);
  }
  Collection<?> ncKeys=serializeKeys ? keyMap.values() : new ArrayList<K>(keys);
  populateResultFromNearCache(ncKeys,resultingKeyValuePairs);
  if (ncKeys.isEmpty()) {
    return;
  }
  if (!serializeKeys) {
    fillPartitionToKeyData(keys,partitionToKeyData,keyMap);
  }
  Map<Object,Long> reservations=getNearCacheReservations(ncKeys,keyMap);
  try {
    int currentSize=resultingKeyValuePairs.size();
    super.getAllInternal(keys,partitionToKeyData,resultingKeyValuePairs);
    populateResultFromRemote(currentSize,resultingKeyValuePairs,reservations);
  }
  finally {
    releaseRemainingReservedKeys(reservations);
  }
}

Fixed version (ground truth):
@Override protected void getAllInternal(Set<K> keys,Map<Integer,List<Data>> partitionToKeyData,List<Object> resultingKeyValuePairs){
  Map<Object,Data> keyMap=createHashMap(keys.size());
  if (serializeKeys) {
    fillPartitionToKeyData(keys,partitionToKeyData,keyMap,null);
  }
  Collection<?> ncKeys=serializeKeys ? keyMap.values() : new LinkedList<K>(keys);
  populateResultFromNearCache(ncKeys,resultingKeyValuePairs);
  if (ncKeys.isEmpty()) {
    return;
  }
  Map<Data,Object> reverseKeyMap=null;
  if (!serializeKeys) {
    reverseKeyMap=createHashMap(ncKeys.size());
    fillPartitionToKeyData(keys,partitionToKeyData,keyMap,reverseKeyMap);
  }
  Map<Object,Long> reservations=getNearCacheReservations(ncKeys,keyMap);
  try {
    int currentSize=resultingKeyValuePairs.size();
    super.getAllInternal(keys,partitionToKeyData,resultingKeyValuePairs);
    populateResultFromRemote(currentSize,resultingKeyValuePairs,reservations,reverseKeyMap);
  }
  finally {
    releaseRemainingReservedKeys(reservations);
  }
}
Program: 46000
Project: 46000
Buggy source:
@Parameters(name="String_Node_Str") public static Collection<Object[]> parameters(){
  return asList(new Object[][]{{GET,newInt(1,1,1),newInt(0,0,0),newInt(1,0,0),newInt(0,1,1),BINARY,null,null},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,1,0),newInt(0,1,1),BINARY,BINARY,true},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,1,0),newInt(0,1,1),BINARY,BINARY,false},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,0,0),newInt(0,1,0),BINARY,OBJECT,true},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,0,0),newInt(0,1,0),BINARY,OBJECT,false},{GET,newInt(1,1,1),newInt(1,1,1),newInt(1,1,1),newInt(1,1,1),OBJECT,null,null},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,2,0),newInt(1,1,1),OBJECT,BINARY,true},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,2,0),newInt(1,1,1),OBJECT,BINARY,false},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,1,0),newInt(1,1,0),OBJECT,OBJECT,true},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,1,0),newInt(1,1,0),OBJECT,OBJECT,false}});
}

Fixed version (ground truth):
@Parameters(name="String_Node_Str") public static Collection<Object[]> parameters(){
  return asList(new Object[][]{{GET,newInt(1,1,1),newInt(0,0,0),newInt(1,0,0),newInt(0,1,1),BINARY,null,null},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,1,0),newInt(0,1,1),BINARY,BINARY,true},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,1,0),newInt(0,1,1),BINARY,BINARY,false},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,0,0),newInt(0,1,0),BINARY,OBJECT,true},{GET,newInt(1,1,0),newInt(0,0,0),newInt(1,0,0),newInt(0,1,0),BINARY,OBJECT,false},{GET,newInt(1,1,1),newInt(1,1,1),newInt(1,0,0),newInt(1,0,0),OBJECT,null,null},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,0,0),newInt(1,0,0),OBJECT,BINARY,true},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,0,0),newInt(1,0,0),OBJECT,BINARY,false},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,0,0),newInt(1,0,0),OBJECT,OBJECT,true},{GET,newInt(1,1,0),newInt(1,1,0),newInt(1,0,0),newInt(1,0,0),OBJECT,OBJECT,false}});
}
Program: 46001
Project: 46001
Buggy source:
@Override public Map<K,V> getAll(Set<K> keys){
  if (CollectionUtil.isEmpty(keys)) {
    return emptyMap();
  }
  int keysSize=keys.size();
  List<Data> dataKeys=new ArrayList<Data>(keysSize);
  List<Object> resultingKeyValuePairs=new ArrayList<Object>(keysSize * 2);
  getAllInternal(keys,dataKeys,resultingKeyValuePairs);
  Map<K,V> result=createHashMap(keysSize);
  for (int i=0; i < resultingKeyValuePairs.size(); ) {
    K key=toObject(resultingKeyValuePairs.get(i++));
    V value=toObject(resultingKeyValuePairs.get(i++));
    result.put(key,value);
  }
  return result;
}

Fixed version (ground truth):
@Override public Map<K,V> getAll(Set<K> keys){
  if (CollectionUtil.isEmpty(keys)) {
    return emptyMap();
  }
  int keysSize=keys.size();
  List<Data> dataKeys=new LinkedList<Data>();
  List<Object> resultingKeyValuePairs=new ArrayList<Object>(keysSize * 2);
  getAllInternal(keys,dataKeys,resultingKeyValuePairs);
  Map<K,V> result=createHashMap(keysSize);
  for (int i=0; i < resultingKeyValuePairs.size(); ) {
    K key=toObject(resultingKeyValuePairs.get(i++));
    V value=toObject(resultingKeyValuePairs.get(i++));
    result.put(key,value);
  }
  return result;
}
Program: 46002
Project: 46002
Buggy source:
private void populateResultFromRemote(int currentSize,List<Object> resultingKeyValuePairs,Map<Object,Long> reservations){
  for (int i=currentSize; i < resultingKeyValuePairs.size(); i+=2) {
    Data keyData=(Data)resultingKeyValuePairs.get(i);
    Data valueData=(Data)resultingKeyValuePairs.get(i + 1);
    Object ncKey=serializeKeys ? keyData : toObject(keyData);
    if (!serializeKeys) {
      resultingKeyValuePairs.set(i,ncKey);
    }
    Long reservationId=reservations.get(ncKey);
    if (reservationId != null) {
      Object cachedValue=tryPublishReserved(ncKey,valueData,reservationId);
      resultingKeyValuePairs.set(i + 1,cachedValue);
      reservations.remove(ncKey);
    }
  }
}

Fixed version (ground truth):
private void populateResultFromRemote(int currentSize,List<Object> resultingKeyValuePairs,Map<Object,Long> reservations,Map<Data,Object> reverseKeyMap){
  for (int i=currentSize; i < resultingKeyValuePairs.size(); i+=2) {
    Data keyData=(Data)resultingKeyValuePairs.get(i);
    Data valueData=(Data)resultingKeyValuePairs.get(i + 1);
    Object ncKey=serializeKeys ? keyData : reverseKeyMap.get(keyData);
    if (!serializeKeys) {
      resultingKeyValuePairs.set(i,ncKey);
    }
    Long reservationId=reservations.get(ncKey);
    if (reservationId != null) {
      Object cachedValue=tryPublishReserved(ncKey,valueData,reservationId);
      resultingKeyValuePairs.set(i + 1,cachedValue);
      reservations.remove(ncKey);
    }
  }
}
Program: 46003
Project: 46003
Buggy source:
private void populateResultFromNearCache(Collection keys,List<Object> resultingKeyValuePairs){
  Iterator iterator=keys.iterator();
  while (iterator.hasNext()) {
    Object key=iterator.next();
    Object value=getCachedValue(key,true);
    if (value != null && value != NOT_CACHED) {
      resultingKeyValuePairs.add(toObject(key));
      resultingKeyValuePairs.add(toObject(value));
      iterator.remove();
    }
  }
}

Fixed version (ground truth):
private void populateResultFromNearCache(Collection keys,List<Object> resultingKeyValuePairs){
  Iterator iterator=keys.iterator();
  while (iterator.hasNext()) {
    Object key=iterator.next();
    Object value=getCachedValue(key,true);
    if (value != null && value != NOT_CACHED) {
      resultingKeyValuePairs.add(key);
      resultingKeyValuePairs.add(value);
      iterator.remove();
    }
  }
}
Program: 46004
Project: 46004
Buggy source:
@Override protected void getAllInternal(Set<K> keys,List<Data> dataKeys,List<Object> resultingKeyValuePairs){
  Map<Object,Data> keyMap=null;
  if (serializeKeys) {
    keyMap=toDataKeys(keys,dataKeys);
  }
  Collection ncKeys=serializeKeys ? dataKeys : new ArrayList<K>(keys);
  populateResultFromNearCache(ncKeys,resultingKeyValuePairs);
  if (ncKeys.isEmpty()) {
    return;
  }
  if (!serializeKeys) {
    keyMap=toDataKeys(ncKeys,dataKeys);
  }
  Map<Object,Long> reservations=getNearCacheReservations(ncKeys,keyMap);
  try {
    int currentSize=resultingKeyValuePairs.size();
    super.getAllInternal(keys,dataKeys,resultingKeyValuePairs);
    populateResultFromRemote(currentSize,resultingKeyValuePairs,reservations);
  }
  finally {
    releaseReservedKeys(reservations);
  }
}

Fixed version (ground truth):
@Override protected void getAllInternal(Set<K> keys,List<Data> dataKeys,List<Object> resultingKeyValuePairs){
  if (serializeKeys) {
    toDataKeysWithReservations(keys,dataKeys,null,null);
  }
  Collection<?> ncKeys=serializeKeys ? dataKeys : new LinkedList<K>(keys);
  populateResultFromNearCache(ncKeys,resultingKeyValuePairs);
  if (ncKeys.isEmpty()) {
    return;
  }
  Map<Object,Long> reservations=createHashMap(ncKeys.size());
  Map<Data,Object> reverseKeyMap=null;
  if (!serializeKeys) {
    reverseKeyMap=createHashMap(ncKeys.size());
    toDataKeysWithReservations(ncKeys,dataKeys,reservations,reverseKeyMap);
  }
 else {
    createNearCacheReservations((Collection<Data>)ncKeys,reservations);
  }
  try {
    int currentSize=resultingKeyValuePairs.size();
    super.getAllInternal(keys,dataKeys,resultingKeyValuePairs);
    populateResultFromRemote(currentSize,resultingKeyValuePairs,reservations,reverseKeyMap);
  }
  finally {
    releaseReservedKeys(reservations);
  }
}
Program: 46005
Project: 46005
Buggy source:
void fillMetrics(final StringBuilder stats,final ClientConnection ownerConnection){
  stats.append("String_Node_Str").append(KEY_VALUE_SEPARATOR).append(System.currentTimeMillis());
  addStat(stats,"String_Node_Str",enterprise);
  addStat(stats,"String_Node_Str",ClientType.JAVA.toString());
  addStat(stats,"String_Node_Str",ownerConnection.getStartTime());
  stats.append(STAT_SEPARATOR).append("String_Node_Str").append(KEY_VALUE_SEPARATOR).append(ownerConnection.getInetAddress().getHostAddress()).append("String_Node_Str").append(ownerConnection.getPort());
  addStat(stats,"String_Node_Str",client.getName());
  Credentials credentials=client.getCredentials();
  if (!(credentials instanceof UsernamePasswordCredentials)) {
    addStat(stats,"String_Node_Str",credentials.getPrincipal());
  }
  for (  Map.Entry<String,StringRenderer> entry : allMetrics.entrySet()) {
    stats.append(STAT_SEPARATOR).append(entry.getKey()).append(KEY_VALUE_SEPARATOR);
    entry.getValue().render(stats);
  }
}

Fixed version (ground truth):
void fillMetrics(final StringBuilder stats,final ClientConnection ownerConnection){
  stats.append("String_Node_Str").append(KEY_VALUE_SEPARATOR).append(System.currentTimeMillis());
  addStat(stats,"String_Node_Str",enterprise);
  addStat(stats,"String_Node_Str",ClientType.JAVA.toString());
  addStat(stats,"String_Node_Str",ownerConnection.getStartTime());
  stats.append(STAT_SEPARATOR).append("String_Node_Str").append(KEY_VALUE_SEPARATOR).append(ownerConnection.getInetAddress().getHostAddress()).append("String_Node_Str").append(ownerConnection.getPort());
  addStat(stats,"String_Node_Str",client.getName());
  Credentials credentials=client.getCredentials();
  if (!(credentials instanceof UsernamePasswordCredentials)) {
    addStat(stats,"String_Node_Str",credentials.getPrincipal());
  }
  for (  Map.Entry<String,Gauge> entry : allMetrics.entrySet()) {
    stats.append(STAT_SEPARATOR).append(entry.getKey()).append(KEY_VALUE_SEPARATOR);
    entry.getValue().render(stats);
  }
}
Program: 46006
Project: 46006
Buggy source:
PeriodicStatistics(final MetricsRegistry metricsRegistry){
  for (  String name : statisticNames) {
    allMetrics.put(name,metricsRegistry.newStringRendererGauge(name));
  }
}

Fixed version (ground truth):
PeriodicStatistics(final MetricsRegistry metricsRegistry){
  for (  String name : statisticNames) {
    allMetrics.put(name,metricsRegistry.newGauge(name));
  }
}
Program: 46007
Project: 46007
Buggy source:
/** 
 * Creates a LongGauge for a given metric name. If no gauge exists for the name, it will be created but no probe is set. The reason to do so is that you don't want to depend on the order of registration. Perhaps you want to read out e.g. operations.count gauge, but the OperationService has not started yet and the metric is not yet available. Another cause is that perhaps a probe is not registered, but the metric is created. For example when experimenting with a new implementation, e.g. a new OperationService implementation, that doesn't provide the operation.count probe. Multiple calls with the same name, return different Gauge instances; so the Gauge instance is not cached. This is done to prevent memory leaks.
 * @param name the name of the metric.
 * @return the created LongGauge.
 * @throws NullPointerException if name is null.
 */
LongGauge newLongGauge(String name);

Fixed version (ground truth):
/** 
 * Creates a   {@link LongGauge} for a given metric name.If no gauge exists for the name, it will be created but no probe is set. The reason to do so is that you don't want to depend on the order of registration. Perhaps you want to read out e.g. operations.count gauge, but the OperationService has not started yet and the metric is not yet available. Another cause is that perhaps a probe is not registered, but the metric is created. For example when experimenting with a new implementation, e.g. a new OperationService implementation, that doesn't provide the operation.count probe. Multiple calls with the same name, return different Gauge instances; so the Gauge instance is not cached. This is done to prevent memory leaks.
 * @param name the name of the metric.
 * @return the created LongGauge.
 * @throws NullPointerException if name is null.
 */
LongGauge newLongGauge(String name);
Program: 46008
Project: 46008
Buggy source:
/** 
 * Creates a DoubleProbe for a given metric name.
 * @param name name of the metric
 * @return the create DoubleGauge
 * @throws NullPointerException if name is null.
 * @see #newLongGauge(String)
 */
DoubleGauge newDoubleGauge(String name);

Fixed version (ground truth):
/** 
 * Creates a   {@link DoubleGauge} for a given metric name.
 * @param name name of the metric
 * @return the create DoubleGauge
 * @throws NullPointerException if name is null.
 * @see #newLongGauge(String)
 */
DoubleGauge newDoubleGauge(String name);
Program: 46009
Project: 46009
Buggy source:
/** 
 * @return A per client unique reference id.
 */
public long getNextReferenceId(){
  return referenceIdCounter.incrementAndGet();
}

Fixed version (ground truth):
/** 
 * @return A per client unique reference ID
 */
public long getNextReferenceId(){
  return referenceIdCounter.incrementAndGet();
}
Program: 46010
Project: 46010
Buggy source:
/** 
 * Registers all client statistics and schedules peridic collection of stats.
 */
public final void start(){
  if (!enabled) {
    return;
  }
  long periodSeconds=properties.getSeconds(PERIOD_SECONDS);
  if (periodSeconds <= 0) {
    long defaultValue=Long.parseLong(PERIOD_SECONDS.getDefaultValue());
    logger.warning("String_Node_Str" + PERIOD_SECONDS.getName() + "String_Node_Str"+ periodSeconds+ "String_Node_Str"+ defaultValue+ "String_Node_Str");
    periodSeconds=defaultValue;
  }
  periodicStats=new PeriodicStatistics(metricsRegistry);
  schedulePeriodicStatisticsSendTask(periodSeconds);
  logger.info("String_Node_Str" + periodSeconds + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Registers all client statistics and schedules periodic collection of stats.
 */
public final void start(){
  if (!enabled) {
    return;
  }
  long periodSeconds=properties.getSeconds(PERIOD_SECONDS);
  if (periodSeconds <= 0) {
    long defaultValue=Long.parseLong(PERIOD_SECONDS.getDefaultValue());
    logger.warning("String_Node_Str" + PERIOD_SECONDS.getName() + "String_Node_Str"+ periodSeconds+ "String_Node_Str"+ defaultValue+ "String_Node_Str");
    periodSeconds=defaultValue;
  }
  periodicStats=new PeriodicStatistics(metricsRegistry);
  schedulePeriodicStatisticsSendTask(periodSeconds);
  logger.info("String_Node_Str" + periodSeconds + "String_Node_Str");
}
Program: 46011
Project: 46011
Buggy source:
@Override public void run(){
  ClientConnection ownerConnection=getOwnerConnection();
  if (null == ownerConnection) {
    logger.finest("String_Node_Str");
    return;
  }
  final StringBuilder stats=new StringBuilder();
  periodicStats.fillMetrics(stats,ownerConnection);
  addNearCachStats(stats);
  sendStats(stats.toString(),ownerConnection);
}

Fixed version (ground truth):
@Override public void run(){
  ClientConnection ownerConnection=getOwnerConnection();
  if (null == ownerConnection) {
    logger.finest("String_Node_Str");
    return;
  }
  final StringBuilder stats=new StringBuilder();
  periodicStats.fillMetrics(stats,ownerConnection);
  addNearCacheStats(stats);
  sendStats(stats.toString(),ownerConnection);
}
Program: 46012
Project: 46012
Buggy source:
/** 
 * @param stat statistics string to be split
 * @param start The start index for splitting
 * @param splitChar A special character to be used for split, e.g. '='
 * @return A list of splitted strings
 */
public static List<String> split(String stat,int start,char splitChar){
  int bufferLen=stat.length();
  if (bufferLen == 0) {
    return null;
  }
  List<String> result=new ArrayList<String>();
  int strStart=start;
  int index=start;
  char previousChar='a';
  for (char currentChar; index < bufferLen; previousChar=currentChar, ++index) {
    currentChar=stat.charAt(index);
    if (currentChar == splitChar) {
      if (previousChar == ESCAPE_CHAR) {
        continue;
      }
      result.add(stat.substring(strStart,index));
      strStart=index + 1;
    }
  }
  if (index > strStart) {
    result.add(stat.substring(strStart,index));
  }
  return result;
}

Fixed version (ground truth):
/** 
 * @param stat      statistics string to be split
 * @param start     the start index for splitting
 * @param splitChar A special character to be used for split, e.g. '='
 * @return a list of split strings
 */
public static List<String> split(String stat,int start,char splitChar){
  int bufferLen=stat.length();
  if (bufferLen == 0) {
    return null;
  }
  List<String> result=new ArrayList<String>();
  int strStart=start;
  int index=start;
  char previousChar='a';
  for (char currentChar; index < bufferLen; previousChar=currentChar, ++index) {
    currentChar=stat.charAt(index);
    if (currentChar == splitChar) {
      if (previousChar == ESCAPE_CHAR) {
        continue;
      }
      result.add(stat.substring(strStart,index));
      strStart=index + 1;
    }
  }
  if (index > strStart) {
    result.add(stat.substring(strStart,index));
  }
  return result;
}
Program: 46013
Project: 46013
Buggy source:
/** 
 * @param periodSeconds The interval at which the statistics collection and send is being run.
 */
private void schedulePeriodicStatisticsSendTask(long periodSeconds){
  client.getExecutionService().scheduleWithRepetition(new Runnable(){
    @Override public void run(){
      ClientConnection ownerConnection=getOwnerConnection();
      if (null == ownerConnection) {
        logger.finest("String_Node_Str");
        return;
      }
      final StringBuilder stats=new StringBuilder();
      periodicStats.fillMetrics(stats,ownerConnection);
      addNearCachStats(stats);
      sendStats(stats.toString(),ownerConnection);
    }
  }
,0,periodSeconds,SECONDS);
}

Fixed version (ground truth):
/** 
 * @param periodSeconds the interval at which the statistics collection and send is being run
 */
private void schedulePeriodicStatisticsSendTask(long periodSeconds){
  client.getExecutionService().scheduleWithRepetition(new Runnable(){
    @Override public void run(){
      ClientConnection ownerConnection=getOwnerConnection();
      if (null == ownerConnection) {
        logger.finest("String_Node_Str");
        return;
      }
      final StringBuilder stats=new StringBuilder();
      periodicStats.fillMetrics(stats,ownerConnection);
      addNearCacheStats(stats);
      sendStats(stats.toString(),ownerConnection);
    }
  }
,0,periodSeconds,SECONDS);
}
Program: 46014
Project: 46014
Buggy source:
/** 
 * @return The owner connection to the server for the client only if the server supports the client statistics feature.
 */
private ClientConnection getOwnerConnection(){
  Address ownerConnectionAddress=client.getClientClusterService().getOwnerConnectionAddress();
  if (null == ownerConnectionAddress) {
    return null;
  }
  ClientConnection connection=(ClientConnection)client.getConnectionManager().getConnection(ownerConnectionAddress);
  if (null == connection) {
    return null;
  }
  int serverVersion=connection.getConnectedServerVersion();
  if (serverVersion < FEATURE_SUPPORTED_SINCE_VERSION) {
    if (ownerAddress == null || !ownerConnectionAddress.equals(ownerAddress)) {
      if (logger.isFinestEnabled()) {
        logger.finest(format("String_Node_Str" + ownerConnectionAddress + "String_Node_Str"+ "String_Node_Str",FEATURE_SUPPORTED_SINCE_VERSION_STRING));
      }
    }
    ownerAddress=ownerConnectionAddress;
    return null;
  }
  return connection;
}

Fixed version (ground truth):
/** 
 * @return the owner connection to the server for the client only if the server supports the client statistics feature
 */
private ClientConnection getOwnerConnection(){
  Address ownerConnectionAddress=client.getClientClusterService().getOwnerConnectionAddress();
  if (null == ownerConnectionAddress) {
    return null;
  }
  ClientConnection connection=(ClientConnection)client.getConnectionManager().getConnection(ownerConnectionAddress);
  if (null == connection) {
    return null;
  }
  int serverVersion=connection.getConnectedServerVersion();
  if (serverVersion < FEATURE_SUPPORTED_SINCE_VERSION) {
    if (ownerAddress == null || !ownerConnectionAddress.equals(ownerAddress)) {
      if (logger.isFinestEnabled()) {
        logger.finest(format("String_Node_Str" + ownerConnectionAddress + "String_Node_Str"+ "String_Node_Str",FEATURE_SUPPORTED_SINCE_VERSION_STRING));
      }
    }
    ownerAddress=ownerConnectionAddress;
    return null;
  }
  return connection;
}
Program: 46015
Project: 46015
Buggy source:
/** 
 * @param listener The listener to be registered.
 * @return The registration id.
 */
String addMembershipListener(MembershipListener listener);

Fixed version (ground truth):
/** 
 * @param listener The listener to be registered.
 * @return The registration ID
 */
String addMembershipListener(MembershipListener listener);
Program: 46016
Project: 46016
Buggy source:
/** 
 * Creates a new client proxy with the given id.
 * @param id the ID of the client proxy
 * @return the client proxy
 */
ClientProxy create(String id);

Fixed version (ground truth):
/** 
 * Creates a new client proxy with the given ID
 * @param id the ID of the client proxy
 * @return the client proxy
 */
ClientProxy create(String id);
Program: 46017
Project: 46017
Buggy source:
/** 
 * Creates a new client proxy with the given id.
 * @param id      the ID of the client proxy
 * @param context the {@link ClientContext} of the client proxy
 * @return the client proxy
 */
public abstract ClientProxy create(String id,ClientContext context);

Fixed version (ground truth):
/** 
 * Creates a new client proxy with the given ID.
 * @param id      the ID of the client proxy
 * @param context the {@link ClientContext} of the client proxy
 * @return the client proxy
 */
public abstract ClientProxy create(String id,ClientContext context);
Program: 46018
Project: 46018
Buggy source:
/** 
 * Alias registration id is same as registration id in the beginning. If listener had to be re-registered new registration id is stored as server registration id. When user try to remove the listener with registration id, related server registration is send to subscribed member to remove the listener.
 * @return server registration Id
 */
public String getServerRegistrationId(){
  return serverRegistrationId;
}

Fixed version (ground truth):
/** 
 * Alias registration ID is same as registration ID in the beginning. If listener had to be re-registered new registration ID is stored as server registration ID. When user try to remove the listener with registration ID, related server registration is send to subscribed member to remove the listener.
 * @return server registration ID
 */
public String getServerRegistrationId(){
  return serverRegistrationId;
}
Program: 46019
Project: 46019
Buggy source:
/** 
 * Call id of first event registration request
 * @return call id
 */
public long getCallId(){
  return callId;
}

Fixed version (ground truth):
/** 
 * Call ID of first event registration request
 * @return call ID
 */
public long getCallId(){
  return callId;
}
Program: 46020
Project: 46020
Buggy source:
@Override public void register(final Channel channel){
  NioChannel nioChannel=checkInstanceOf(NioChannel.class,channel);
  try {
    nioChannel.socketChannel().configureBlocking(false);
  }
 catch (  IOException e) {
    throw rethrow(e);
  }
  NioChannelReader reader=newChannelReader(nioChannel);
  NioChannelWriter writer=newChannelWriter(nioChannel);
  nioChannel.setReader(reader);
  nioChannel.setWriter(writer);
  ioBalancer.channelAdded(reader,writer);
  String metricsId=channel.getLocalSocketAddress() + "String_Node_Str" + channel.getRemoteSocketAddress();
  metricsRegistry.scanAndRegister(writer,"String_Node_Str" + metricsId + "String_Node_Str");
  metricsRegistry.scanAndRegister(reader,"String_Node_Str" + metricsId + "String_Node_Str");
  reader.start();
  writer.start();
  channel.addCloseListener(channelCloseListener);
}

Fixed version (ground truth):
@Override public void register(final Channel channel){
  NioChannel nioChannel=checkInstanceOf(NioChannel.class,channel);
  try {
    nioChannel.socketChannel().configureBlocking(false);
  }
 catch (  IOException e) {
    throw rethrow(e);
  }
  NioChannelReader reader=newChannelReader(nioChannel);
  NioChannelWriter writer=newChannelWriter(nioChannel);
  channels.add(nioChannel);
  nioChannel.setReader(reader);
  nioChannel.setWriter(writer);
  ioBalancer.channelAdded(reader,writer);
  String metricsId=channel.getLocalSocketAddress() + "String_Node_Str" + channel.getRemoteSocketAddress();
  metricsRegistry.scanAndRegister(writer,"String_Node_Str" + metricsId + "String_Node_Str");
  metricsRegistry.scanAndRegister(reader,"String_Node_Str" + metricsId + "String_Node_Str");
  reader.start();
  writer.start();
  channel.addCloseListener(channelCloseListener);
}
Program: 46021
Project: 46021
Buggy source:
private <T>Future<T> checkSync(ClientInvocationFuture f,String uuid,int partitionId,boolean preventSync,T defaultValue){
  boolean sync=isSyncComputation(preventSync);
  if (sync) {
    Object response=retrieveResultFromMessage(f);
    Executor userExecutor=getContext().getExecutionService().getUserExecutor();
    return new CompletedFuture<T>(getSerializationService(),response,userExecutor);
  }
 else {
    return new ClientPartitionCancellableDelegatingFuture<T>(f,getContext(),uuid,partitionId,defaultValue,SUBMIT_TO_PARTITION_DECODER);
  }
}

Fixed version (ground truth):
private <T>Future<T> checkSync(ClientInvocationFuture f,String uuid,int partitionId,boolean preventSync,T defaultValue){
  boolean sync=isSyncComputation(preventSync);
  if (sync) {
    Object response=retrieveResultFromMessage(f);
    Executor userExecutor=getContext().getExecutionService().getUserExecutor();
    return new CompletedFuture<T>(getSerializationService(),response,userExecutor);
  }
 else {
    return new IExecutorDelegatingFuture<T>(f,getContext(),uuid,defaultValue,SUBMIT_TO_PARTITION_DECODER,partitionId);
  }
}
Program: 46022
Project: 46022
Buggy source:
@Test public void testNoOperationTimeoutException_whenUserCodeLongRunning(){
  Config config=getConfig();
  config.setProperty(OPERATION_CALL_TIMEOUT_MILLIS.getName(),"String_Node_Str");
  hazelcastFactory.newHazelcastInstance(config);
  HazelcastInstance client=hazelcastFactory.newHazelcastClient();
  IMap<Object,Object> map=client.getMap(randomMapName());
  SleepyProcessor sleepyProcessor=new SleepyProcessor(SECONDS.toMillis(10));
  String key=randomString();
  String value=randomString();
  map.put(key,value);
  assertEquals(value,map.executeOnKey(key,sleepyProcessor));
}

Fixed version (ground truth):
@Test @Category(NightlyTest.class) public void testNoOperationTimeoutException_whenUserCodeLongRunning(){
  Config config=getConfig();
  long callTimeoutMillis=SECONDS.toMillis(10);
  config.setProperty(OPERATION_CALL_TIMEOUT_MILLIS.getName(),String.valueOf(callTimeoutMillis));
  hazelcastFactory.newHazelcastInstance(config);
  HazelcastInstance client=hazelcastFactory.newHazelcastClient();
  IMap<Object,Object> map=client.getMap(randomMapName());
  SleepyProcessor sleepyProcessor=new SleepyProcessor(2 * callTimeoutMillis);
  String key=randomString();
  String value=randomString();
  map.put(key,value);
  assertEquals(value,map.executeOnKey(key,sleepyProcessor));
}
Program: 46024
Project: 46024
Buggy source:
private <T>Future<T> checkSync(ClientInvocationFuture f,String uuid,int partitionId,boolean preventSync,T defaultValue){
  boolean sync=isSyncComputation(preventSync);
  if (sync) {
    Object response=retrieveResultFromMessage(f);
    Executor userExecutor=getContext().getExecutionService().getUserExecutor();
    return new CompletedFuture<T>(getContext().getSerializationService(),response,userExecutor);
  }
 else {
    return new ClientPartitionCancellableDelegatingFuture<T>(f,getContext(),uuid,partitionId,defaultValue,SUBMIT_TO_PARTITION_DECODER);
  }
}

Fixed version (ground truth):
private <T>Future<T> checkSync(ClientInvocationFuture f,String uuid,int partitionId,boolean preventSync,T defaultValue){
  boolean sync=isSyncComputation(preventSync);
  if (sync) {
    Object response=retrieveResultFromMessage(f);
    Executor userExecutor=getContext().getExecutionService().getUserExecutor();
    return new CompletedFuture<T>(getContext().getSerializationService(),response,userExecutor);
  }
 else {
    return new IExecutorDelegatingFuture<T>(f,getContext(),uuid,defaultValue,SUBMIT_TO_PARTITION_DECODER,partitionId);
  }
}
Program: 46025
Project: 46025
Buggy source:
@Override public ChannelFactory getChannelFactory(){
  return new NioChannelFactory();
}

Fixed version (ground truth):
@Override public ChannelFactory getChannelFactory(){
  boolean spinning=Boolean.getBoolean("String_Node_Str");
  return spinning ? new SpinningChannelFactory() : new NioChannelFactory();
}
Program: 46026
Project: 46026
Buggy source:
public SpinningChannel(SocketChannel socketChannel,boolean client){
  super(socketChannel,client);
}

Fixed version (ground truth):
public SpinningChannel(SocketChannel socketChannel,boolean clientMode){
  super(socketChannel,clientMode);
}
Program: 46027
Project: 46027
Buggy source:
private boolean init() throws IOException {
  InitResult<ChannelInboundHandler> init=initializer.initInbound(channel);
  if (init == null) {
    return false;
  }
  this.inboundHandler=init.getHandler();
  this.inputBuffer=init.getByteBuffer();
  return true;
}

Fixed version (ground truth):
private boolean init() throws IOException {
  InitResult<ChannelInboundHandler> init=initializer.initInbound(channel);
  if (init == null) {
    return false;
  }
  this.inboundHandler=init.getHandler();
  this.inputBuffer=init.getByteBuffer();
  if (inboundHandler instanceof ChannelInboundHandlerWithCounters) {
    ChannelInboundHandlerWithCounters withCounters=(ChannelInboundHandlerWithCounters)inboundHandler;
    withCounters.setNormalPacketsRead(normalFramesRead);
    withCounters.setPriorityPacketsRead(priorityFramesRead);
  }
  return true;
}
Program: 46028
Project: 46028
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46029
Project: 46029
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46030
Project: 46030
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectNow_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46031
Project: 46031
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46032
Project: 46032
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46033
Project: 46033
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new SelectWithSelectorFix_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46034
Project: 46034
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46035
Project: 46035
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46036
Project: 46036
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Select_NioEventLoopGroupFactory();
  super.setup();
}
Program: 46037
Project: 46037
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}
Program: 46038
Project: 46038
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}
Program: 46039
Project: 46039
Buggy source:
@Before public void setup() throws Exception {
  threadingModelFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}

Fixed version (ground truth):
@Before public void setup() throws Exception {
  eventLoopGroupFactory=new Spinning_EventLoopGroupFactory();
  super.setup();
}
Program: 46040
Project: 46040
Buggy source:
@Override public ChannelFactory getChannelFactory(){
  return new NioChannelFactory();
}

Fixed version (ground truth):
@Override public ChannelFactory getChannelFactory(){
  return channelFactory;
}
Program: 46041
Project: 46041
Buggy source:
public MockIOService(int port) throws Exception {
  loggingService=new LoggingServiceImpl("String_Node_Str","String_Node_Str",BuildInfoProvider.BUILD_INFO);
  serverSocketChannel=ServerSocketChannel.open();
  ServerSocket serverSocket=serverSocketChannel.socket();
  serverSocket.setReuseAddress(true);
  serverSocket.setSoTimeout(1000);
  serverSocket.bind(new InetSocketAddress("String_Node_Str",port));
  thisAddress=new Address("String_Node_Str",port);
  this.serializationService=new DefaultSerializationServiceBuilder().addDataSerializableFactory(TestDataFactory.FACTORY_ID,new TestDataFactory()).build();
}

Fixed version (ground truth):
public MockIOService(int port,ChannelFactory channelFactory) throws Exception {
  loggingService=new LoggingServiceImpl("String_Node_Str","String_Node_Str",BuildInfoProvider.BUILD_INFO);
  serverSocketChannel=ServerSocketChannel.open();
  ServerSocket serverSocket=serverSocketChannel.socket();
  serverSocket.setReuseAddress(true);
  serverSocket.setSoTimeout(1000);
  serverSocket.bind(new InetSocketAddress("String_Node_Str",port));
  thisAddress=new Address("String_Node_Str",port);
  this.channelFactory=channelFactory;
  this.serializationService=new DefaultSerializationServiceBuilder().addDataSerializableFactory(TestDataFactory.FACTORY_ID,new TestDataFactory()).build();
}
Program: 46042
Project: 46042
Buggy source:
protected TcpIpConnectionManager newConnectionManager(int port,MetricsRegistry metricsRegistry) throws Exception {
  MockIOService ioService=new MockIOService(port);
  return new TcpIpConnectionManager(ioService,ioService.serverSocketChannel,ioService.loggingService,metricsRegistry,threadingModelFactory.create(ioService,metricsRegistry));
}

Fixed version (ground truth):
protected TcpIpConnectionManager newConnectionManager(int port,MetricsRegistry metricsRegistry) throws Exception {
  MockIOService ioService=new MockIOService(port,eventLoopGroupFactory.createChannelFactory());
  return new TcpIpConnectionManager(ioService,ioService.serverSocketChannel,ioService.loggingService,metricsRegistry,eventLoopGroupFactory.create(ioService,metricsRegistry));
}
Program: 46043
Project: 46043
Buggy source:
/** 
 * Removes the   {@code member} if it has not sent any master confirmation in{@link GroupProperty#MAX_NO_MASTER_CONFIRMATION_SECONDS}.
 * @param now    the current cluster clock time
 * @param member the member which needs to be checked
 * @return if the member has been removed
 */
private boolean removeMemberIfMasterConfirmationExpired(long now,MemberImpl member){
  Long lastConfirmation=masterConfirmationTimes.get(member);
  if (lastConfirmation == null) {
    lastConfirmation=0L;
  }
  if (now - lastConfirmation > maxNoMasterConfirmationMillis) {
    String reason=format("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",member,maxNoMasterConfirmationMillis,timeToString(Clock.currentTimeMillis()),timeToString(now),timeToString(lastConfirmation));
    logger.warning(reason);
    clusterService.suspectMember(member,reason,true);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Removes the   {@code member} if it has not sent any master confirmation in{@link GroupProperty#MAX_NO_MASTER_CONFIRMATION_SECONDS}.
 * @param now    the current cluster clock time
 * @param member the member which needs to be checked
 * @return if the member has been removed
 */
private boolean removeMemberIfMasterConfirmationExpired(long now,MemberImpl member){
  if (clusterService.getClusterJoinManager().isMastershipClaimInProgress()) {
    return false;
  }
  Long lastConfirmation=masterConfirmationTimes.get(member);
  if (lastConfirmation == null) {
    lastConfirmation=0L;
  }
  if (now - lastConfirmation > maxNoMasterConfirmationMillis) {
    String reason=format("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str",member,maxNoMasterConfirmationMillis,timeToString(Clock.currentTimeMillis()),timeToString(now),timeToString(lastConfirmation));
    logger.warning(reason);
    clusterService.suspectMember(member,reason,true);
    return true;
  }
  return false;
}
Program: 46044
Project: 46044
Buggy source:
@Override public void run(){
  MembersView newMembersView=decideNewMembersView(localMemberView,membersToAsk);
  clusterServiceLock.lock();
  try {
    if (!clusterService.isJoined()) {
      logger.fine("String_Node_Str" + newMembersView + "String_Node_Str");
      return;
    }
    updateMembers(newMembersView);
    clusterService.getClusterJoinManager().reset();
    sendMemberListToOthers();
    logger.info("String_Node_Str" + newMembersView);
  }
  finally {
    clusterServiceLock.unlock();
  }
}

Fixed version (ground truth):
@Override public void run(){
  MembersView newMembersView=decideNewMembersView(localMemberView,membersToAsk);
  clusterServiceLock.lock();
  try {
    if (!clusterService.isJoined()) {
      logger.fine("String_Node_Str" + newMembersView + "String_Node_Str");
      return;
    }
    updateMembers(newMembersView);
    clusterService.getClusterHeartbeatManager().resetMemberMasterConfirmations();
    clusterService.getClusterJoinManager().reset();
    sendMemberListToOthers();
    logger.info("String_Node_Str" + newMembersView);
  }
  finally {
    clusterServiceLock.unlock();
  }
}
Program: 46045
Project: 46045
Buggy source:
@Test(expected=ExecutionException.class) public void testGetAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> foo=map4.getAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testGetAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> future=map4.getAsync("String_Node_Str");
  future.get();
}
Program: 46046
Project: 46046
Buggy source:
@Test public void testGetAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> foo=map1.getAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test public void testGetAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> future=map1.getAsync("String_Node_Str");
  future.get();
}
Program: 46047
Project: 46047
Buggy source:
@Test public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> foo=map1.removeAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> future=map1.removeAsync("String_Node_Str");
  future.get();
}
Program: 46048
Project: 46048
Buggy source:
@Test(expected=ExecutionException.class) public void testGetAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> foo=map4.getAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testGetAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> future=map4.getAsync("String_Node_Str");
  future.get();
}
Program: 46049
Project: 46049
Buggy source:
@Test(expected=ExecutionException.class) public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> foo=map4.putAsync("String_Node_Str","String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> future=map4.putAsync("String_Node_Str","String_Node_Str");
  future.get();
}
Program: 46050
Project: 46050
Buggy source:
@Test public void testPutAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> foo=map1.putAsync("String_Node_Str","String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test public void testPutAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> future=map1.putAsync("String_Node_Str","String_Node_Str");
  future.get();
}
Program: 46051
Project: 46051
Buggy source:
@Test(expected=ExecutionException.class) public void testRemoveAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> foo=map4.removeAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testRemoveAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> future=map4.removeAsync("String_Node_Str");
  future.get();
}
Program: 46052
Project: 46052
Buggy source:
@Test public void testSubmitToKeyOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future foo=map1.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  foo.get();
}

Fixed version (ground truth):
@Test public void testSubmitToKeyOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future future=map1.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  future.get();
}
Program: 46053
Project: 46053
Buggy source:
@Test(expected=ExecutionException.class) public void testSubmitToKeyOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future foo=map4.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testSubmitToKeyOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future future=map4.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  future.get();
}
Program: 46054
Project: 46054
Buggy source:
@Test public void testGetAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> foo=map1.getAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test public void testGetAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> future=map1.getAsync("String_Node_Str");
  future.get();
}
Program: 46055
Project: 46055
Buggy source:
@Test public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> foo=map1.removeAsync("String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future<Object> future=map1.removeAsync("String_Node_Str");
  future.get();
}
Program: 46056
Project: 46056
Buggy source:
@Test(expected=ExecutionException.class) public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> foo=map4.putAsync("String_Node_Str","String_Node_Str");
  foo.get();
}

Fixed version (ground truth):
@Test(expected=ExecutionException.class) public void testPutAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
  Future<Object> future=map4.putAsync("String_Node_Str","String_Node_Str");
  future.get();
}
Program: 46057
Project: 46057
Buggy source:
@Test public void testSubmmtToKeyOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future foo=map1.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  foo.get();
}

Fixed version (ground truth):
@Test public void testSubmmtToKeyOperationSuccessfulWhenQuorumSizeMet() throws Exception {
  Future future=map1.submitToKey("String_Node_Str",new TestLoggingEntryProcessor());
  future.get();
}