nus-yam/ex-repair huggingface dataset:
Program: 93172
Project: 93172
Buggy source:
protected MoreObjects.ToStringHelper toStringHelper(){
  return MoreObjects.toStringHelper(this).add("String_Node_Str",tableId).add("String_Node_Str",type).add("String_Node_Str",schema).add("String_Node_Str",etag).add("String_Node_Str",id).add("String_Node_Str",selfLink).add("String_Node_Str",friendlyName).add("String_Node_Str",description).add("String_Node_Str",numBytes).add("String_Node_Str",numRows).add("String_Node_Str",expirationTime).add("String_Node_Str",creationTime).add("String_Node_Str",lastModifiedTime);
}

Fixed version (ground truth):
ToStringHelper toStringHelper(){
  return MoreObjects.toStringHelper(this).add("String_Node_Str",tableId).add("String_Node_Str",type).add("String_Node_Str",schema).add("String_Node_Str",etag).add("String_Node_Str",id).add("String_Node_Str",selfLink).add("String_Node_Str",friendlyName).add("String_Node_Str",description).add("String_Node_Str",numBytes).add("String_Node_Str",numRows).add("String_Node_Str",expirationTime).add("String_Node_Str",creationTime).add("String_Node_Str",lastModifiedTime);
}
Program: 93173
Project: 93173
Buggy source:
public Builder toBuilder(){
  return new Builder().allowJaggedRows(allowJaggedRows).allowQuotedNewLines(allowQuotedNewLines).encoding(encoding).fieldDelimiter(fieldDelimiter).quote(quote).skipLeadingRows(skipLeadingRows);
}

Fixed version (ground truth):
/** 
 * Returns a builder for the   {@code CsvOptions} object.
 */
public Builder toBuilder(){
  return new Builder().allowJaggedRows(allowJaggedRows).allowQuotedNewLines(allowQuotedNewLines).encoding(encoding).fieldDelimiter(fieldDelimiter).quote(quote).skipLeadingRows(skipLeadingRows);
}
Program: 93174
Project: 93174
Buggy source:
public static DatasetId fromPb(DatasetReference datasetRef){
  return new DatasetId(datasetRef.getProjectId(),datasetRef.getDatasetId());
}

Fixed version (ground truth):
static DatasetId fromPb(DatasetReference datasetRef){
  return new DatasetId(datasetRef.getProjectId(),datasetRef.getDatasetId());
}
Program: 93175
Project: 93175
Buggy source:
/** 
 * Returns project's user-defined id
 */
public String project(){
  return project;
}

Fixed version (ground truth):
/** 
 * Returns project's user-defined id.
 */
public String project(){
  return project;
}
Program: 93176
Project: 93176
Buggy source:
public DatasetReference toPb(){
  return new DatasetReference().setProjectId(project).setDatasetId(dataset);
}

Fixed version (ground truth):
DatasetReference toPb(){
  return new DatasetReference().setProjectId(project).setDatasetId(dataset);
}
Program: 93177
Project: 93177
Buggy source:
@Override public Acl apply(Dataset.Access f){
  return Acl.fromPb(f);
}

Fixed version (ground truth):
@Override public Acl apply(Dataset.Access accessPb){
  return Acl.fromPb(accessPb);
}
Program: 93178
Project: 93178
Buggy source:
static DatasetInfo fromPb(Dataset datasetPb){
  Builder builder=builder(datasetPb.getDatasetReference().getProjectId(),datasetPb.getDatasetReference().getDatasetId());
  if (datasetPb.getAccess() != null) {
    builder.acl(Lists.transform(datasetPb.getAccess(),new Function<Dataset.Access,Acl>(){
      @Override public Acl apply(      Dataset.Access f){
        return Acl.fromPb(f);
      }
    }
));
  }
  if (datasetPb.getCreationTime() != null) {
    builder.creationTime(datasetPb.getCreationTime());
  }
  if (datasetPb.getDefaultTableExpirationMs() != null) {
    builder.defaultTableLifetime(datasetPb.getDefaultTableExpirationMs());
  }
  if (datasetPb.getDescription() != null) {
    builder.description(datasetPb.getDescription());
  }
  if (datasetPb.getEtag() != null) {
    builder.etag(datasetPb.getEtag());
  }
  if (datasetPb.getFriendlyName() != null) {
    builder.friendlyName(datasetPb.getFriendlyName());
  }
  if (datasetPb.getId() != null) {
    builder.id(datasetPb.getId());
  }
  if (datasetPb.getLastModifiedTime() != null) {
    builder.lastModified(datasetPb.getLastModifiedTime());
  }
  if (datasetPb.getLocation() != null) {
    builder.location(datasetPb.getLocation());
  }
  if (datasetPb.getSelfLink() != null) {
    builder.selfLink(datasetPb.getSelfLink());
  }
  return builder.build();
}

Fixed version (ground truth):
static DatasetInfo fromPb(Dataset datasetPb){
  Builder builder=builder(datasetPb.getDatasetReference().getProjectId(),datasetPb.getDatasetReference().getDatasetId());
  if (datasetPb.getAccess() != null) {
    builder.acl(Lists.transform(datasetPb.getAccess(),new Function<Dataset.Access,Acl>(){
      @Override public Acl apply(      Dataset.Access accessPb){
        return Acl.fromPb(accessPb);
      }
    }
));
  }
  if (datasetPb.getCreationTime() != null) {
    builder.creationTime(datasetPb.getCreationTime());
  }
  if (datasetPb.getDefaultTableExpirationMs() != null) {
    builder.defaultTableLifetime(datasetPb.getDefaultTableExpirationMs());
  }
  if (datasetPb.getDescription() != null) {
    builder.description(datasetPb.getDescription());
  }
  if (datasetPb.getEtag() != null) {
    builder.etag(datasetPb.getEtag());
  }
  if (datasetPb.getFriendlyName() != null) {
    builder.friendlyName(datasetPb.getFriendlyName());
  }
  if (datasetPb.getId() != null) {
    builder.id(datasetPb.getId());
  }
  if (datasetPb.getLastModifiedTime() != null) {
    builder.lastModified(datasetPb.getLastModifiedTime());
  }
  if (datasetPb.getLocation() != null) {
    builder.location(datasetPb.getLocation());
  }
  if (datasetPb.getSelfLink() != null) {
    builder.selfLink(datasetPb.getSelfLink());
  }
  return builder.build();
}
Program: 93179
Project: 93179
Buggy source:
@Override protected MoreObjects.ToStringHelper toStringHelper(){
  return super.toStringHelper().add("String_Node_Str",configuration).add("String_Node_Str",streamingBuffer);
}

Fixed version (ground truth):
@Override ToStringHelper toStringHelper(){
  return super.toStringHelper().add("String_Node_Str",configuration).add("String_Node_Str",streamingBuffer);
}
Program: 93180
Project: 93180
Buggy source:
private JobId(String project,String dataset){
  this.project=project;
  this.job=dataset;
}

Fixed version (ground truth):
private JobId(String project,String job){
  this.project=project;
  this.job=job;
}
Program: 93181
Project: 93181
Buggy source:
/** 
 * Returns project's user-defined id
 */
public String project(){
  return project;
}

Fixed version (ground truth):
/** 
 * Returns project's user-defined id.
 */
public String project(){
  return project;
}
Program: 93182
Project: 93182
Buggy source:
/** 
 * Creates BigQuery table given its type
 * @param tableId table id
 * @param schema the schema of the table
 */
public static BaseTableInfo of(TableId tableId,Schema schema){
  return builder(tableId,schema).build();
}

Fixed version (ground truth):
/** 
 * Creates BigQuery table given its type.
 * @param tableId table id
 * @param schema the schema of the table
 */
public static BaseTableInfo of(TableId tableId,Schema schema){
  return builder(tableId,schema).build();
}
Program: 93183
Project: 93183
Buggy source:
@Override protected MoreObjects.ToStringHelper toStringHelper(){
  return super.toStringHelper().add("String_Node_Str",location).add("String_Node_Str",streamingBuffer);
}

Fixed version (ground truth):
@Override ToStringHelper toStringHelper(){
  return super.toStringHelper().add("String_Node_Str",location).add("String_Node_Str",streamingBuffer);
}
Program: 93184
Project: 93184
Buggy source:
public static UserDefinedFunction fromPb(com.google.api.services.bigquery.model.UserDefinedFunctionResource pb){
  if (pb.getInlineCode() != null) {
    return new InlineFunction(pb.getInlineCode());
  }
  if (pb.getResourceUri() != null) {
    return new UriFunction(pb.getResourceUri());
  }
  throw new IllegalArgumentException("String_Node_Str");
}

Fixed version (ground truth):
static UserDefinedFunction fromPb(com.google.api.services.bigquery.model.UserDefinedFunctionResource pb){
  if (pb.getInlineCode() != null) {
    return new InlineFunction(pb.getInlineCode());
  }
  if (pb.getResourceUri() != null) {
    return new UriFunction(pb.getResourceUri());
  }
  throw new IllegalArgumentException("String_Node_Str");
}
Program: 93185
Project: 93185
Buggy source:
@Override public Iterable<T> values(){
  return results == null ? Collections.EMPTY_LIST : results;
}

Fixed version (ground truth):
@Override public Iterable<T> values(){
  return results == null ? Collections.<T>emptyList() : results;
}
Program: 93186
Project: 93186
Buggy source:
public ServiceRpcT rpc(){
  if (rpc == null) {
    rpc=serviceRpcFactory.create((OptionsT)this);
  }
  return rpc;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public ServiceRpcT rpc(){
  if (rpc == null) {
    rpc=serviceRpcFactory.create((OptionsT)this);
  }
  return rpc;
}
Program: 93187
Project: 93187
Buggy source:
private static <T>T newInstance(String className) throws IOException, ClassNotFoundException {
  try {
    return (T)Class.forName(className).newInstance();
  }
 catch (  InstantiationException|IllegalAccessException e) {
    throw new IOException(e);
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private static <T>T newInstance(String className) throws IOException, ClassNotFoundException {
  try {
    return (T)Class.forName(className).newInstance();
  }
 catch (  InstantiationException|IllegalAccessException e) {
    throw new IOException(e);
  }
}
Program: 93188
Project: 93188
Buggy source:
public ServiceT service(){
  if (service == null) {
    service=serviceFactory.create((OptionsT)this);
  }
  return service;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public ServiceT service(){
  if (service == null) {
    service=serviceFactory.create((OptionsT)this);
  }
  return service;
}
Program: 93189
Project: 93189
Buggy source:
@Override public Builder toBuilder(){
  return new Builder(this);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public Builder toBuilder(){
  return new Builder(this);
}
Program: 93190
Project: 93190
Buggy source:
@Override protected DatastoreRpcFactory defaultRpcFactory(){
  return DefaultDatastoreRpcFactory.INSTANCE;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected DatastoreRpcFactory defaultRpcFactory(){
  return DefaultDatastoreRpcFactory.INSTANCE;
}
Program: 93191
Project: 93191
Buggy source:
@Override protected DatastoreFactory defaultServiceFactory(){
  return DefaultDatastoreFactory.INSTANCE;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected DatastoreFactory defaultServiceFactory(){
  return DefaultDatastoreFactory.INSTANCE;
}
Program: 93192
Project: 93192
Buggy source:
@Before public void setUp() throws IOException, InterruptedException {
  datastoreRpcFactory=EasyMock.createMock(DatastoreRpcFactory.class);
  datastoreRpc=EasyMock.createMock(DatastoreRpc.class);
  options=DatastoreOptions.builder().normalizeDataset(false).serviceRpcFactory(datastoreRpcFactory).projectId(PROJECT_ID).host("String_Node_Str" + PORT);
  EasyMock.expect(datastoreRpcFactory.create(EasyMock.anyObject(DatastoreOptions.class))).andReturn(datastoreRpc).anyTimes();
  EasyMock.replay(datastoreRpcFactory,datastoreRpc);
}

Fixed version (ground truth):
@Before public void setUp(){
  datastoreRpcFactory=EasyMock.createMock(DatastoreRpcFactory.class);
  datastoreRpc=EasyMock.createMock(DatastoreRpc.class);
  options=DatastoreOptions.builder().normalizeDataset(false).serviceRpcFactory(datastoreRpcFactory).projectId(PROJECT_ID).host("String_Node_Str" + PORT);
  EasyMock.expect(datastoreRpcFactory.create(EasyMock.anyObject(DatastoreOptions.class))).andReturn(datastoreRpc).anyTimes();
  EasyMock.replay(datastoreRpcFactory,datastoreRpc);
}
Program: 93193
Project: 93193
Buggy source:
@Before public void setUp() throws IOException, InterruptedException {
  options=DatastoreOptions.builder().projectId(PROJECT_ID).host("String_Node_Str" + PORT).build();
  datastore=options.service();
  StructuredQuery<Key> query=Query.keyQueryBuilder().build();
  QueryResults<Key> result=datastore.run(query);
  datastore.delete(Iterators.toArray(result,Key.class));
  datastore.add(ENTITY1,ENTITY2);
}

Fixed version (ground truth):
@Before public void setUp(){
  options=DatastoreOptions.builder().projectId(PROJECT_ID).host("String_Node_Str" + PORT).build();
  datastore=options.service();
  StructuredQuery<Key> query=Query.keyQueryBuilder().build();
  QueryResults<Key> result=datastore.run(query);
  datastore.delete(Iterators.toArray(result,Key.class));
  datastore.add(ENTITY1,ENTITY2);
}
Program: 93194
Project: 93194
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Test public void testToBuilder() throws Exception {
  Set<String> content=Collections.singleton("String_Node_Str");
  ValueBuilder builder=new TestBuilder();
  builder.meaning(1).set(content).indexed(true);
  Value<?> value=builder.build();
  builder=value.toBuilder();
  assertEquals(Integer.valueOf(1),value.meaning());
  assertTrue(value.hasIndexed());
  assertTrue(value.indexed());
  assertEquals(ValueType.LIST,value.type());
  assertEquals(content,value.get());
  assertEquals(value,builder.build());
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Test public void testToBuilder() throws Exception {
  Set<String> content=Collections.singleton("String_Node_Str");
  @SuppressWarnings("String_Node_Str") ValueBuilder builder=new TestBuilder();
  builder.meaning(1).set(content).indexed(true);
  Value<?> value=builder.build();
  builder=value.toBuilder();
  assertEquals(Integer.valueOf(1),value.meaning());
  assertTrue(value.hasIndexed());
  assertTrue(value.indexed());
  assertEquals(ValueType.LIST,value.type());
  assertEquals(content,value.get());
  assertEquals(value,builder.build());
}
Program: 93195
Project: 93195
Buggy source:
@Override public Value<Set> build(){
  return new Value(this){
    @Override public TestBuilder toBuilder(){
      return new TestBuilder().mergeFrom(this);
    }
  }
;
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str"}) @Override public Value<Set> build(){
  return new Value(this){
    @Override public TestBuilder toBuilder(){
      return new TestBuilder().mergeFrom(this);
    }
  }
;
}
Program: 93196
Project: 93196
Buggy source:
@Override public Builder toBuilder(){
  return new Builder(this);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public Builder toBuilder(){
  return new Builder(this);
}
Program: 93197
Project: 93197
Buggy source:
@Override protected StorageRpcFactory defaultRpcFactory(){
  return DefaultStorageRpcFactory.INSTANCE;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected StorageRpcFactory defaultRpcFactory(){
  return DefaultStorageRpcFactory.INSTANCE;
}
Program: 93198
Project: 93198
Buggy source:
@Override protected StorageFactory defaultServiceFactory(){
  return DefaultStorageFactory.INSTANCE;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected StorageFactory defaultServiceFactory(){
  return DefaultStorageFactory.INSTANCE;
}
Program: 93199
Project: 93199
Buggy source:
@Test public void testSaveAndRestore() throws IOException, ClassNotFoundException {
  byte[] firstResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  byte[] secondResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  ByteBuffer firstReadBuffer=ByteBuffer.allocate(42);
  ByteBuffer secondReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  expect(storageRpcMock.read(BLOB_ID.toPb(),EMPTY_RPC_OPTIONS,0,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",firstResult));
  expect(storageRpcMock.read(BLOB_ID.toPb(),EMPTY_RPC_OPTIONS,42,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",secondResult));
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  reader.read(firstReadBuffer);
  RestorableState<BlobReadChannel> readerState=reader.capture();
  BlobReadChannel restoredReader=readerState.restore();
  restoredReader.read(secondReadBuffer);
  assertArrayEquals(Arrays.copyOf(firstResult,firstReadBuffer.capacity()),firstReadBuffer.array());
  assertArrayEquals(secondResult,secondReadBuffer.array());
}

Fixed version (ground truth):
@Test public void testSaveAndRestore() throws IOException {
  byte[] firstResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  byte[] secondResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  ByteBuffer firstReadBuffer=ByteBuffer.allocate(42);
  ByteBuffer secondReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  expect(storageRpcMock.read(BLOB_ID.toPb(),EMPTY_RPC_OPTIONS,0,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",firstResult));
  expect(storageRpcMock.read(BLOB_ID.toPb(),EMPTY_RPC_OPTIONS,42,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",secondResult));
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  reader.read(firstReadBuffer);
  RestorableState<BlobReadChannel> readerState=reader.capture();
  BlobReadChannel restoredReader=readerState.restore();
  restoredReader.read(secondReadBuffer);
  assertArrayEquals(Arrays.copyOf(firstResult,firstReadBuffer.capacity()),firstReadBuffer.array());
  assertArrayEquals(secondResult,secondReadBuffer.array());
}
Program: 93200
Project: 93200
Buggy source:
@Test public void testStateEquals(){
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  BlobReadChannel secondReader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  RestorableState<BlobReadChannel> state=reader.capture();
  RestorableState<BlobReadChannel> secondState=secondReader.capture();
  assertEquals(state,secondState);
  assertEquals(state.hashCode(),secondState.hashCode());
  assertEquals(state.toString(),secondState.toString());
}

Fixed version (ground truth):
@Test public void testStateEquals(){
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  @SuppressWarnings("String_Node_Str") BlobReadChannel secondReader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  RestorableState<BlobReadChannel> state=reader.capture();
  RestorableState<BlobReadChannel> secondState=secondReader.capture();
  assertEquals(state,secondState);
  assertEquals(state.hashCode(),secondState.hashCode());
  assertEquals(state.toString(),secondState.toString());
}
Program: 93201
Project: 93201
Buggy source:
@Before public void setUp() throws IOException, InterruptedException {
  rpcFactoryMock=createMock(StorageRpcFactory.class);
  storageRpcMock=createMock(StorageRpc.class);
  expect(rpcFactoryMock.create(anyObject(StorageOptions.class))).andReturn(storageRpcMock);
  replay(rpcFactoryMock);
  options=StorageOptions.builder().projectId("String_Node_Str").serviceRpcFactory(rpcFactoryMock).build();
}

Fixed version (ground truth):
@Before public void setUp(){
  rpcFactoryMock=createMock(StorageRpcFactory.class);
  storageRpcMock=createMock(StorageRpc.class);
  expect(rpcFactoryMock.create(anyObject(StorageOptions.class))).andReturn(storageRpcMock);
  replay(rpcFactoryMock);
  options=StorageOptions.builder().projectId("String_Node_Str").serviceRpcFactory(rpcFactoryMock).build();
}
Program: 93202
Project: 93202
Buggy source:
@Test public void testReadGenerationChanged() throws IOException {
  BlobId blobId=BlobId.of(BUCKET_NAME,BLOB_NAME);
  reader=new BlobReadChannelImpl(options,blobId,EMPTY_RPC_OPTIONS);
  byte[] firstResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  byte[] secondResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  ByteBuffer firstReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  ByteBuffer secondReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  expect(storageRpcMock.read(blobId.toPb(),EMPTY_RPC_OPTIONS,0,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",firstResult));
  expect(storageRpcMock.read(blobId.toPb(),EMPTY_RPC_OPTIONS,DEFAULT_CHUNK_SIZE,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",firstResult));
  replay(storageRpcMock);
  reader.read(firstReadBuffer);
  try {
    reader.read(secondReadBuffer);
    fail("String_Node_Str");
  }
 catch (  StorageException ex) {
    StringBuilder messageBuilder=new StringBuilder();
    messageBuilder.append("String_Node_Str").append(blobId).append("String_Node_Str");
    assertEquals(messageBuilder.toString(),ex.getMessage());
  }
}

Fixed version (ground truth):
@Test public void testReadGenerationChanged() throws IOException {
  BlobId blobId=BlobId.of(BUCKET_NAME,BLOB_NAME);
  reader=new BlobReadChannelImpl(options,blobId,EMPTY_RPC_OPTIONS);
  byte[] firstResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  byte[] secondResult=randomByteArray(DEFAULT_CHUNK_SIZE);
  ByteBuffer firstReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  ByteBuffer secondReadBuffer=ByteBuffer.allocate(DEFAULT_CHUNK_SIZE);
  expect(storageRpcMock.read(blobId.toPb(),EMPTY_RPC_OPTIONS,0,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",firstResult));
  expect(storageRpcMock.read(blobId.toPb(),EMPTY_RPC_OPTIONS,DEFAULT_CHUNK_SIZE,DEFAULT_CHUNK_SIZE)).andReturn(StorageRpc.Tuple.of("String_Node_Str",secondResult));
  replay(storageRpcMock);
  reader.read(firstReadBuffer);
  try {
    reader.read(secondReadBuffer);
    fail("String_Node_Str");
  }
 catch (  StorageException ex) {
    StringBuilder messageBuilder=new StringBuilder();
    messageBuilder.append("String_Node_Str").append(blobId).append("String_Node_Str");
    assertEquals(messageBuilder.toString(),ex.getMessage());
  }
}
Program: 93203
Project: 93203
Buggy source:
@Test public void testClose() throws IOException {
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  assertTrue(reader.isOpen());
  reader.close();
  assertTrue(!reader.isOpen());
}

Fixed version (ground truth):
@Test public void testClose(){
  replay(storageRpcMock);
  reader=new BlobReadChannelImpl(options,BLOB_ID,EMPTY_RPC_OPTIONS);
  assertTrue(reader.isOpen());
  reader.close();
  assertTrue(!reader.isOpen());
}
Program: 93204
Project: 93204
Buggy source:
@Test public void testCopyToBlobId() throws Exception {
  BlobId targetId=BlobId.of("String_Node_Str","String_Node_Str");
  CopyWriter copyWriter=createMock(CopyWriter.class);
  BlobInfo target=BLOB_INFO.builder(targetId).build();
  Capture<CopyRequest> capturedCopyRequest=Capture.newInstance();
  expect(storage.copy(capture(capturedCopyRequest))).andReturn(copyWriter);
  replay(storage);
  CopyWriter returnedCopyWriter=blob.copyTo(targetId);
  assertEquals(copyWriter,returnedCopyWriter);
  assertEquals(capturedCopyRequest.getValue().source(),blob.id());
  assertEquals(capturedCopyRequest.getValue().target(),target);
  assertTrue(capturedCopyRequest.getValue().sourceOptions().isEmpty());
  assertTrue(capturedCopyRequest.getValue().targetOptions().isEmpty());
}

Fixed version (ground truth):
@Test public void testCopyToBlobId() throws Exception {
  BlobId targetId=BlobId.of("String_Node_Str","String_Node_Str");
  CopyWriter copyWriter=createMock(CopyWriter.class);
  BlobInfo target=BlobInfo.builder(targetId).build();
  Capture<CopyRequest> capturedCopyRequest=Capture.newInstance();
  expect(storage.copy(capture(capturedCopyRequest))).andReturn(copyWriter);
  replay(storage);
  CopyWriter returnedCopyWriter=blob.copyTo(targetId);
  assertEquals(copyWriter,returnedCopyWriter);
  assertEquals(capturedCopyRequest.getValue().source(),blob.id());
  assertEquals(capturedCopyRequest.getValue().target(),target);
  assertTrue(capturedCopyRequest.getValue().sourceOptions().isEmpty());
  assertTrue(capturedCopyRequest.getValue().targetOptions().isEmpty());
}
Program: 93205
Project: 93205
Buggy source:
@Test public void testStateEquals(){
  expect(storageRpcMock.open(BLOB_INFO.toPb(),EMPTY_RPC_OPTIONS)).andReturn(UPLOAD_ID).times(2);
  replay(storageRpcMock);
  writer=new BlobWriteChannelImpl(options,BLOB_INFO,EMPTY_RPC_OPTIONS);
  BlobWriteChannel writer2=new BlobWriteChannelImpl(options,BLOB_INFO,EMPTY_RPC_OPTIONS);
  RestorableState<BlobWriteChannel> state=writer.capture();
  RestorableState<BlobWriteChannel> state2=writer2.capture();
  assertEquals(state,state2);
  assertEquals(state.hashCode(),state2.hashCode());
  assertEquals(state.toString(),state2.toString());
}

Fixed version (ground truth):
@Test public void testStateEquals(){
  expect(storageRpcMock.open(BLOB_INFO.toPb(),EMPTY_RPC_OPTIONS)).andReturn(UPLOAD_ID).times(2);
  replay(storageRpcMock);
  writer=new BlobWriteChannelImpl(options,BLOB_INFO,EMPTY_RPC_OPTIONS);
  @SuppressWarnings("String_Node_Str") BlobWriteChannel writer2=new BlobWriteChannelImpl(options,BLOB_INFO,EMPTY_RPC_OPTIONS);
  RestorableState<BlobWriteChannel> state=writer.capture();
  RestorableState<BlobWriteChannel> state2=writer2.capture();
  assertEquals(state,state2);
  assertEquals(state.hashCode(),state2.hashCode());
  assertEquals(state.toString(),state2.toString());
}
Program: 93206
Project: 93206
Buggy source:
@Before public void setUp() throws IOException, InterruptedException {
  rpcFactoryMock=createMock(StorageRpcFactory.class);
  storageRpcMock=createMock(StorageRpc.class);
  expect(rpcFactoryMock.create(anyObject(StorageOptions.class))).andReturn(storageRpcMock);
  replay(rpcFactoryMock);
  options=StorageOptions.builder().projectId("String_Node_Str").serviceRpcFactory(rpcFactoryMock).build();
}

Fixed version (ground truth):
@Before public void setUp(){
  rpcFactoryMock=createMock(StorageRpcFactory.class);
  storageRpcMock=createMock(StorageRpc.class);
  expect(rpcFactoryMock.create(anyObject(StorageOptions.class))).andReturn(storageRpcMock);
  replay(rpcFactoryMock);
  options=StorageOptions.builder().projectId("String_Node_Str").serviceRpcFactory(rpcFactoryMock).build();
}
Program: 93207
Project: 93207
Buggy source:
@Test public void testGetAll() throws Exception {
  Capture<BatchRequest> capturedBatchRequest=Capture.newInstance();
  List<Result<BlobInfo>> batchResultList=new LinkedList<>();
  for (  BlobInfo info : BLOB_INFO_RESULTS) {
    batchResultList.add(new Result<>(info));
  }
  BatchResponse response=new BatchResponse(Collections.EMPTY_LIST,Collections.EMPTY_LIST,batchResultList);
  expect(storage.apply(capture(capturedBatchRequest))).andReturn(response);
  replay(storage);
  List<Blob> blobs=bucket.get("String_Node_Str","String_Node_Str","String_Node_Str");
  Set<BlobId> blobInfoSet=capturedBatchRequest.getValue().toGet().keySet();
  assertEquals(batchResultList.size(),blobInfoSet.size());
  for (  BlobInfo info : BLOB_INFO_RESULTS) {
    assertTrue(blobInfoSet.contains(info.blobId()));
  }
  Iterator<Blob> blobIterator=blobs.iterator();
  Iterator<Result<BlobInfo>> batchResultIterator=response.gets().iterator();
  while (batchResultIterator.hasNext() && blobIterator.hasNext()) {
    assertEquals(batchResultIterator.next().get(),blobIterator.next().info());
  }
  assertFalse(batchResultIterator.hasNext());
  assertFalse(blobIterator.hasNext());
}

Fixed version (ground truth):
@Test public void testGetAll() throws Exception {
  Capture<BatchRequest> capturedBatchRequest=Capture.newInstance();
  List<Result<BlobInfo>> batchResultList=new LinkedList<>();
  for (  BlobInfo info : BLOB_INFO_RESULTS) {
    batchResultList.add(new Result<>(info));
  }
  BatchResponse response=new BatchResponse(Collections.<Result<Boolean>>emptyList(),Collections.<Result<BlobInfo>>emptyList(),batchResultList);
  expect(storage.apply(capture(capturedBatchRequest))).andReturn(response);
  replay(storage);
  List<Blob> blobs=bucket.get("String_Node_Str","String_Node_Str","String_Node_Str");
  Set<BlobId> blobInfoSet=capturedBatchRequest.getValue().toGet().keySet();
  assertEquals(batchResultList.size(),blobInfoSet.size());
  for (  BlobInfo info : BLOB_INFO_RESULTS) {
    assertTrue(blobInfoSet.contains(info.blobId()));
  }
  Iterator<Blob> blobIterator=blobs.iterator();
  Iterator<Result<BlobInfo>> batchResultIterator=response.gets().iterator();
  while (batchResultIterator.hasNext() && blobIterator.hasNext()) {
    assertEquals(batchResultIterator.next().get(),blobIterator.next().info());
  }
  assertFalse(batchResultIterator.hasNext());
  assertFalse(blobIterator.hasNext());
}
Program: 93208
Project: 93208
Buggy source:
/** 
 * Sends a job cancel request. This call will return immediately. The client will need to poll for the job status using either   {@link #getJob(JobId,JobOption)} or{@link #getJob(String,JobOption)}) to see if the cancel operation completed successfully.
 * @return {@code true} if cancel was requested successfully, {@code false} if the job was notfound
 * @throws BigQueryException upon failure
 */
boolean cancel(JobId tableId) throws BigQueryException ;

Fixed version (ground truth):
/** 
 * Sends a job cancel request. This call will return immediately. The job status can then be checked using either   {@link #getJob(JobId,JobOption)} or{@link #getJob(String,JobOption)}).
 * @return {@code true} if cancel was requested successfully, {@code false} if the job was notfound
 * @throws BigQueryException upon failure
 */
boolean cancel(JobId tableId) throws BigQueryException ;
Program: 93209
Project: 93209
Buggy source:
/** 
 * Returns an option that sets the zero-based index of the row from which to start listing query results.
 */
public static QueryResultsOption startIndex(Long startIndex){
  return new QueryResultsOption(BigQueryRpc.Option.START_INDEX,startIndex);
}

Fixed version (ground truth):
/** 
 * Returns an option that sets the zero-based index of the row from which to start getting query results.
 */
public static QueryResultsOption startIndex(long startIndex){
  checkArgument(startIndex >= 0);
  return new QueryResultsOption(BigQueryRpc.Option.START_INDEX,startIndex);
}
Program: 93210
Project: 93210
Buggy source:
/** 
 * Returns an option to list only jobs that match the provided filters.
 */
public static JobListOption stateFilter(JobStatus.State... stateFilters){
  List<String> stringFilters=Lists.transform(ImmutableList.copyOf(stateFilters),new Function<JobStatus.State,String>(){
    @Override public String apply(    JobStatus.State state){
      return state.toString().toLowerCase();
    }
  }
);
  return new JobListOption(BigQueryRpc.Option.STATE_FILTER,stringFilters);
}

Fixed version (ground truth):
/** 
 * Returns an option to list only jobs that match the provided state filters.
 */
public static JobListOption stateFilter(JobStatus.State... stateFilters){
  List<String> stringFilters=Lists.transform(ImmutableList.copyOf(stateFilters),new Function<JobStatus.State,String>(){
    @Override public String apply(    JobStatus.State state){
      return state.name().toLowerCase();
    }
  }
);
  return new JobListOption(BigQueryRpc.Option.STATE_FILTER,stringFilters);
}
Program: 93211
Project: 93211
Buggy source:
/** 
 * Returns an option to specify the maximum number of rows to be returned.
 */
public static QueryResultsOption maxResults(long maxResults){
  return new QueryResultsOption(BigQueryRpc.Option.MAX_RESULTS,maxResults);
}

Fixed version (ground truth):
/** 
 * Returns an option to specify the maximum number of rows to be returned.
 */
public static QueryResultsOption maxResults(long maxResults){
  checkArgument(maxResults >= 0);
  return new QueryResultsOption(BigQueryRpc.Option.MAX_RESULTS,maxResults);
}
Program: 93212
Project: 93212
Buggy source:
static String selector(JobField... fields){
  HashSet<String> fieldStrings=Sets.newHashSetWithExpectedSize(fields.length + 2);
  fieldStrings.add(JOB_REFERENCE.selector());
  fieldStrings.add(CONFIGURATION.selector());
  for (  JobField field : fields) {
    fieldStrings.add(field.selector());
  }
  return com.google.common.base.Joiner.on(',').join(fieldStrings);
}

Fixed version (ground truth):
static String selector(JobField... fields){
  Set<String> fieldStrings=Sets.newHashSetWithExpectedSize(fields.length + 2);
  fieldStrings.add(JOB_REFERENCE.selector());
  fieldStrings.add(CONFIGURATION.selector());
  for (  JobField field : fields) {
    fieldStrings.add(field.selector());
  }
  return Joiner.on(',').join(fieldStrings);
}
Program: 93213
Project: 93213
Buggy source:
/** 
 * Returns an option to specify the page token from which to start listing query results.
 */
public static QueryResultsOption startPageToken(String pageToken){
  return new QueryResultsOption(BigQueryRpc.Option.PAGE_TOKEN,pageToken);
}

Fixed version (ground truth):
/** 
 * Returns an option to specify the page token from which to start getting query results.
 */
public static QueryResultsOption startPageToken(String pageToken){
  return new QueryResultsOption(BigQueryRpc.Option.PAGE_TOKEN,pageToken);
}
Program: 93214
Project: 93214
Buggy source:
/** 
 * Returns results of the query associated to the provided job.
 * @throws BigQueryException upon failure
 */
QueryResponse getQueryResults(JobId job,QueryResultsOption... options) throws BigQueryException ;

Fixed version (ground truth):
/** 
 * Returns results of the query associated with the provided job.
 * @throws BigQueryException upon failure
 */
QueryResponse getQueryResults(JobId job,QueryResultsOption... options) throws BigQueryException ;
Program: 93215
Project: 93215
Buggy source:
/** 
 * Lists the dataset's tables.
 * @throws BigQueryException upon failure
 */
Page<JobInfo> listJobs(JobListOption... options) throws BigQueryException ;

Fixed version (ground truth):
/** 
 * Lists the jobs.
 * @throws BigQueryException upon failure
 */
Page<JobInfo> listJobs(JobListOption... options) throws BigQueryException ;
Program: 93216
Project: 93216
Buggy source:
@Override public String apply(JobStatus.State state){
  return state.toString().toLowerCase();
}

Fixed version (ground truth):
@Override public String apply(JobStatus.State state){
  return state.name().toLowerCase();
}
Program: 93217
Project: 93217
Buggy source:
/** 
 * Returns an option that sets how long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes,  {@link QueryResponse#jobComplete()} will be {@code false}.
 */
public static QueryResultsOption maxWaitTime(Long maxWaitTime){
  return new QueryResultsOption(BigQueryRpc.Option.TIMEOUT,maxWaitTime);
}

Fixed version (ground truth):
/** 
 * Returns an option that sets how long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes,  {@link QueryResponse#jobComplete()} will be {@code false}.
 */
public static QueryResultsOption maxWaitTime(long maxWaitTime){
  checkArgument(maxWaitTime >= 0);
  return new QueryResultsOption(BigQueryRpc.Option.TIMEOUT,maxWaitTime);
}
Program: 93218
Project: 93218
Buggy source:
/** 
 * Runs the query associated to the request.
 * @throws BigQueryException upon failure
 */
QueryResponse query(QueryRequest request) throws BigQueryException ;

Fixed version (ground truth):
/** 
 * Runs the query associated with the request.
 * @throws BigQueryException upon failure
 */
QueryResponse query(QueryRequest request) throws BigQueryException ;
Program: 93219
Project: 93219
Buggy source:
/** 
 * Lists the project's datasets. This method returns partial information on each dataset (  {@link DatasetInfo#datasetId()} ()}, {@link DatasetInfo#friendlyName()} and{@link DatasetInfo#id()}). To get complete information use either  {@link #getDataset(String,DatasetOption)} or{@link #getDataset(DatasetId,DatasetOption)}.
 * @throws BigQueryException upon failure
 */
Page<DatasetInfo> listDatasets(DatasetListOption... options) throws BigQueryException ;

Fixed version (ground truth):
/** 
 * Lists the project's datasets. This method returns partial information on each dataset (  {@link DatasetInfo#datasetId()},   {@link DatasetInfo#friendlyName()} and{@link DatasetInfo#id()}). To get complete information use either  {@link #getDataset(String,DatasetOption)} or{@link #getDataset(DatasetId,DatasetOption)}.
 * @throws BigQueryException upon failure
 */
Page<DatasetInfo> listDatasets(DatasetListOption... options) throws BigQueryException ;
Program: 93220
Project: 93220
Buggy source:
/** 
 * Returns an option to specify the job's fields to be returned by the RPC call. If this option is not provided all job's fields are returned.   {@code JobOption.fields}) can be used to specify only the fields of interest.   {@link JobInfo#jobId()} as well as type-specificconfiguration (e.g.  {@link QueryJobInfo#query()} for Query Jobs) are always returned, even ifnot specified.
 */
public static JobOption fields(JobField... fields){
  return new JobOption(BigQueryRpc.Option.FIELDS,JobField.selector(fields));
}

Fixed version (ground truth):
/** 
 * Returns an option to specify the job's fields to be returned by the RPC call. If this option is not provided all job's fields are returned.   {@code JobOption.fields()} can be used tospecify only the fields of interest.  {@link JobInfo#jobId()} as well as type-specificconfiguration (e.g.  {@link QueryJobInfo#query()} for Query Jobs) are always returned, even ifnot specified.
 */
public static JobOption fields(JobField... fields){
  return new JobOption(BigQueryRpc.Option.FIELDS,JobField.selector(fields));
}
Program: 93221
Project: 93221
Buggy source:
@Override public InsertAllResponse insertAll(InsertAllRequest request) throws BigQueryException {
  final TableId tableId=request.table();
  final TableDataInsertAllRequest requestPb=new TableDataInsertAllRequest();
  requestPb.setIgnoreUnknownValues(request.ignoreUnknownValues());
  requestPb.setSkipInvalidRows(request.skipInvalidRows());
  List<Rows> rowsPb=Lists.transform(request.rows(),new Function<RowToInsert,Rows>(){
    @Override public Rows apply(    RowToInsert rowToInsert){
      return new Rows().setInsertId(rowToInsert.id()).setJson(rowToInsert.content());
    }
  }
);
  requestPb.setRows(rowsPb);
  try {
    return InsertAllResponse.fromPb(runWithRetries(new Callable<TableDataInsertAllResponse>(){
      @Override public TableDataInsertAllResponse call(){
        return bigQueryRpc.insertAll(tableId.dataset(),tableId.table(),requestPb);
      }
    }
,options().retryParams(),EXCEPTION_HANDLER));
  }
 catch (  RetryHelper.RetryHelperException e) {
    throw BigQueryException.translateAndThrow(e);
  }
}

Fixed version (ground truth):
@Override public InsertAllResponse insertAll(InsertAllRequest request) throws BigQueryException {
  final TableId tableId=request.table();
  final TableDataInsertAllRequest requestPb=new TableDataInsertAllRequest();
  requestPb.setIgnoreUnknownValues(request.ignoreUnknownValues());
  requestPb.setSkipInvalidRows(request.skipInvalidRows());
  List<Rows> rowsPb=Lists.transform(request.rows(),new Function<RowToInsert,Rows>(){
    @Override public Rows apply(    RowToInsert rowToInsert){
      return new Rows().setInsertId(rowToInsert.id()).setJson(rowToInsert.content());
    }
  }
);
  requestPb.setRows(rowsPb);
  return InsertAllResponse.fromPb(bigQueryRpc.insertAll(tableId.dataset(),tableId.table(),requestPb));
}
Program: 93222
Project: 93222
Buggy source:
/** 
 * Returns this field's value as a list of   {@link FieldValue}. This method should only be used if the corresponding field has   {@link Field.Mode#REPEATED} mode (i.e. {@link #attribute()} is{@link Attribute#REPEATED}).
 * @throws ClassCastException if the field has not {@link Field.Mode#REPEATED} mode
 */
@SuppressWarnings("String_Node_Str") public List<FieldValue> repeatedValue(){
  return (List<FieldValue>)value;
}

Fixed version (ground truth):
/** 
 * Returns this field's value as a list of   {@link FieldValue}. This method should only be used if the corresponding field has   {@link Field.Mode#REPEATED} mode (i.e. {@link #attribute()} is{@link Attribute#REPEATED}).
 * @throws ClassCastException if the field has not {@link Field.Mode#REPEATED} mode
 * @throws NullPointerException if {@link #isNull()} returns {@code true}
 */
@SuppressWarnings("String_Node_Str") public List<FieldValue> repeatedValue(){
  checkNotNull(value);
  return (List<FieldValue>)value;
}
Program: 93223
Project: 93223
Buggy source:
/** 
 * Returns this field's value as a   {@link String}. This method should only be used if the corresponding field has primitive type (  {@link Field.Type#bool()},   {@link Field.Type#string()},  {@link Field.Type#floatingPoint()},   {@link Field.Type#integer()},  {@link Field.Type#timestamp()}).
 * @throws ClassCastException if the field is not a primitive type
 */
@SuppressWarnings("String_Node_Str") public String stringValue(){
  return (String)value;
}

Fixed version (ground truth):
/** 
 * Returns this field's value as a   {@link String}. This method should only be used if the corresponding field has primitive type (  {@link Field.Type#bool()},   {@link Field.Type#string()},  {@link Field.Type#floatingPoint()},   {@link Field.Type#integer()},  {@link Field.Type#timestamp()}).
 * @throws ClassCastException if the field is not a primitive type
 * @throws NullPointerException if {@link #isNull()} returns {@code true}
 */
@SuppressWarnings("String_Node_Str") public String stringValue(){
  checkNotNull(value);
  return (String)value;
}
Program: 93224
Project: 93224
Buggy source:
/** 
 * Returns this field's value as a   {@link Boolean}. This method should only be used if the corresponding field has   {@link Field.Type#bool()} type.
 * @throws ClassCastException if the field is not a primitive type
 * @throws IllegalStateException if the field's value could not be converted to {@link Boolean}
 * @throws NullPointerException if {@link #isNull()} returns {@code true}
 */
@SuppressWarnings("String_Node_Str") public boolean booleanValue(){
  String stringValue=stringValue();
  checkNotNull(stringValue);
  checkState(stringValue.equalsIgnoreCase("String_Node_Str") || stringValue.equalsIgnoreCase("String_Node_Str"),"String_Node_Str");
  return Boolean.parseBoolean(stringValue);
}

Fixed version (ground truth):
/** 
 * Returns this field's value as a   {@link Boolean}. This method should only be used if the corresponding field has   {@link Field.Type#bool()} type.
 * @throws ClassCastException if the field is not a primitive type
 * @throws IllegalStateException if the field's value could not be converted to {@link Boolean}
 * @throws NullPointerException if {@link #isNull()} returns {@code true}
 */
@SuppressWarnings("String_Node_Str") public boolean booleanValue(){
  String stringValue=stringValue();
  checkState(stringValue.equalsIgnoreCase("String_Node_Str") || stringValue.equalsIgnoreCase("String_Node_Str"),"String_Node_Str");
  return Boolean.parseBoolean(stringValue);
}
Program: 93225
Project: 93225
Buggy source:
/** 
 * Returns this field's value as an   {@link Object}.
 */
public Object value(){
  return value;
}

Fixed version (ground truth):
/** 
 * Returns this field's value as an   {@link Object}. If   {@link #isNull()} is {@code true} thismethod returns  {@code null}.
 */
public Object value(){
  return value;
}
Program: 93226
Project: 93226
Buggy source:
/** 
 * Returns this field's value as a list of   {@link FieldValue}. This method should only be used if the corresponding field has   {@link Field.Type#record(Field)} type (i.e. {@link #attribute()}is   {@link Attribute#RECORD}).
 * @throws ClassCastException if the field is not a {@link Field.Type#record(Field)} type
 */
@SuppressWarnings("String_Node_Str") public List<FieldValue> recordValue(){
  return (List<FieldValue>)value;
}

Fixed version (ground truth):
/** 
 * Returns this field's value as a list of   {@link FieldValue}. This method should only be used if the corresponding field has   {@link Field.Type#record(Field)} type (i.e. {@link #attribute()}is   {@link Attribute#RECORD}).
 * @throws ClassCastException if the field is not a {@link Field.Type#record(Field)} type
 * @throws NullPointerException if {@link #isNull()} returns {@code true}
 */
@SuppressWarnings("String_Node_Str") public List<FieldValue> recordValue(){
  checkNotNull(value);
  return (List<FieldValue>)value;
}
Program: 93227
Project: 93227
Buggy source:
/** 
 * Adds a row to be inserted without an associated id. <p> Example usage of adding a row without an associated id: <pre>      {@code InsertAllRequest.Builder builder = InsertAllRequest.builder(tableId); List<Long> repeatedFieldValue = Arrays.asList(1L, 2L); Map<String, Object> recordContent = new HashMap<String, Object>(); recordContent.put("subfieldName1", "value"); recordContent.put("subfieldName2", repeatedFieldValue); Map<String, Object> rowContent = new HashMap<String, Object>(); rowContent.put("fieldName1", true); rowContent.put("fieldName2", recordContent); builder.addRow(rowContent);}</pre>
 */
public Builder addRow(Map<String,Object> content){
  addRow(new RowToInsert(null,content));
  return this;
}

Fixed version (ground truth):
/** 
 * Adds a row to be inserted without an associated id. <p>Example usage of adding a row without an associated id: <pre>      {@code InsertAllRequest.Builder builder = InsertAllRequest.builder(tableId); List<Long> repeatedFieldValue = Arrays.asList(1L, 2L); Map<String, Object> recordContent = new HashMap<String, Object>(); recordContent.put("subfieldName1", "value"); recordContent.put("subfieldName2", repeatedFieldValue); Map<String, Object> rowContent = new HashMap<String, Object>(); rowContent.put("fieldName1", true); rowContent.put("fieldName2", recordContent); builder.addRow(rowContent);}</pre>
 */
public Builder addRow(Map<String,Object> content){
  addRow(new RowToInsert(null,content));
  return this;
}
Program: 93228
Project: 93228
Buggy source:
@Override public Tuple<String,Iterable<Table>> listTables(String datasetId,Map<Option,?> options) throws BigQueryException {
  try {
    TableList tableList=bigquery.tables().list(this.options.projectId(),datasetId).setQuotaUser(QUOTA_USER.getString(options)).setUserIp(USER_IP.getString(options)).setMaxResults(MAX_RESULTS.getLong(options)).setPageToken(PAGE_TOKEN.getString(options)).execute();
    return Tuple.of(tableList.getNextPageToken(),Iterables.transform(tableList.getTables(),new Function<TableList.Tables,Table>(){
      @Override public Table apply(      TableList.Tables f){
        return new Table().setFriendlyName(f.getFriendlyName()).setId(f.getId()).setKind(f.getKind()).setTableReference(f.getTableReference()).setType(f.getType());
      }
    }
));
  }
 catch (  IOException ex) {
    throw translate(ex);
  }
}

Fixed version (ground truth):
@Override public Tuple<String,Iterable<Table>> listTables(String datasetId,Map<Option,?> options) throws BigQueryException {
  try {
    TableList tableList=bigquery.tables().list(this.options.projectId(),datasetId).setQuotaUser(QUOTA_USER.getString(options)).setUserIp(USER_IP.getString(options)).setMaxResults(MAX_RESULTS.getLong(options)).setPageToken(PAGE_TOKEN.getString(options)).execute();
    Iterable<TableList.Tables> tables=tableList.getTables();
    return Tuple.of(tableList.getNextPageToken(),Iterables.transform(tables != null ? tables : ImmutableList.<TableList.Tables>of(),new Function<TableList.Tables,Table>(){
      @Override public Table apply(      TableList.Tables f){
        return new Table().setFriendlyName(f.getFriendlyName()).setId(f.getId()).setKind(f.getKind()).setTableReference(f.getTableReference()).setType(f.getType());
      }
    }
));
  }
 catch (  IOException ex) {
    throw translate(ex);
  }
}