nus-yam/ex-repair huggingface dataset:
Program: 93010
Project: 93010
Buggy source:
private Storage.BlobGetOption toGetOption(BlobInfo blobInfo){
switch (getRpcOption()) {
case IF_GENERATION_MATCH:
    return Storage.BlobGetOption.generationMatch(blobInfo.getGeneration());
case IF_GENERATION_NOT_MATCH:
  return Storage.BlobGetOption.generationNotMatch(blobInfo.getGeneration());
case IF_METAGENERATION_MATCH:
return Storage.BlobGetOption.metagenerationMatch(blobInfo.getMetageneration());
case IF_METAGENERATION_NOT_MATCH:
return Storage.BlobGetOption.metagenerationNotMatch(blobInfo.getMetageneration());
default :
throw new AssertionError("String_Node_Str");
}
}

Fixed version (ground truth):
private Storage.BlobGetOption toGetOption(BlobInfo blobInfo){
switch (getRpcOption()) {
case IF_GENERATION_MATCH:
    return Storage.BlobGetOption.generationMatch(blobInfo.getGeneration());
case IF_GENERATION_NOT_MATCH:
  return Storage.BlobGetOption.generationNotMatch(blobInfo.getGeneration());
case IF_METAGENERATION_MATCH:
return Storage.BlobGetOption.metagenerationMatch(blobInfo.getMetageneration());
case IF_METAGENERATION_NOT_MATCH:
return Storage.BlobGetOption.metagenerationNotMatch(blobInfo.getMetageneration());
case USER_PROJECT:
return Storage.BlobGetOption.userProject((String)getValue());
default :
throw new AssertionError("String_Node_Str");
}
}
Program: 93012
Project: 93012
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  BigQueryOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  BigQueryOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93013
Project: 93013
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  ComputeOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  ComputeOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93014
Project: 93014
Buggy source:
String getXGoogApiClientHeader(ServiceOptions<?,?> serviceOptions){
  return String.format("String_Node_Str",getJavaVersion(),ServiceOptions.getGoogApiClientLibName(),serviceOptions.getLibraryVersion());
}

Fixed version (ground truth):
/** 
 * Returns a string value for x-goog-api-client HTTP header. The header is used to report version of the client and its protocol-specific dependencies. For internal use.
 * @param libraryVersion version of the google-cloud-java library
 * @return value of x-goog-api-client HTTP header, which should be provided with each request
 */
String getXGoogApiClientHeader(String libraryVersion){
  return String.format(Locale.US,"String_Node_Str",firstNonNull(Runtime.class.getPackage().getImplementationVersion(),"String_Node_Str"),ServiceOptions.getGoogApiClientLibName(),libraryVersion);
}
Program: 93015
Project: 93015
Buggy source:
@Override public void initialize(HttpRequest httpRequest) throws IOException {
  if (delegate != null) {
    delegate.initialize(httpRequest);
  }
  if (connectTimeout >= 0) {
    httpRequest.setConnectTimeout(connectTimeout);
  }
  if (readTimeout >= 0) {
    httpRequest.setReadTimeout(readTimeout);
  }
  HttpHeaders headers=httpRequest.getHeaders();
  headers.set("String_Node_Str",getXGoogApiClientHeader(serviceOptions));
}

Fixed version (ground truth):
@Override public void initialize(HttpRequest httpRequest) throws IOException {
  if (delegate != null) {
    delegate.initialize(httpRequest);
  }
  if (connectTimeout >= 0) {
    httpRequest.setConnectTimeout(connectTimeout);
  }
  if (readTimeout >= 0) {
    httpRequest.setReadTimeout(readTimeout);
  }
  HttpHeaders headers=httpRequest.getHeaders();
  headers.set("String_Node_Str",getXGoogApiClientHeader(serviceOptions.getLibraryVersion()));
}
Program: 93016
Project: 93016
Buggy source:
/** 
 * Returns a request initializer responsible for initializing requests according to service options.
 */
public HttpRequestInitializer getHttpRequestInitializer(final ServiceOptions<?,?> serviceOptions){
  Credentials scopedCredentials=serviceOptions.getScopedCredentials();
  final HttpRequestInitializer delegate=scopedCredentials != null && scopedCredentials != NoCredentials.getInstance() ? new HttpCredentialsAdapter(scopedCredentials) : null;
  return new HttpRequestInitializer(){
    @Override public void initialize(    HttpRequest httpRequest) throws IOException {
      if (delegate != null) {
        delegate.initialize(httpRequest);
      }
      if (connectTimeout >= 0) {
        httpRequest.setConnectTimeout(connectTimeout);
      }
      if (readTimeout >= 0) {
        httpRequest.setReadTimeout(readTimeout);
      }
      HttpHeaders headers=httpRequest.getHeaders();
      headers.set("String_Node_Str",getXGoogApiClientHeader(serviceOptions));
    }
  }
;
}

Fixed version (ground truth):
/** 
 * Returns a request initializer responsible for initializing requests according to service options.
 */
public HttpRequestInitializer getHttpRequestInitializer(final ServiceOptions<?,?> serviceOptions){
  Credentials scopedCredentials=serviceOptions.getScopedCredentials();
  final HttpRequestInitializer delegate=scopedCredentials != null && scopedCredentials != NoCredentials.getInstance() ? new HttpCredentialsAdapter(scopedCredentials) : null;
  return new HttpRequestInitializer(){
    @Override public void initialize(    HttpRequest httpRequest) throws IOException {
      if (delegate != null) {
        delegate.initialize(httpRequest);
      }
      if (connectTimeout >= 0) {
        httpRequest.setConnectTimeout(connectTimeout);
      }
      if (readTimeout >= 0) {
        httpRequest.setReadTimeout(readTimeout);
      }
      HttpHeaders headers=httpRequest.getHeaders();
      headers.set("String_Node_Str",getXGoogApiClientHeader(serviceOptions.getLibraryVersion()));
    }
  }
;
}
Program: 93017
Project: 93017
Buggy source:
@Test public void testHeader(){
  String expectedHeaderPattern="String_Node_Str";
  final ServiceOptions mockOptions=EasyMock.createMock(ServiceOptions.class);
  EasyMock.expect(mockOptions.getLibraryVersion()).andReturn("String_Node_Str");
  EasyMock.replay(mockOptions);
  assertTrue(Pattern.compile(expectedHeaderPattern).matcher(OPTIONS.getXGoogApiClientHeader(mockOptions)).find());
}

Fixed version (ground truth):
@Test public void testHeader(){
  String expectedHeaderPattern="String_Node_Str";
  assertTrue(Pattern.compile(expectedHeaderPattern).matcher(OPTIONS.getXGoogApiClientHeader("String_Node_Str")).find());
}
Program: 93018
Project: 93018
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  DatastoreOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  DatastoreOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93019
Project: 93019
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  DnsOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  DnsOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93020
Project: 93020
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  LoggingOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  LoggingOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93021
Project: 93021
Buggy source:
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  ResourceManagerOptions.newBuilder().setTransportOptions(new TransportOptions(){
  }
);
}

Fixed version (ground truth):
@Test public void testInvalidTransport(){
  thrown.expect(IllegalArgumentException.class);
  ResourceManagerOptions.newBuilder().setTransportOptions(EasyMock.createMock(TransportOptions.class));
}
Program: 93025
Project: 93025
Buggy source:
@Test public void testDeleteNonExistingLogAsync() throws ExecutionException, InterruptedException {
  String logName=formatForTest("String_Node_Str");
  assertFalse(logging().deleteLogAsync(logName).get());
}

Fixed version (ground truth):
@Test public void testDeleteNonExistingLogAsync() throws ExecutionException, InterruptedException {
  String logId=formatForTest("String_Node_Str");
  assertFalse(logging().deleteLogAsync(logId).get());
}
Program: 93027
Project: 93027
Buggy source:
@Test public void testDeleteNonExistingLog(){
  String logName=formatForTest("String_Node_Str");
  assertFalse(logging().deleteLog(logName));
}

Fixed version (ground truth):
@Test public void testDeleteNonExistingLog(){
  String logId=formatForTest("String_Node_Str");
  assertFalse(logging().deleteLog(logId));
}
Program: 93028
Project: 93028
Buggy source:
private void setupNextAckDeadlineExtensionAlarm(Instant expiration){
  Instant possibleNextAlarmTime=expiration.minus(ackExpirationPadding);
  alarmsLock.lock();
  try {
    if (nextAckDeadlineExtensionAlarmTime.isAfter(possibleNextAlarmTime)) {
      logger.log(Level.FINER,"String_Node_Str",new Object[]{possibleNextAlarmTime,nextAckDeadlineExtensionAlarmTime});
      if (ackDeadlineExtensionAlarm != null) {
        logger.log(Level.FINER,"String_Node_Str");
        ackDeadlineExtensionAlarm.cancel(false);
      }
      nextAckDeadlineExtensionAlarmTime=possibleNextAlarmTime;
      ackDeadlineExtensionAlarm=executor.schedule(new AckDeadlineAlarm(),nextAckDeadlineExtensionAlarmTime.getMillis() - clock.millisTime(),TimeUnit.MILLISECONDS);
    }
  }
  finally {
    alarmsLock.unlock();
  }
}

Fixed version (ground truth):
private void setupNextAckDeadlineExtensionAlarm(Instant expiration){
  Instant possibleNextAlarmTime=expiration.minus(ackExpirationPadding);
  alarmsLock.lock();
  try {
    if (nextAckDeadlineExtensionAlarmTime.isAfter(possibleNextAlarmTime)) {
      logger.log(Level.FINER,"String_Node_Str",new Object[]{possibleNextAlarmTime,nextAckDeadlineExtensionAlarmTime});
      if (ackDeadlineExtensionAlarm != null) {
        logger.log(Level.FINER,"String_Node_Str");
        ackDeadlineExtensionAlarm.cancel(false);
      }
      nextAckDeadlineExtensionAlarmTime=possibleNextAlarmTime;
      ackDeadlineExtensionAlarm=alarmsExecutor.schedule(new AckDeadlineAlarm(),nextAckDeadlineExtensionAlarmTime.getMillis() - clock.millisTime(),TimeUnit.MILLISECONDS);
    }
  }
  finally {
    alarmsLock.unlock();
  }
}
Program: 93029
Project: 93029
Buggy source:
@Override public void onFailure(Throwable t){
  logger.log(Level.WARNING,"String_Node_Str" + ackId + "String_Node_Str",t);
  acked.getAndSet(true);
synchronized (pendingNacks) {
    pendingNacks.add(ackId);
  }
  setupPendingAcksAlarm();
  flowController.release(1,outstandingBytes);
  messagesWaiter.incrementPendingMessages(-1);
}

Fixed version (ground truth):
@Override public void onFailure(Throwable t){
  logger.log(Level.WARNING,"String_Node_Str" + ackId + "String_Node_Str",t);
  acked.getAndSet(true);
synchronized (pendingNacks) {
    pendingNacks.add(ackId);
  }
  setupPendingAcksAlarm();
  flowController.release(1,outstandingBytes);
  messagesWaiter.incrementPendingMessages(-1);
  processOutstandingBatches();
}
Program: 93030
Project: 93030
Buggy source:
private void setupPendingAcksAlarm(){
  alarmsLock.lock();
  try {
    if (pendingAcksAlarm == null) {
      pendingAcksAlarm=executor.schedule(new Runnable(){
        @Override public void run(){
          alarmsLock.lock();
          try {
            pendingAcksAlarm=null;
          }
  finally {
            alarmsLock.unlock();
          }
          processOutstandingAckOperations();
        }
      }
,PENDING_ACKS_SEND_DELAY.getMillis(),TimeUnit.MILLISECONDS);
    }
  }
  finally {
    alarmsLock.unlock();
  }
}

Fixed version (ground truth):
private void setupPendingAcksAlarm(){
  alarmsLock.lock();
  try {
    if (pendingAcksAlarm == null) {
      pendingAcksAlarm=alarmsExecutor.schedule(new Runnable(){
        @Override public void run(){
          alarmsLock.lock();
          try {
            pendingAcksAlarm=null;
          }
  finally {
            alarmsLock.unlock();
          }
          processOutstandingAckOperations();
        }
      }
,PENDING_ACKS_SEND_DELAY.getMillis(),TimeUnit.MILLISECONDS);
    }
  }
  finally {
    alarmsLock.unlock();
  }
}
Program: 93031
Project: 93031
Buggy source:
MessageDispatcher(MessageReceiver receiver,AckProcessor ackProcessor,Duration ackExpirationPadding,Duration maxAckExtensionPeriod,Distribution ackLatencyDistribution,FlowController flowController,ScheduledExecutorService executor,ApiClock clock){
  this.executor=executor;
  this.ackExpirationPadding=ackExpirationPadding;
  this.maxAckExtensionPeriod=maxAckExtensionPeriod;
  this.receiver=receiver;
  this.ackProcessor=ackProcessor;
  this.flowController=flowController;
  outstandingAckHandlers=new PriorityQueue<>();
  pendingAcks=new HashSet<>();
  pendingNacks=new HashSet<>();
  this.ackLatencyDistribution=ackLatencyDistribution;
  alarmsLock=new ReentrantLock();
  nextAckDeadlineExtensionAlarmTime=new Instant(Long.MAX_VALUE);
  messagesWaiter=new MessageWaiter();
  this.clock=clock;
}

Fixed version (ground truth):
MessageDispatcher(MessageReceiver receiver,AckProcessor ackProcessor,Duration ackExpirationPadding,Duration maxAckExtensionPeriod,Distribution ackLatencyDistribution,FlowController flowController,ScheduledExecutorService executor,@Nullable ScheduledExecutorService alarmsExecutor,ApiClock clock){
  this.executor=executor;
  this.alarmsExecutor=alarmsExecutor == null ? SHARED_ALARMS_EXECUTOR : alarmsExecutor;
  this.ackExpirationPadding=ackExpirationPadding;
  this.maxAckExtensionPeriod=maxAckExtensionPeriod;
  this.receiver=receiver;
  this.ackProcessor=ackProcessor;
  this.flowController=flowController;
  outstandingMessageBatches=new LinkedList<>();
  outstandingAckHandlers=new PriorityQueue<>();
  pendingAcks=new HashSet<>();
  pendingNacks=new HashSet<>();
  this.ackLatencyDistribution=ackLatencyDistribution;
  alarmsLock=new ReentrantLock();
  nextAckDeadlineExtensionAlarmTime=new Instant(Long.MAX_VALUE);
  messagesWaiter=new MessageWaiter();
  this.clock=clock;
}
Program: 93033
Project: 93033
Buggy source:
@Override public void onSuccess(AckReply reply){
  acked.getAndSet(true);
switch (reply) {
case ACK:
synchronized (pendingAcks) {
      pendingAcks.add(ackId);
    }
  setupPendingAcksAlarm();
flowController.release(1,outstandingBytes);
ackLatencyDistribution.record(Ints.saturatedCast((long)Math.ceil((clock.millisTime() - receivedTime.getMillis()) / 1000D)));
messagesWaiter.incrementPendingMessages(-1);
return;
case NACK:
synchronized (pendingNacks) {
pendingNacks.add(ackId);
}
setupPendingAcksAlarm();
flowController.release(1,outstandingBytes);
messagesWaiter.incrementPendingMessages(-1);
return;
default :
throw new IllegalArgumentException(String.format("String_Node_Str",reply));
}
}

Fixed version (ground truth):
@Override public void onSuccess(AckReply reply){
  acked.getAndSet(true);
switch (reply) {
case ACK:
synchronized (pendingAcks) {
      pendingAcks.add(ackId);
    }
  ackLatencyDistribution.record(Ints.saturatedCast((long)Math.ceil((clock.millisTime() - receivedTime.getMillis()) / 1000D)));
break;
case NACK:
synchronized (pendingNacks) {
pendingNacks.add(ackId);
}
break;
default :
throw new IllegalArgumentException(String.format("String_Node_Str",reply));
}
setupPendingAcksAlarm();
flowController.release(1,outstandingBytes);
messagesWaiter.incrementPendingMessages(-1);
processOutstandingBatches();
}
Program: 93035
Project: 93035
Buggy source:
public PollingSubscriberConnection(String subscription,MessageReceiver receiver,Duration ackExpirationPadding,Duration maxAckExtensionPeriod,Distribution ackLatencyDistribution,Channel channel,FlowController flowController,ScheduledExecutorService executor,ApiClock clock){
  this.subscription=subscription;
  this.executor=executor;
  stub=SubscriberGrpc.newFutureStub(channel);
  messageDispatcher=new MessageDispatcher(receiver,this,ackExpirationPadding,maxAckExtensionPeriod,ackLatencyDistribution,flowController,executor,clock);
  messageDispatcher.setMessageDeadlineSeconds(Subscriber.MIN_ACK_DEADLINE_SECONDS);
}

Fixed version (ground truth):
public PollingSubscriberConnection(String subscription,MessageReceiver receiver,Duration ackExpirationPadding,Duration maxAckExtensionPeriod,Distribution ackLatencyDistribution,Channel channel,FlowController flowController,@Nullable Integer maxDesiredPulledMessages,ScheduledExecutorService executor,@Nullable ScheduledExecutorService alarmsExecutor,ApiClock clock){
  this.subscription=subscription;
  this.executor=executor;
  stub=SubscriberGrpc.newFutureStub(channel);
  messageDispatcher=new MessageDispatcher(receiver,this,ackExpirationPadding,maxAckExtensionPeriod,ackLatencyDistribution,flowController,executor,alarmsExecutor,clock);
  messageDispatcher.setMessageDeadlineSeconds(Subscriber.MIN_ACK_DEADLINE_SECONDS);
  this.maxDesiredPulledMessages=maxDesiredPulledMessages != null ? maxDesiredPulledMessages : DEFAULT_MAX_MESSAGES;
}
Program: 93036
Project: 93036
Buggy source:
private void initialize(){
  ListenableFuture<Subscription> subscriptionInfo=stub.withDeadlineAfter(DEFAULT_TIMEOUT.getMillis(),TimeUnit.MILLISECONDS).getSubscription(GetSubscriptionRequest.newBuilder().setSubscription(subscription).build());
  Futures.addCallback(subscriptionInfo,new FutureCallback<Subscription>(){
    @Override public void onSuccess(    Subscription result){
      messageDispatcher.setMessageDeadlineSeconds(result.getAckDeadlineSeconds());
      pullMessages(INITIAL_BACKOFF);
    }
    @Override public void onFailure(    Throwable cause){
      notifyFailed(cause);
    }
  }
);
}

Fixed version (ground truth):
private void initialize(){
  ListenableFuture<Subscription> subscriptionInfo=stub.withDeadlineAfter(DEFAULT_TIMEOUT.getMillis(),TimeUnit.MILLISECONDS).getSubscription(GetSubscriptionRequest.newBuilder().setSubscription(subscription).build());
  Futures.addCallback(subscriptionInfo,new FutureCallback<Subscription>(){
    @Override public void onSuccess(    Subscription result){
      messageDispatcher.setMessageDeadlineSeconds(result.getAckDeadlineSeconds());
      pullMessages(INITIAL_BACKOFF);
    }
    @Override public void onFailure(    Throwable cause){
      notifyFailed(cause);
    }
  }
,executor);
}
Program: 93037
Project: 93037
Buggy source:
@Override public void onSuccess(PullResponse pullResponse){
  messageDispatcher.processReceivedMessages(pullResponse.getReceivedMessagesList());
  if (pullResponse.getReceivedMessagesCount() == 0) {
    executor.schedule(new Runnable(){
      @Override public void run(){
        Duration newBackoff=backoff.multipliedBy(2);
        if (newBackoff.isLongerThan(MAX_BACKOFF)) {
          newBackoff=MAX_BACKOFF;
        }
        pullMessages(newBackoff);
      }
    }
,backoff.getMillis(),TimeUnit.MILLISECONDS);
    return;
  }
  pullMessages(INITIAL_BACKOFF);
}

Fixed version (ground truth):
@Override public void onSuccess(PullResponse pullResponse){
  if (pullResponse.getReceivedMessagesCount() == 0) {
    executor.schedule(new Runnable(){
      @Override public void run(){
        Duration newBackoff=backoff.multipliedBy(2);
        if (newBackoff.isLongerThan(MAX_BACKOFF)) {
          newBackoff=MAX_BACKOFF;
        }
        pullMessages(newBackoff);
      }
    }
,backoff.getMillis(),TimeUnit.MILLISECONDS);
    return;
  }
  messageDispatcher.processReceivedMessages(pullResponse.getReceivedMessagesList(),new Runnable(){
    @Override public void run(){
      pullMessages(INITIAL_BACKOFF);
    }
  }
);
}
Program: 93038
Project: 93038
Buggy source:
@Test public void testBuilderNoCredentials(){
  assertEquals(NoCredentials.getInstance(),OPTIONS_NO_CREDENTIALS.getCredentials());
  assertSame(TEST_CLOCK,OPTIONS_NO_CREDENTIALS.getClock());
  assertEquals("String_Node_Str",OPTIONS_NO_CREDENTIALS.getHost());
  assertEquals("String_Node_Str",OPTIONS_NO_CREDENTIALS.getProjectId());
  assertSame(ServiceOptions.getNoRetrySettings(),OPTIONS_NO_CREDENTIALS.getRetrySettings());
}

Fixed version (ground truth):
@Test public void testBuilderNoCredentials(){
  assertEquals(NoCredentials.getInstance(),OPTIONS_NO_CREDENTIALS.getCredentials());
  assertTrue(NoCredentials.getInstance().equals(OPTIONS_NO_CREDENTIALS.getCredentials()));
  assertFalse(NoCredentials.getInstance().equals(OPTIONS.getCredentials()));
  assertFalse(NoCredentials.getInstance().equals(null));
  assertSame(TEST_CLOCK,OPTIONS_NO_CREDENTIALS.getClock());
  assertEquals("String_Node_Str",OPTIONS_NO_CREDENTIALS.getHost());
  assertEquals("String_Node_Str",OPTIONS_NO_CREDENTIALS.getProjectId());
  assertSame(ServiceOptions.getNoRetrySettings(),OPTIONS_NO_CREDENTIALS.getRetrySettings());
}
Program: 93040
Project: 93040
Buggy source:
/** 
 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public void deleteTopic(DeleteTopicRequest request){
  deleteTopicCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Deletes the topic with the given name. Generates `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public void deleteTopic(DeleteTopicRequest request){
  deleteTopicCallable().call(request);
}
Program: 93041
Project: 93041
Buggy source:
/** 
 * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<DeleteTopicRequest,Empty> deleteTopicCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.DELETE_TOPIC);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.DELETE_TOPIC);
  return DELETE_TOPIC.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Deletes the topic with the given name. Generates `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<DeleteTopicRequest,Empty> deleteTopicCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.DELETE_TOPIC);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.DELETE_TOPIC);
  return DELETE_TOPIC.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93042
Project: 93042
Buggy source:
/** 
 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<PublishRequest,PublishResponse> publishCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.PUBLISH);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.PUBLISH);
  return PUBLISH.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Adds one or more messages to the topic. Generates `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<PublishRequest,PublishResponse> publishCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.PUBLISH);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.PUBLISH);
  return PUBLISH.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93043
Project: 93043
Buggy source:
/** 
 * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public PublishResponse publish(PublishRequest request){
  return publishCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Adds one or more messages to the topic. Generates `NOT_FOUND` if the topic does not exist. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public PublishResponse publish(PublishRequest request){
  return publishCallable().call(request);
}
Program: 93044
Project: 93044
Buggy source:
/** 
 * Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public void deleteSubscription(DeleteSubscriptionRequest request){
  deleteSubscriptionCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will generate `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public void deleteSubscription(DeleteSubscriptionRequest request){
  deleteSubscriptionCallable().call(request);
}
Program: 93045
Project: 93045
Buggy source:
/** 
 * Lists matching subscriptions. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Iterable<Subscription> listSubscriptions(ListSubscriptionsRequest request){
  return listSubscriptionsStreamingCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Lists matching subscriptions. If the topic of a subscription has been deleted, the subscription itself is not deleted, but the value of the `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Iterable<Subscription> listSubscriptions(ListSubscriptionsRequest request){
  return listSubscriptionsStreamingCallable().call(request);
}
Program: 93046
Project: 93046
Buggy source:
/** 
 * Gets the configuration details of a subscription. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Subscription getSubscription(GetSubscriptionRequest request){
  return getSubscriptionCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Gets the configuration details of a subscription. If the topic of a subscription has been deleted, the subscription itself is not deleted, but the value of the `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Subscription getSubscription(GetSubscriptionRequest request){
  return getSubscriptionCallable().call(request);
}
Program: 93047
Project: 93047
Buggy source:
/** 
 * Creates a subscription to a given topic for a given subscriber. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<Subscription,Subscription> createSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.CREATE_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.CREATE_SUBSCRIPTION);
  return CREATE_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Creates a subscription to a given topic for a given subscriber. If the subscription already exists, generates `ALREADY_EXISTS`. If the corresponding topic doesn't exist, generates `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<Subscription,Subscription> createSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.CREATE_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.CREATE_SUBSCRIPTION);
  return CREATE_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93048
Project: 93048
Buggy source:
/** 
 * Lists matching subscriptions. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<ListSubscriptionsRequest,Iterable<Subscription>> listSubscriptionsStreamingCallable(){
  return listSubscriptionsCallable().pageStreaming(LIST_SUBSCRIPTIONS_PAGE_DESC);
}

Fixed version (ground truth):
/** 
 * Lists matching subscriptions. If the topic of a subscription has been deleted, the subscription itself is not deleted, but the value of the `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<ListSubscriptionsRequest,Iterable<Subscription>> listSubscriptionsStreamingCallable(){
  return listSubscriptionsCallable().pageStreaming(LIST_SUBSCRIPTIONS_PAGE_DESC);
}
Program: 93049
Project: 93049
Buggy source:
/** 
 * Gets the configuration details of a subscription. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.GET_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.GET_SUBSCRIPTION);
  return GET_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Gets the configuration details of a subscription. If the topic of a subscription has been deleted, the subscription itself is not deleted, but the value of the `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.GET_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.GET_SUBSCRIPTION);
  return GET_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93050
Project: 93050
Buggy source:
/** 
 * Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.DELETE_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.DELETE_SUBSCRIPTION);
  return DELETE_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will generate `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.DELETE_SUBSCRIPTION);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.DELETE_SUBSCRIPTION);
  return DELETE_SUBSCRIPTION.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93051
Project: 93051
Buggy source:
/** 
 * Creates a subscription to a given topic for a given subscriber. If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Subscription createSubscription(Subscription request){
  return createSubscriptionCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Creates a subscription to a given topic for a given subscriber. If the subscription already exists, generates `ALREADY_EXISTS`. If the corresponding topic doesn't exist, generates `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public Subscription createSubscription(Subscription request){
  return createSubscriptionCallable().call(request);
}
Program: 93052
Project: 93052
Buggy source:
/** 
 * Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public PullResponse pull(PullRequest request){
  return pullCallable().call(request);
}

Fixed version (ground truth):
/** 
 * Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may generate `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. <!-- manual edit --> <!-- end manual edit -->
 * @param request The request object containing all of the parameters for the API call.
 */
public PullResponse pull(PullRequest request){
  return pullCallable().call(request);
}
Program: 93053
Project: 93053
Buggy source:
/** 
 * Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<PullRequest,PullResponse> pullCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.PULL);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.PULL);
  return PULL.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Pulls messages from the server. Returns an empty list if there are no messages available in the backlog. The server may generate `UNAVAILABLE` if there are too many concurrent pull requests pending for the given subscription. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<PullRequest,PullResponse> pullCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.PULL);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.PULL);
  return PULL.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93054
Project: 93054
Buggy source:
/** 
 * Lists matching subscriptions. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.LIST_SUBSCRIPTIONS);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.LIST_SUBSCRIPTIONS);
  return LIST_SUBSCRIPTIONS.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}

Fixed version (ground truth):
/** 
 * Lists matching subscriptions. If the topic of a subscription has been deleted, the subscription itself is not deleted, but the value of the `topic` field is set to `_deleted-topic_`. <!-- manual edit --> <!-- end manual edit -->
 */
public ApiCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable(){
  ImmutableSet<Status.Code> retryableCodes=retryCodesConfig.get(MethodIdentifier.LIST_SUBSCRIPTIONS);
  RetryParams retryParams=retryParamsConfig.get(MethodIdentifier.LIST_SUBSCRIPTIONS);
  return LIST_SUBSCRIPTIONS.retryableOn(retryableCodes).retrying(retryParams,settings.getExecutor()).bind(channel);
}
Program: 93055
Project: 93055
Buggy source:
@Override public byte[] load(StorageObject from,Map<Option,?> options){
  try {
    Storage.Objects.Get getRequest=storage.objects().get(from.getBucket(),from.getName()).setGeneration(from.getGeneration()).setIfMetagenerationMatch(IF_METAGENERATION_MATCH.getLong(options)).setIfMetagenerationNotMatch(IF_METAGENERATION_NOT_MATCH.getLong(options)).setIfGenerationMatch(IF_GENERATION_MATCH.getLong(options)).setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
    ByteArrayOutputStream out=new ByteArrayOutputStream();
    getRequest.getMediaHttpDownloader().setDirectDownloadEnabled(true);
    getRequest.executeMediaAndDownloadTo(out);
    return out.toByteArray();
  }
 catch (  IOException ex) {
    throw translate(ex);
  }
}

Fixed version (ground truth):
@Override public byte[] load(StorageObject from,Map<Option,?> options){
  try {
    Storage.Objects.Get getRequest=storage.objects().get(from.getBucket(),from.getName()).setGeneration(from.getGeneration()).setIfMetagenerationMatch(IF_METAGENERATION_MATCH.getLong(options)).setIfMetagenerationNotMatch(IF_METAGENERATION_NOT_MATCH.getLong(options)).setIfGenerationMatch(IF_GENERATION_MATCH.getLong(options)).setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
    ByteArrayOutputStream out=new ByteArrayOutputStream();
    getRequest.executeMedia().download(out);
    return out.toByteArray();
  }
 catch (  IOException ex) {
    throw translate(ex);
  }
}
Program: 93056
Project: 93056
Buggy source:
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  this.compute=options.service();
}

Fixed version (ground truth):
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
  input.defaultReadObject();
  this.compute=options.service();
}
Program: 93057
Project: 93057
Buggy source:
/** 
 * Lists all snapshots.
 * @throws ComputeException upon failure
 */
Page<Snapshot> listSnapshots(SnapshotListOption... options);

Fixed version (ground truth):
/** 
 * Lists snapshots.
 * @throws ComputeException upon failure
 */
Page<Snapshot> listSnapshots(SnapshotListOption... options);
Program: 93058
Project: 93058
Buggy source:
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  this.compute=options.service();
}

Fixed version (ground truth):
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
  input.defaultReadObject();
  this.compute=options.service();
}
Program: 93059
Project: 93059
Buggy source:
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  this.compute=options.service();
}

Fixed version (ground truth):
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
  input.defaultReadObject();
  this.compute=options.service();
}
Program: 93060
Project: 93060
Buggy source:
/** 
 * Returns an option to specify the maximum number of snapshots returned per page.
 */
public static SnapshotListOption pageSize(long pageSize){
  return new SnapshotListOption(ComputeRpc.Option.MAX_RESULTS,pageSize);
}

Fixed version (ground truth):
/** 
 * Returns an option to specify the maximum number of snapshots returned per page.  {@code pageSize} must be between 0 and 500 (inclusive). If not specified 500 is used.
 */
public static SnapshotListOption pageSize(long pageSize){
  return new SnapshotListOption(ComputeRpc.Option.MAX_RESULTS,pageSize);
}
Program: 93061
Project: 93061
Buggy source:
MachineTypeFilter(MachineTypeField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private MachineTypeFilter(MachineTypeField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93062
Project: 93062
Buggy source:
RegionFilter(RegionField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private RegionFilter(RegionField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93063
Project: 93063
Buggy source:
OperationFilter(OperationField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private OperationFilter(OperationField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93064
Project: 93064
Buggy source:
DiskTypeFilter(DiskTypeField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private DiskTypeFilter(DiskTypeField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93065
Project: 93065
Buggy source:
SnapshotFilter(SnapshotField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private SnapshotFilter(SnapshotField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93066
Project: 93066
Buggy source:
/** 
 * Returns an option to specify the snapshot's fields to be returned by the RPC call. If this option is not provided, all snapshot's fields are returned.   {@code SnapshotListOption.fields}can be used to specify only the fields of interest.   {@link Snapshot#snapshotId()} is alwaysreturned, even if not specified.
 */
public static SnapshotListOption fields(SnapshotField... fields){
  StringBuilder builder=new StringBuilder();
  builder.append("String_Node_Str").append(SnapshotField.selector(fields)).append("String_Node_Str");
  return new SnapshotListOption(ComputeRpc.Option.FIELDS,builder.toString());
}

Fixed version (ground truth):
/** 
 * Returns an option to specify the snapshot's fields to be returned by the RPC call. If this option is not provided, all the snapshot's fields are returned.  {@code SnapshotListOption.fields} can be used to specify only the fields of interest.{@link Snapshot#snapshotId()} is always returned, even if not specified.
 */
public static SnapshotListOption fields(SnapshotField... fields){
  StringBuilder builder=new StringBuilder();
  builder.append("String_Node_Str").append(SnapshotField.selector(fields)).append("String_Node_Str");
  return new SnapshotListOption(ComputeRpc.Option.FIELDS,builder.toString());
}
Program: 93067
Project: 93067
Buggy source:
AddressFilter(AddressField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private AddressFilter(AddressField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93068
Project: 93068
Buggy source:
ZoneFilter(ZoneField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}

Fixed version (ground truth):
private ZoneFilter(ZoneField field,ComparisonOperator operator,Object value){
  super(field.selector(),operator,value);
}
Program: 93069
Project: 93069
Buggy source:
/** 
 * Returns an equality filter for the given field and long value.
 */
public static SnapshotFilter equals(SnapshotField field,long value){
  return new SnapshotFilter(checkNotNull(field),ComparisonOperator.EQ,value);
}

Fixed version (ground truth):
/** 
 * Returns an equals filter for the given field and long value.
 */
public static SnapshotFilter equals(SnapshotField field,long value){
  return new SnapshotFilter(checkNotNull(field),ComparisonOperator.EQ,value);
}
Program: 93070
Project: 93070
Buggy source:
@Override public Operation deleteSnapshot(final String snapshot,OperationOption... options){
  return deleteSnapshot(SnapshotId.of(snapshot));
}

Fixed version (ground truth):
@Override public Operation deleteSnapshot(final String snapshot,OperationOption... options){
  final Map<ComputeRpc.Option,?> optionsMap=optionMap(options);
  try {
    com.google.api.services.compute.model.Operation answer=runWithRetries(new Callable<com.google.api.services.compute.model.Operation>(){
      @Override public com.google.api.services.compute.model.Operation call(){
        return computeRpc.deleteSnapshot(snapshot,optionsMap);
      }
    }
,options().retryParams(),EXCEPTION_HANDLER);
    return answer == null ? null : Operation.fromPb(this,answer);
  }
 catch (  RetryHelper.RetryHelperException e) {
    throw ComputeException.translateAndThrow(e);
  }
}