nus-yam/ex-repair huggingface dataset:
Program: 132235
Project: 132235
Buggy source:
public static void removeServiceFunctionFromChain(ServiceFunction serviceFunction){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  ServiceFunctionChains serviceFunctionChains=getServiceFunctionChainsRef();
  if (serviceFunctionChains != null) {
    List<ServiceFunctionChain> serviceFunctionChainList=serviceFunctionChains.getServiceFunctionChain();
    InstanceIdentifier<SfcServiceFunction> sfIID;
    SfcServiceFunctionKey serviceFunctionKey;
    for (    ServiceFunctionChain serviceFunctionChain : serviceFunctionChainList) {
      serviceFunctionKey=new SfcServiceFunctionKey(serviceFunction.getName());
      sfIID=InstanceIdentifier.builder(ServiceFunctionChains.class).child(ServiceFunctionChain.class,serviceFunctionChain.getKey()).child(SfcServiceFunction.class,serviceFunctionKey).build();
      final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
      t.removeConfigurationData(sfIID);
      try {
        t.commit().get();
      }
 catch (      InterruptedException|ExecutionException e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
 else {
    LOG.warn("String_Node_Str");
  }
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}

Fixed version (ground truth):
public static void removeServiceFunctionFromChain(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  ServiceFunctionChains serviceFunctionChains=getServiceFunctionChainsRef();
  if (serviceFunctionChains != null) {
    List<ServiceFunctionChain> serviceFunctionChainList=serviceFunctionChains.getServiceFunctionChain();
    InstanceIdentifier<SfcServiceFunction> sfIID;
    SfcServiceFunctionKey serviceFunctionKey;
    for (    ServiceFunctionChain serviceFunctionChain : serviceFunctionChainList) {
      serviceFunctionKey=new SfcServiceFunctionKey(serviceFunction.getName());
      sfIID=InstanceIdentifier.builder(ServiceFunctionChains.class).child(ServiceFunctionChain.class,serviceFunctionChain.getKey()).child(SfcServiceFunction.class,serviceFunctionKey).build();
      final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
      t.removeConfigurationData(sfIID);
      try {
        t.commit().get();
      }
 catch (      InterruptedException|ExecutionException e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
 else {
    LOG.warn("String_Node_Str");
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}
Program: 132236
Project: 132236
Buggy source:
public void addChainToChainState(ServiceFunctionChain serviceFunctionChain){
  ServiceFunctionChainStateKey serviceFunctionChainStateKey=new ServiceFunctionChainStateKey(serviceFunctionChain.getName());
  InstanceIdentifier<ServiceFunctionChainState> sfcoIID=InstanceIdentifier.builder(ServiceFunctionChainsState.class).child(ServiceFunctionChainState.class,serviceFunctionChainStateKey).build();
  ServiceFunctionChainStateBuilder serviceFunctionChainStateBuilder=new ServiceFunctionChainStateBuilder();
  serviceFunctionChainStateBuilder.setName(serviceFunctionChain.getName());
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.putOperationalData(sfcoIID,serviceFunctionChainStateBuilder.build());
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.error("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void addChainToChainState(ServiceFunctionChain serviceFunctionChain){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  ServiceFunctionChainStateKey serviceFunctionChainStateKey=new ServiceFunctionChainStateKey(serviceFunctionChain.getName());
  InstanceIdentifier<ServiceFunctionChainState> sfcoIID=InstanceIdentifier.builder(ServiceFunctionChainsState.class).child(ServiceFunctionChainState.class,serviceFunctionChainStateKey).build();
  ServiceFunctionChainStateBuilder serviceFunctionChainStateBuilder=new ServiceFunctionChainStateBuilder();
  serviceFunctionChainStateBuilder.setName(serviceFunctionChain.getName());
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.putOperationalData(sfcoIID,serviceFunctionChainStateBuilder.build());
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.error("String_Node_Str",e);
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}
Program: 132237
Project: 132237
Buggy source:
public static ServiceFunctionChains getServiceFunctionChainsRef(){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionChains> sfcsIID;
  sfcsIID=InstanceIdentifier.builder(ServiceFunctionChains.class).build();
  DataObject dataObject=odlSfc.dataProvider.readConfigurationData(sfcsIID);
  if (dataObject instanceof ServiceFunctionChains) {
    ServiceFunctionChains serviceFunctionChains=(ServiceFunctionChains)dataObject;
    LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return serviceFunctionChains;
  }
 else {
    LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return null;
  }
}

Fixed version (ground truth):
public static ServiceFunctionChains getServiceFunctionChainsRef(){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionChains> sfcsIID;
  sfcsIID=InstanceIdentifier.builder(ServiceFunctionChains.class).build();
  DataObject dataObject=odlSfc.dataProvider.readConfigurationData(sfcsIID);
  if (dataObject instanceof ServiceFunctionChains) {
    ServiceFunctionChains serviceFunctionChains=(ServiceFunctionChains)dataObject;
    LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return serviceFunctionChains;
  }
 else {
    LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return null;
  }
}
Program: 132239
Project: 132239
Buggy source:
public void deleteServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionForwarder> sffIID;
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).build();
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}

Fixed version (ground truth):
public void deleteServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionForwarder> sffIID;
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).build();
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}
Program: 132240
Project: 132240
Buggy source:
public static ServiceFunctionForwarder readServiceFunctionForwarder(String name){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(name);
  InstanceIdentifier<ServiceFunctionForwarder> sffIID;
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).build();
  DataObject dataObject=odlSfc.dataProvider.readConfigurationData(sffIID);
  if (dataObject instanceof ServiceFunctionForwarder) {
    ServiceFunctionForwarder serviceFunctionForwarder=(ServiceFunctionForwarder)dataObject;
    return serviceFunctionForwarder;
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
public static ServiceFunctionForwarder readServiceFunctionForwarder(String name){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(name);
  InstanceIdentifier<ServiceFunctionForwarder> sffIID;
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).build();
  DataObject dataObject=odlSfc.dataProvider.readConfigurationData(sffIID);
  if (dataObject instanceof ServiceFunctionForwarder) {
    ServiceFunctionForwarder serviceFunctionForwarder=(ServiceFunctionForwarder)dataObject;
    return serviceFunctionForwarder;
  }
 else {
    return null;
  }
}
Program: 132242
Project: 132242
Buggy source:
public void updateServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  deleteServiceFunctionForwarder(serviceFunction);
  createServiceFunctionForwarder(serviceFunction);
}

Fixed version (ground truth):
public void updateServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  deleteServiceFunctionForwarder(serviceFunction);
  createServiceFunctionForwarder(serviceFunction);
}
Program: 132243
Project: 132243
Buggy source:
public void deleteServiceFunctionFromForwarder(ServiceFunction serviceFunction){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionDictionary> sffIID;
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  ServiceFunctionDictionaryKey serviceFunctionDictionaryKey=new ServiceFunctionDictionaryKey(serviceFunction.getName());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).child(ServiceFunctionDictionary.class,serviceFunctionDictionaryKey).build();
  LOG.info("String_Node_Str",serviceFunction.getServiceFunctionForwarder(),serviceFunction.getName());
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}

Fixed version (ground truth):
public void deleteServiceFunctionFromForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionDictionary> sffIID;
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  ServiceFunctionDictionaryKey serviceFunctionDictionaryKey=new ServiceFunctionDictionaryKey(serviceFunction.getName());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).child(ServiceFunctionDictionary.class,serviceFunctionDictionaryKey).build();
  LOG.debug("String_Node_Str",serviceFunction.getServiceFunctionForwarder(),serviceFunction.getName());
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}
Program: 132245
Project: 132245
Buggy source:
public static ServiceFunction readServiceFunction(String serviceFunctionName){
  LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunction> sfIID;
  ServiceFunctionKey serviceFunctionKey=new ServiceFunctionKey(serviceFunctionName);
  sfIID=InstanceIdentifier.builder(ServiceFunctions.class).child(ServiceFunction.class,serviceFunctionKey).build();
  DataObject serviceFunctiondataObject=odlSfc.dataProvider.readConfigurationData(sfIID);
  if (serviceFunctiondataObject instanceof ServiceFunction) {
    LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return (ServiceFunction)serviceFunctiondataObject;
  }
 else {
    LOG.info("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return null;
  }
}

Fixed version (ground truth):
public static ServiceFunction readServiceFunction(String serviceFunctionName){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunction> sfIID;
  ServiceFunctionKey serviceFunctionKey=new ServiceFunctionKey(serviceFunctionName);
  sfIID=InstanceIdentifier.builder(ServiceFunctions.class).child(ServiceFunction.class,serviceFunctionKey).build();
  DataObject serviceFunctiondataObject=odlSfc.dataProvider.readConfigurationData(sfIID);
  if (serviceFunctiondataObject instanceof ServiceFunction) {
    LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return (ServiceFunction)serviceFunctiondataObject;
  }
 else {
    LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
    return null;
  }
}
Program: 132246
Project: 132246
Buggy source:
public void putServiceFunctionForwarders(ServiceFunctionForwarders serviceFunctionForwarders){
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  ClientResponse getClientResponse=client.resource("String_Node_Str").accept("String_Node_Str").get(ClientResponse.class);
  String jsonOutput=getClientResponse.getEntity(String.class);
  getClientResponse.close();
  ClientResponse putClientResponse=client.resource("String_Node_Str").type("String_Node_Str").put(ClientResponse.class,jsonOutput);
  putClientResponse.close();
}

Fixed version (ground truth):
public void putServiceFunctionForwarders(ServiceFunctionForwarders serviceFunctionForwarders){
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  ClientResponse getClientResponse=client.resource("String_Node_Str").accept("String_Node_Str").get(ClientResponse.class);
  String jsonOutput=getClientResponse.getEntity(String.class);
  getClientResponse.close();
  ClientResponse putClientRemoteResponse=client.resource("String_Node_Str").type("String_Node_Str").put(ClientResponse.class,jsonOutput);
  putClientRemoteResponse.close();
  ClientResponse putClientLocalResponse=client.resource("String_Node_Str").type("String_Node_Str").put(ClientResponse.class,jsonOutput);
  putClientLocalResponse.close();
}
Program: 132247
Project: 132247
Buggy source:
public void putServiceFunctionPaths(ServiceFunctionPaths serviceFunctionPaths){
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  ClientResponse getClientResponse=client.resource("String_Node_Str").accept("String_Node_Str").get(ClientResponse.class);
  String jsonOutput=getClientResponse.getEntity(String.class);
  getClientResponse.close();
  ClientResponse putClientResponse=client.resource("String_Node_Str").type("String_Node_Str").put(ClientResponse.class,jsonOutput);
  putClientResponse.close();
}

Fixed version (ground truth):
public void putServiceFunctionPaths(ServiceFunctionPaths serviceFunctionPaths){
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  ClientResponse getClientResponse=client.resource("String_Node_Str").accept("String_Node_Str").get(ClientResponse.class);
  String jsonOutput=getClientResponse.getEntity(String.class);
  getClientResponse.close();
}
Program: 132248
Project: 132248
Buggy source:
public void updateServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  deleteServiceFunctionForwarder(serviceFunction);
  createServiceFunctionForwarder(serviceFunction);
}

Fixed version (ground truth):
public void updateServiceFunctionForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  deleteServiceFunctionFromForwarder(serviceFunction);
  createServiceFunctionForwarder(serviceFunction);
}
Program: 132249
Project: 132249
Buggy source:
public void deleteServiceFunctionFromForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionForwarder> sffIID;
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).build();
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}

Fixed version (ground truth):
public void deleteServiceFunctionFromForwarder(ServiceFunction serviceFunction){
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
  InstanceIdentifier<ServiceFunctionDictionary> sffIID;
  ServiceFunctionDictionaryKey serviceFunctionDictionaryKey=new ServiceFunctionDictionaryKey(serviceFunction.getName());
  ServiceFunctionForwarderKey serviceFunctionForwarderKey=new ServiceFunctionForwarderKey(serviceFunction.getServiceFunctionForwarder());
  sffIID=InstanceIdentifier.builder(ServiceFunctionForwarders.class).child(ServiceFunctionForwarder.class,serviceFunctionForwarderKey).child(ServiceFunctionDictionary.class,serviceFunctionDictionaryKey).build();
  final DataModificationTransaction t=odlSfc.dataProvider.beginTransaction();
  t.removeConfigurationData(sffIID);
  try {
    t.commit().get();
  }
 catch (  ExecutionException|InterruptedException e) {
    LOG.warn("String_Node_Str",e);
  }
  LOG.debug("String_Node_Str",Thread.currentThread().getStackTrace()[1]);
}
Program: 132251
Project: 132251
Buggy source:
@Override public View getView(int pos,View convertView,ViewGroup parent){
  if (convertView == null) {
    convertView=mInflater.inflate(R.layout.plugin_item,parent,false);
  }
  TextView tv=(TextView)convertView.findViewById(R.id.name);
  final PluginInfo info=mDatas.get(pos);
  tv.setText(info.applicationName);
  Button btn=(Button)convertView.findViewById(R.id.status);
  btn.setFocusable(false);
  if (info.isInstalled) {
    btn.setText("String_Node_Str");
    btn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View arg0){
        PluginManager.getInstance().uninstallPlugin(mContext,info.applicationName);
        notifyDataSetChanged();
      }
    }
);
  }
 else {
    btn.setText("String_Node_Str");
    btn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View arg0){
        PluginManager.getInstance().installPlugin(info,(InstallPluginListener)mContext);
        ;
      }
    }
);
  }
  return convertView;
}

Fixed version (ground truth):
@Override public View getView(int pos,View convertView,ViewGroup parent){
  if (convertView == null) {
    convertView=mInflater.inflate(R.layout.plugin_item,parent,false);
  }
  TextView tv=(TextView)convertView.findViewById(R.id.name);
  final PluginInfo info=mDatas.get(pos);
  tv.setText(info.applicationName);
  Button btn=(Button)convertView.findViewById(R.id.status);
  btn.setFocusable(false);
  if (info.isInstalled) {
    btn.setText("String_Node_Str");
    btn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View arg0){
        PluginManager.getInstance().uninstallPlugin(mContext,info.packageName);
        notifyDataSetChanged();
      }
    }
);
  }
 else {
    btn.setText("String_Node_Str");
    btn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View arg0){
        PluginManager.getInstance().installPlugin(info,(InstallPluginListener)mContext);
        ;
      }
    }
);
  }
  return convertView;
}
Program: 132252
Project: 132252
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  mListView=(ListView)findViewById(R.id.list);
  mListView.setOnItemClickListener(this);
  mDialog=new ProgressDialog(this);
  mDialog.setMessage("String_Node_Str");
  File dir=getFilesDir();
  dir=new File(dir,"String_Node_Str");
  PluginManager.getInstance().init(this,getDir("String_Node_Str",Context.MODE_PRIVATE).getAbsolutePath(),dir.getAbsolutePath());
  ApkFile apk=new ApkFile();
  apk.apkName="String_Node_Str";
  apk.name="String_Node_Str";
  apk.nativeLibs.add("String_Node_Str");
  apks.add(apk);
  apk=new ApkFile();
  apk.apkName="String_Node_Str";
  apk.name="String_Node_Str";
  apk.nativeLibs.add("String_Node_Str");
  apks.add(apk);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  mListView=(ListView)findViewById(R.id.list);
  mListView.setOnItemClickListener(this);
  mDialog=new ProgressDialog(this);
  mDialog.setMessage("String_Node_Str");
  File dir=getFilesDir();
  dir=new File(dir,"String_Node_Str");
  PluginManager.getInstance().init(this,getDir("String_Node_Str",Context.MODE_PRIVATE).getAbsolutePath(),dir.getAbsolutePath());
  ApkFile apk=new ApkFile();
  apk.apkName="String_Node_Str";
  apk.name="String_Node_Str";
  apk.nativeLibs.add("String_Node_Str");
  apk.version=1.0f;
  apks.add(apk);
  apk=new ApkFile();
  apk.apkName="String_Node_Str";
  apk.name="String_Node_Str";
  apk.nativeLibs.add("String_Node_Str");
  apk.version=1.0f;
  apks.add(apk);
  PluginManager.getInstance().copyApksFromAsset(apks,getAssets(),this);
}
Program: 132254
Project: 132254
Buggy source:
private void testBase(String[] ARGS,String[] expectedResult) throws Exception {
  IdentifyPrivateVariants.main(ARGS);
  List<String> results=Lists.newArrayList();
  for (  GcsPath path : helper.gcsUtil.expand(GcsPath.fromUri(outputPrefix + "String_Node_Str"))) {
    BufferedReader reader=helper.openOutput(path.toString());
    for (String line=reader.readLine(); line != null; line=reader.readLine()) {
      results.add(line);
    }
  }
  assertThat(results,CoreMatchers.allOf(CoreMatchers.hasItems(expectedResult)));
}

Fixed version (ground truth):
private void testBase(String[] ARGS,String[] expectedResult) throws Exception {
  IdentifyPrivateVariants.main(ARGS);
  List<String> results=Lists.newArrayList();
  for (  GcsPath path : helper.gcsUtil.expand(GcsPath.fromUri(outputPrefix + "String_Node_Str"))) {
    BufferedReader reader=helper.openOutput(path.toString());
    for (String line=reader.readLine(); line != null; line=reader.readLine()) {
      results.add(line);
    }
  }
  assertEquals(results.size(),expectedResult.length);
  assertThat(results,CoreMatchers.allOf(CoreMatchers.hasItems(expectedResult)));
}
Program: 132256
Project: 132256
Buggy source:
public Sharder(Objects storageClient,String filePath,Iterable<Contig> requestedContigs,ShardingPolicy shardingPolicy,SharderOutput output){
  super();
  this.storageClient=storageClient;
  this.filePath=filePath;
  this.shardingPolicy=shardingPolicy;
  this.requestedContigs=Iterables.transform(requestedContigs,new Function<Contig,Contig>(){
    @Override @Nullable public Contig apply(    @Nullable Contig arg0){
      return new Contig(arg0.referenceName,arg0.start + 1,arg0.end + 1);
    }
  }
);
  this.output=output;
}

Fixed version (ground truth):
public Sharder(Objects storageClient,String filePath,Iterable<Contig> requestedContigs,ShardingPolicy shardingPolicy,SharderOutput output){
  super();
  this.storageClient=storageClient;
  this.filePath=filePath;
  this.shardingPolicy=shardingPolicy;
  this.requestedContigs=Iterables.transform(requestedContigs,new Function<Contig,Contig>(){
    @Override @Nullable public Contig apply(    @Nullable Contig arg0){
      return new Contig(arg0.referenceName,arg0.start + 1,arg0.end);
    }
  }
);
  this.output=output;
}
Program: 132257
Project: 132257
Buggy source:
@Override @Nullable public Contig apply(@Nullable Contig arg0){
  return new Contig(arg0.referenceName,arg0.start + 1,arg0.end + 1);
}

Fixed version (ground truth):
@Override @Nullable public Contig apply(@Nullable Contig arg0){
  return new Contig(arg0.referenceName,arg0.start + 1,arg0.end);
}
Program: 132259
Project: 132259
Buggy source:
@Override public void startBundle(DoFn<BAMShard,Read>.Context c) throws IOException {
  storage=GCSOptions.Methods.createStorageClient(c,auth);
}

Fixed version (ground truth):
@Override public void startBundle(DoFn<BAMShard,Read>.Context c) throws IOException {
  storage=Transport.newStorageClient(c.getPipelineOptions().as(GCSOptions.class)).build().objects();
}
Program: 132260
Project: 132260
Buggy source:
@Test public void openBAMTest() throws IOException {
  GCSOptions popts=PipelineOptionsFactory.create().as(GCSOptions.class);
  popts.setApiKey(API_KEY);
  final Storage.Objects storageClient=GCSOptions.Methods.createStorageClient(popts,GCSOptions.Methods.createGCSAuth(popts));
  SamReader samReader=BAMIO.openBAM(storageClient,TEST_BAM_FNAME,ValidationStringency.DEFAULT_STRINGENCY);
  SAMRecordIterator iterator=samReader.query("String_Node_Str",550000,560000,false);
  int readCount=0;
  while (iterator.hasNext()) {
    iterator.next();
    readCount++;
  }
  Assert.assertEquals("String_Node_Str",EXPECTED_UNMAPPED_READS_COUNT,readCount);
}

Fixed version (ground truth):
@Test public void openBAMTest() throws IOException {
  GCSOptions popts=PipelineOptionsFactory.create().as(GCSOptions.class);
  popts.setApiKey(API_KEY);
  final Storage.Objects storageClient=Transport.newStorageClient(popts).build().objects();
  SamReader samReader=BAMIO.openBAM(storageClient,TEST_BAM_FNAME,ValidationStringency.DEFAULT_STRINGENCY);
  SAMRecordIterator iterator=samReader.query("String_Node_Str",550000,560000,false);
  int readCount=0;
  while (iterator.hasNext()) {
    iterator.next();
    readCount++;
  }
  Assert.assertEquals("String_Node_Str",EXPECTED_UNMAPPED_READS_COUNT,readCount);
}
Program: 132261
Project: 132261
Buggy source:
private static PCollection<Read> getReadsFromAPI(){
  List<SearchReadsRequest> requests=getReadRequests(options);
  PCollection<SearchReadsRequest> readRequests=p.begin().apply(Create.of(requests));
  PCollection<Read> reads=readRequests.apply(ParDo.of(new ReadReader(auth,Paginator.ShardBoundary.OVERLAPS)).named(ReadReader.class.getSimpleName()));
  return reads;
}

Fixed version (ground truth):
private static PCollection<Read> getReadsFromAPI(){
  List<SearchReadsRequest> requests=getReadRequests(options);
  PCollection<SearchReadsRequest> readRequests=p.begin().apply(Create.of(requests));
  PCollection<Read> reads=readRequests.apply(ParDo.of(new ReadReader(auth,Paginator.ShardBoundary.STRICT)).named(ReadReader.class.getSimpleName()));
  return reads;
}
Program: 132262
Project: 132262
Buggy source:
private static PCollection<Read> getReadsFromBAMFile() throws IOException {
  LOG.info("String_Node_Str");
  final Iterable<Contig> contigs=Contig.parseContigsFromCommandLine(options.getReferences());
  if (options.getShardBAMReading()) {
    LOG.info("String_Node_Str" + options.getBAMFilePath());
    return ReadBAMTransform.getReadsFromBAMFilesSharded(p,auth,contigs,Collections.singletonList(options.getBAMFilePath()));
  }
 else {
    LOG.info("String_Node_Str" + options.getBAMFilePath());
    return p.apply(Create.of(Reader.readSequentiallyForTesting(GCSOptions.Methods.createStorageClient(options,auth),options.getBAMFilePath(),contigs.iterator().next())));
  }
}

Fixed version (ground truth):
private static PCollection<Read> getReadsFromBAMFile() throws IOException {
  LOG.info("String_Node_Str");
  final Iterable<Contig> contigs=Contig.parseContigsFromCommandLine(options.getReferences());
  if (options.isShardBAMReading()) {
    LOG.info("String_Node_Str" + options.getBAMFilePath());
    return ReadBAMTransform.getReadsFromBAMFilesSharded(p,auth,contigs,Collections.singletonList(options.getBAMFilePath()));
  }
 else {
    LOG.info("String_Node_Str" + options.getBAMFilePath());
    return p.apply(Create.of(Reader.readSequentiallyForTesting(GCSOptions.Methods.createStorageClient(options,auth),options.getBAMFilePath(),contigs.iterator().next())));
  }
}
Program: 132264
Project: 132264
Buggy source:
/** 
 * Appends chunks from another bin to the list and moved the end position.
 */
public void addBin(List<Chunk> chunksToAdd,int lastLocus){
}

Fixed version (ground truth):
/** 
 * Appends chunks from another bin to the list and moved the end position.
 */
public void addBin(List<Chunk> chunksToAdd,long lastLocus){
}
Program: 132265
Project: 132265
Buggy source:
/** 
 * Generates a final list of chunks, now that we know the exact bounding loci for this shard. We get all chunks overlapping this loci, and then ask the index for the chunks overlapping them. 
 */
public BAMShard finalize(BAMFileIndexImpl index,int lastLocus){
  if (lastLocus >= 0) {
    contig=new Contig(contig.referenceName,contig.start,lastLocus);
  }
  this.chunks=index.getChunksOverlapping(contig.referenceName,(int)contig.start,(int)contig.end);
  updateSpan();
  return this;
}

Fixed version (ground truth):
/** 
 * Generates a final list of chunks, now that we know the exact bounding loci for this shard. We get all chunks overlapping this loci, and then ask the index for the chunks overlapping them. 
 */
public BAMShard finalize(BAMFileIndexImpl index,int lastLocus){
  contig=new Contig(contig.referenceName,contig.start,lastLocus);
  this.chunks=index.getChunksOverlapping(contig.referenceName,(int)contig.start,(int)contig.end);
  updateSpan();
  return this;
}
Program: 132266
Project: 132266
Buggy source:
boolean isWrongSequence(SAMRecord record){
  return (procesingUnmapped && !record.getReadUnmappedFlag()) || (!procesingUnmapped && shard.contig.referenceName != null && !shard.contig.referenceName.isEmpty() && !shard.contig.referenceName.equals(record.getReferenceName()));
}

Fixed version (ground truth):
boolean isWrongSequence(SAMRecord record){
  return (procesingUnmapped && !record.getReadUnmappedFlag()) || (!procesingUnmapped && (record.getReadUnmappedFlag() || (shard.contig.referenceName != null && !shard.contig.referenceName.isEmpty() && !shard.contig.referenceName.equals(record.getReferenceName()))));
}
Program: 132268
Project: 132268
Buggy source:
void processRecord(SAMRecord record){
  if (isWrongSequence(record)) {
    mismatchedSequence++;
    return;
  }
  if (record.getAlignmentStart() < shard.contig.start) {
    recordsBeforeStart++;
    return;
  }
  if (record.getAlignmentStart() > shard.contig.end) {
    recordsAfterEnd++;
    return;
  }
  c.output(ReadConverter.makeRead(record));
  recordsProcessed++;
}

Fixed version (ground truth):
void processRecord(SAMRecord record){
  if (isWrongSequence(record)) {
    mismatchedSequence++;
    return;
  }
  if (record.getAlignmentStart() < shard.contig.start) {
    recordsBeforeStart++;
    return;
  }
  if (record.getAlignmentStart() >= shard.contig.end) {
    recordsAfterEnd++;
    return;
  }
  c.output(ReadConverter.makeRead(record));
  recordsProcessed++;
}
Program: 132269
Project: 132269
Buggy source:
public Sharder(Objects storageClient,String filePath,Iterable<Contig> requestedContigs,DoFn<String,BAMShard>.ProcessContext c){
  super();
  this.storageClient=storageClient;
  this.filePath=filePath;
  this.requestedContigs=requestedContigs;
  this.c=c;
}

Fixed version (ground truth):
public Sharder(Objects storageClient,String filePath,Iterable<Contig> requestedContigs,DoFn<String,BAMShard>.ProcessContext c){
  super();
  this.storageClient=storageClient;
  this.filePath=filePath;
  this.requestedContigs=Iterables.transform(requestedContigs,new Function<Contig,Contig>(){
    @Override @Nullable public Contig apply(    @Nullable Contig arg0){
      return new Contig(arg0.referenceName,arg0.start + 1,arg0.end + 1);
    }
  }
);
  this.c=c;
}
Program: 132271
Project: 132271
Buggy source:
public static void main(String[] args) throws IOException, GeneralSecurityException {
  Options options=PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class);
  GenomicsDatasetOptions.Methods.validateOptions(options);
  Preconditions.checkState(options.getHasNonVariantSegments(),"String_Node_Str" + "String_Node_Str");
  GenomicsFactory.OfflineAuth auth=GenomicsOptions.Methods.getGenomicsAuth(options);
  List<SearchVariantsRequest> requests=GenomicsDatasetOptions.Methods.getVariantRequests(options,auth,true);
  Pipeline p=Pipeline.create(options);
  DataflowWorkarounds.registerGenomicsCoders(p);
  PCollection<SearchVariantsRequest> input=DataflowWorkarounds.getPCollection(requests,p,options.getNumWorkers());
  PCollection<Variant> variants=JoinNonVariantSegmentsWithVariants.joinVariantsTransform(input,auth,JoinNonVariantSegmentsWithVariants.VARIANT_JOIN_FIELDS);
  variants.apply(ParDo.of(new FormatVariantsFn())).apply(BigQueryIO.Write.to(options.getOutput()).withSchema(getTableSchema()).withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED).withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_TRUNCATE));
  p.run();
}

Fixed version (ground truth):
public static void main(String[] args) throws IOException, GeneralSecurityException {
  Options options=PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class);
  GenomicsDatasetOptions.Methods.validateOptions(options);
  Preconditions.checkState(options.getHasNonVariantSegments(),"String_Node_Str" + "String_Node_Str");
  GenomicsFactory.OfflineAuth auth=GenomicsOptions.Methods.getGenomicsAuth(options);
  List<SearchVariantsRequest> requests=GenomicsDatasetOptions.Methods.getVariantRequests(options,auth,false);
  Pipeline p=Pipeline.create(options);
  DataflowWorkarounds.registerGenomicsCoders(p);
  PCollection<SearchVariantsRequest> input=DataflowWorkarounds.getPCollection(requests,p,options.getNumWorkers());
  PCollection<Variant> variants=JoinNonVariantSegmentsWithVariants.joinVariantsTransform(input,auth,JoinNonVariantSegmentsWithVariants.VARIANT_JOIN_FIELDS);
  variants.apply(ParDo.of(new FormatVariantsFn())).apply(BigQueryIO.Write.to(options.getOutput()).withSchema(getTableSchema()).withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED).withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_TRUNCATE));
  p.run();
}
Program: 132272
Project: 132272
Buggy source:
@Override public void processElement(ProcessContext c){
  Variant v=c.element();
  List<TableRow> calls=new ArrayList<>();
  for (  Call call : v.getCalls()) {
    calls.add(new TableRow().set("String_Node_Str",call.getCallSetName()).set("String_Node_Str",call.getPhaseset()).set("String_Node_Str",call.getGenotype()).set("String_Node_Str",call.getGenotypeLikelihood()));
  }
  TableRow row=new TableRow().set("String_Node_Str",v.getId()).set("String_Node_Str",v.getReferenceName()).set("String_Node_Str",v.getStart()).set("String_Node_Str",v.getEnd()).set("String_Node_Str",v.getReferenceBases()).set("String_Node_Str",v.getAlternateBases()).set("String_Node_Str",calls);
  c.output(row);
}

Fixed version (ground truth):
@Override public void processElement(ProcessContext c){
  Variant v=c.element();
  List<TableRow> calls=new ArrayList<>();
  for (  Call call : v.getCalls()) {
    calls.add(new TableRow().set("String_Node_Str",call.getCallSetName()).set("String_Node_Str",call.getPhaseset()).set("String_Node_Str",call.getGenotype()).set("String_Node_Str",(call.getGenotypeLikelihood() == null) ? new ArrayList<Double>() : call.getGenotypeLikelihood()));
  }
  TableRow row=new TableRow().set("String_Node_Str",v.getId()).set("String_Node_Str",v.getReferenceName()).set("String_Node_Str",v.getStart()).set("String_Node_Str",v.getEnd()).set("String_Node_Str",v.getReferenceBases()).set("String_Node_Str",v.getAlternateBases()).set("String_Node_Str",calls);
  c.output(row);
}
Program: 132273
Project: 132273
Buggy source:
@Override public PDone apply(PCollection<KV<KV<String,String>,Long>> similarPairs){
  return similarPairs.apply(Sum.<KV<String,String>>longsPerKey()).apply(Combine.globally(TO_LIST)).apply(ParDo.named("String_Node_Str").of(PCoAnalysis.of())).apply(Convert.<PCoAnalysis.GraphResult>fromIterables()).apply(ParDo.named("String_Node_Str").of(fromSerializableFunction(TO_STRING))).apply(TextIO.Write.named("String_Node_Str").to(outputFile));
}

Fixed version (ground truth):
@Override public PDone apply(PCollection<KV<KV<String,String>,Long>> similarPairs){
  return similarPairs.apply(Sum.<KV<String,String>>longsPerKey()).apply(Combine.globally(TO_LIST)).apply(ParDo.named("String_Node_Str").of(PCoAnalysis.of())).apply(Convert.<PCoAnalysis.GraphResult>fromIterables()).apply(ParDo.named("String_Node_Str").of(fromSerializableFunction(TO_STRING))).setCoder(StringUtf8Coder.of()).apply(TextIO.Write.named("String_Node_Str").to(outputFile));
}
Program: 132274
Project: 132274
Buggy source:
@Override public ImmutableList.Builder<X> createAccumulator(){
  return ImmutableList.builder();
}

Fixed version (ground truth):
@Override public ArrayList<X> createAccumulator(){
  return new ArrayList<>();
}
Program: 132275
Project: 132275
Buggy source:
@Override public Iterable<X> extractOutput(ImmutableList.Builder<X> accumulator){
  return accumulator.build();
}

Fixed version (ground truth):
@Override public Iterable<X> extractOutput(ArrayList<X> accumulator){
  return accumulator;
}
Program: 132276
Project: 132276
Buggy source:
@Override public void addInput(ImmutableList.Builder<X> accumulator,X input){
  accumulator.add(input);
}

Fixed version (ground truth):
@Override public void addInput(ArrayList<X> accumulator,X input){
  accumulator.add(input);
}
Program: 132277
Project: 132277
Buggy source:
private static <X>Combine.CombineFn<X,ImmutableList.Builder<X>,Iterable<X>> toImmutableList(){
  return new Combine.CombineFn<X,ImmutableList.Builder<X>,Iterable<X>>(){
    @Override public void addInput(    ImmutableList.Builder<X> accumulator,    X input){
      accumulator.add(input);
    }
    @Override public ImmutableList.Builder<X> createAccumulator(){
      return ImmutableList.builder();
    }
    @Override public Iterable<X> extractOutput(    ImmutableList.Builder<X> accumulator){
      return accumulator.build();
    }
    @Override public ImmutableList.Builder<X> mergeAccumulators(    Iterable<ImmutableList.Builder<X>> accumulators){
      ImmutableList.Builder<X> merged=ImmutableList.builder();
      for (      ImmutableList.Builder<X> accumulator : accumulators) {
        merged.addAll(accumulator.build());
      }
      return merged;
    }
  }
;
}

Fixed version (ground truth):
private static <X>Combine.CombineFn<X,ArrayList<X>,Iterable<X>> toImmutableList(){
  return new Combine.CombineFn<X,ArrayList<X>,Iterable<X>>(){
    @Override public void addInput(    ArrayList<X> accumulator,    X input){
      accumulator.add(input);
    }
    @Override public ArrayList<X> createAccumulator(){
      return new ArrayList<>();
    }
    @Override public Iterable<X> extractOutput(    ArrayList<X> accumulator){
      return accumulator;
    }
    @Override public ArrayList<X> mergeAccumulators(    Iterable<ArrayList<X>> accumulators){
      ArrayList<X> merged=new ArrayList<>();
      for (      ArrayList<X> accumulator : accumulators) {
        merged.addAll(accumulator);
      }
      return merged;
    }
  }
;
}
Program: 132278
Project: 132278
Buggy source:
@Override public ImmutableList.Builder<X> mergeAccumulators(Iterable<ImmutableList.Builder<X>> accumulators){
  ImmutableList.Builder<X> merged=ImmutableList.builder();
  for (  ImmutableList.Builder<X> accumulator : accumulators) {
    merged.addAll(accumulator.build());
  }
  return merged;
}

Fixed version (ground truth):
@Override public ArrayList<X> mergeAccumulators(Iterable<ArrayList<X>> accumulators){
  ArrayList<X> merged=new ArrayList<>();
  for (  ArrayList<X> accumulator : accumulators) {
    merged.addAll(accumulator);
  }
  return merged;
}
Program: 132279
Project: 132279
Buggy source:
@Override public T decode(InputStream in,Context context) throws IOException {
  JsonParser jsonParser=jacksonFactory.createJsonParser(in);
  T obj=jsonParser.parse(type);
  jsonParser.close();
  return obj;
}

Fixed version (ground truth):
@Override public T decode(InputStream in,Context context) throws IOException {
  if (context.isWholeStream) {
    JsonParser jsonParser=jacksonFactory.createJsonParser(in);
    T obj=jsonParser.parse(type);
    jsonParser.close();
    return obj;
  }
 else {
    in.mark(READ_LIMIT);
    JsonParser jsonParser=jacksonFactory.createJsonParser(in);
    T obj=jsonParser.parse(type);
    ByteArrayOutputStream buf=new ByteArrayOutputStream();
    encode(obj,buf,context);
    int skip=buf.size();
    in.reset();
    in.skip(skip);
    jsonParser.close();
    return obj;
  }
}
Program: 132280
Project: 132280
Buggy source:
@Override protected void processApiCall(GenomicsApi api,ProcessContext c,SearchReadsRequest request) throws IOException {
  long total=0;
  do {
    SearchReadsResponse response=api.executeRequest(api.getService().reads().search(request),readFields);
    if (response.getReads() == null) {
      break;
    }
    for (    Read read : response.getReads()) {
      c.output(read);
    }
    total+=response.getReads().size();
    LOG.info("String_Node_Str" + total + "String_Node_Str");
    request.setPageToken(response.getNextPageToken());
  }
 while (request.getPageToken() != null);
}

Fixed version (ground truth):
@Override protected void processApiCall(GenomicsApi api,ProcessContext c,SearchReadsRequest request) throws IOException {
  long total=0;
  LOG.info("String_Node_Str");
  do {
    SearchReadsResponse response=api.executeRequest(api.getService().reads().search(request),readFields);
    if (response.getReads() == null) {
      break;
    }
    for (    Read read : response.getReads()) {
      c.output(read);
    }
    total+=response.getReads().size();
    LOG.info("String_Node_Str" + total + "String_Node_Str");
    request.setPageToken(response.getNextPageToken());
  }
 while (request.getPageToken() != null);
}
Program: 132281
Project: 132281
Buggy source:
/** 
 * Use this function to get a valid access token from the user before running a dataflow pipeline.
 * @param clientSecretsFilename Where the client_secrets.json file is located.Usually this is an option specified by the user from the command line.
 * @param scopes The OAuth scopes needed by the pipeline.Common scopes are constants in this class.
 * @return An access token that can be used to make a GoogleCredential:new GoogleCredential().setAccessToken(accessToken)
 */
public static String getAccessToken(String clientSecretsFilename,List<String> scopes) throws GeneralSecurityException, IOException {
  GoogleClientSecrets clientSecrets=loadClientSecrets(clientSecretsFilename);
  FileDataStoreFactory dataStoreFactory=new FileDataStoreFactory(DATA_STORE_DIR);
  NetHttpTransport httpTransport=GoogleNetHttpTransport.newTrustedTransport();
  GoogleAuthorizationCodeFlow flow=new GoogleAuthorizationCodeFlow.Builder(httpTransport,JSON_FACTORY,clientSecrets,scopes).setAccessType("String_Node_Str").setDataStoreFactory(dataStoreFactory).build();
  Credential credential=new AuthorizationCodeInstalledApp(flow,new GooglePromptReceiver()).authorize("String_Node_Str");
  return credential.getAccessToken();
}

Fixed version (ground truth):
/** 
 * Use this function to get a valid access token from the user before running a dataflow pipeline.
 * @param clientSecretsFilename Where the client_secrets.json file is located.Usually this is an option specified by the user from the command line.
 * @param scopes The OAuth scopes needed by the pipeline.Common scopes are constants in this class.
 * @return An access token that can be used to make a GoogleCredential:new GoogleCredential().setAccessToken(accessToken)
 */
public static String getAccessToken(String clientSecretsFilename,List<String> scopes) throws GeneralSecurityException, IOException {
  GoogleClientSecrets clientSecrets=loadClientSecrets(clientSecretsFilename);
  FileDataStoreFactory dataStoreFactory=new FileDataStoreFactory(DATA_STORE_DIR);
  NetHttpTransport httpTransport=GoogleNetHttpTransport.newTrustedTransport();
  GoogleAuthorizationCodeFlow flow=new GoogleAuthorizationCodeFlow.Builder(httpTransport,JSON_FACTORY,clientSecrets,scopes).setAccessType("String_Node_Str").setDataStoreFactory(dataStoreFactory).build();
  Credential credential=new AuthorizationCodeInstalledApp(flow,new GooglePromptReceiver()).authorize("String_Node_Str");
  credential.refreshToken();
  return credential.getAccessToken();
}
Program: 132283
Project: 132283
Buggy source:
@Override public void leaseFailed(ASCIIString cellId,FleaseException error){
  Logging.logMessage(Logging.LEVEL_WARN,this,"String_Node_Str" + "String_Node_Str" + "String_Node_Str",cellId.toString(),error.getMessage());
synchronized (this) {
    lease=Flease.EMPTY_LEASE;
  }
}

Fixed version (ground truth):
@Override public void leaseFailed(ASCIIString cellId,FleaseException error){
  Logging.logMessage(Logging.LEVEL_WARN,this,"String_Node_Str" + "String_Node_Str" + "String_Node_Str",cellId.toString(),error.getMessage());
synchronized (this) {
    lease=Flease.EMPTY_LEASE;
    notifyAll();
  }
}