nus-yam/ex-repair huggingface dataset:
Program: 34482
Project: 34482
Buggy source:
@Override public <U>ThrowingStream<U,X> mapToObj(ThrowingIntFunction<? extends U,? extends X> mapper){
  return ThrowingBridge.of(getDelegate().mapToObj(getBridge().convert(mapper)),getBridge());
}

Fixed version (ground truth):
@Override public <U>ThrowingStream<U,X> mapToObj(ThrowingIntFunction<? extends U,? extends X> mapper){
  IntFunction<? extends U> f=getBridge().convert(mapper);
  return ThrowingBridge.of(getDelegate().mapToObj(f),getBridge());
}
Program: 34483
Project: 34483
Buggy source:
@Override public <U>ThrowingStream<U,X> mapToObj(ThrowingLongFunction<? extends U,? extends X> mapper){
  return ThrowingBridge.of(getDelegate().mapToObj(getBridge().convert(mapper)),getBridge());
}

Fixed version (ground truth):
@Override public <U>ThrowingStream<U,X> mapToObj(ThrowingLongFunction<? extends U,? extends X> mapper){
  LongFunction<? extends U> f=getBridge().convert(mapper);
  return ThrowingBridge.of(getDelegate().mapToObj(f),getBridge());
}
Program: 34484
Project: 34484
Buggy source:
@Override public <U>Stream<U> mapToObj(DoubleFunction<? extends U> mapper){
  return ThrowingBridge.of(getDelegate().mapToObj(mapper::apply),getExceptionClass());
}

Fixed version (ground truth):
@Override public <U>Stream<U> mapToObj(DoubleFunction<? extends U> mapper){
  ThrowingDoubleFunction<? extends U,? extends X> f=mapper::apply;
  return ThrowingBridge.of(getDelegate().mapToObj(f),getExceptionClass());
}
Program: 34485
Project: 34485
Buggy source:
@Override public <U>Stream<U> mapToObj(IntFunction<? extends U> mapper){
  return ThrowingBridge.of(getDelegate().mapToObj(mapper::apply),getExceptionClass());
}

Fixed version (ground truth):
@Override public <U>Stream<U> mapToObj(IntFunction<? extends U> mapper){
  ThrowingIntFunction<? extends U,? extends X> f=mapper::apply;
  return ThrowingBridge.of(getDelegate().mapToObj(f),getExceptionClass());
}
Program: 34486
Project: 34486
Buggy source:
@Override public <U>Stream<U> mapToObj(LongFunction<? extends U> mapper){
  return ThrowingBridge.of(getDelegate().mapToObj(mapper::apply),getExceptionClass());
}

Fixed version (ground truth):
@Override public <U>Stream<U> mapToObj(LongFunction<? extends U> mapper){
  ThrowingLongFunction<? extends U,? extends X> f=mapper::apply;
  return ThrowingBridge.of(getDelegate().mapToObj(f),getExceptionClass());
}
Program: 34487
Project: 34487
Buggy source:
@Override public <R>Stream<R> map(Function<? super T,? extends R> mapper){
  return newStream(getDelegate().map(mapper::apply));
}

Fixed version (ground truth):
@Override public <R>Stream<R> map(Function<? super T,? extends R> mapper){
  ThrowingFunction<? super T,? extends R,? extends X> f=mapper::apply;
  return newStream(getDelegate().map(f));
}
Program: 34488
Project: 34488
Buggy source:
public void bind(ResourceResolverFactory resourceResolverFactory) throws LoginException {
  if (resourceResolverFactory == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.resolver=resourceResolverFactory.getAdministrativeResourceResolver(null);
}

Fixed version (ground truth):
public void bind(ResourceResolverFactory factory) throws LoginException {
  if (factory == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  this.resolver=factory.getAdministrativeResourceResolver(null);
}
Program: 34489
Project: 34489
Buggy source:
/** 
 * @see org.apache.sling.api.resource.ResourceResolver#resolve(javax.servlet.http.HttpServletRequest,String)
 */
public Resource resolve(SlingHttpServletRequest request,String path){
  ensureInitialization();
  return this.resolver.resolve(request,path);
}

Fixed version (ground truth):
/** 
 * @see org.apache.sling.api.resource.ResourceResolver#resolve(javax.servlet.http.HttpServletRequest,String)
 */
public Resource resolve(SlingHttpServletRequest request,String path){
  return getResolver().resolve(request,path);
}
Program: 34490
Project: 34490
Buggy source:
public void unbind(ResourceResolverFactory resourceResolverFactory){
  closeResourceResolver();
}

Fixed version (ground truth):
/** 
 * @param ignored can be null.
 * @see #closeResourceResolver()
 */
public void unbind(@SuppressWarnings("String_Node_Str") ResourceResolverFactory ignored){
  closeResourceResolver();
}
Program: 34491
Project: 34491
Buggy source:
/** 
 * @see ResourceResolver#getResource(String)
 */
public Resource get(String path){
  ensureInitialization();
  return this.resolver.getResource(path);
}

Fixed version (ground truth):
/** 
 * @see ResourceResolver#getResource(String)
 */
public Resource get(String path){
  return getResolver().getResource(path);
}
Program: 34492
Project: 34492
Buggy source:
@PreDestroy public void closeResourceResolver(){
  if (this.resolver != null && this.resolver.isLive()) {
    this.resolver.close();
  }
}

Fixed version (ground truth):
/** 
 * Closes and removes the reference to the current administrative resource resolver, as any resolver instance obtained before a factory changed is malfunctioning, even if   {@link ResourceResolver#isLive()} is true. Doesalso discard the reference to the factory as it is a service proxy and may not be accessed before it is {@link #bind(ResourceResolverFactory) bound} again, as this would result in a deadlock.
 */
@PreDestroy public void closeResourceResolver(){
  if (this.resolver != null && this.resolver.isLive()) {
    this.resolver.close();
  }
  this.resolver=null;
}
Program: 34493
Project: 34493
Buggy source:
/** 
 * Exposes the administrative resource resolver. Warning: The returned resource resolver will seize to function if its factory changes and must thus not be retained.
 * @return never <code>null</code>.
 */
public ResourceResolver getResolver(){
  ensureInitialization();
  return resolver;
}

Fixed version (ground truth):
/** 
 * Exposes the administrative resource resolver. Warning: The returned resource resolver will seize to function if its factory changes and must thus not be retained.
 * @return never <code>null</code>.
 */
public ResourceResolver getResolver(){
  if (this.resolver == null) {
    IllegalStateException e=new IllegalStateException("String_Node_Str" + "String_Node_Str");
    logger.error("String_Node_Str",e);
    throw e;
  }
  return resolver;
}
Program: 34495
Project: 34495
Buggy source:
@Override public void harvestBlock(World par1World,EntityPlayer par2EntityPlayer,int par3,int par4,int par5,int par6){
  if (!Chisel.dropIceShards) {
    super.harvestBlock(par1World,par2EntityPlayer,par3,par4,par5,par6);
    return;
  }
  par2EntityPlayer.addStat(StatList.mineBlockStatArray[Block.getIdFromBlock(this)],1);
  par2EntityPlayer.addExhaustion(0.025F);
  if (par1World.isRemote)   return;
  if (this.canSilkHarvest(par1World,par2EntityPlayer,par3,par4,par5,par6) && EnchantmentHelper.getSilkTouchModifier(par2EntityPlayer)) {
    ItemStack itemstack=this.createStackedBlock(par6);
    if (itemstack != null) {
      this.dropBlockAsItem(par1World,par3,par4,par5,itemstack);
    }
  }
 else {
    int i1=EnchantmentHelper.getFortuneModifier(par2EntityPlayer);
    this.dropBlockAsItem(par1World,par3,par4,par5,par6,i1);
  }
}

Fixed version (ground truth):
@Override public void harvestBlock(World par1World,EntityPlayer par2EntityPlayer,int par3,int par4,int par5,int par6){
  super.harvestBlock(par1World,par2EntityPlayer,par3,par4,par5,par6);
  return;
}
Program: 34496
Project: 34496
Buggy source:
public BlockLavastone(Material mat,String baseIcon){
  super(mat,baseIcon);
}

Fixed version (ground truth):
public BlockLavastone(Material mat,String baseIcon){
  super(mat,baseIcon);
  setLightLevel(1F);
}
Program: 34497
Project: 34497
Buggy source:
@Override public boolean onItemUse(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int side,float hx,float hy,float hz){
  BlockMarbleSlab block=(BlockMarbleSlab)Block.getBlockFromItem(this);
  Block targetBlock=world.getBlock(x,y,z);
  int meta=world.getBlockMetadata(x,y,z);
  boolean metaMatches=meta == stack.getItemDamage();
  if (metaMatches && side == 0 && targetBlock.equals(block.top)) {
    world.setBlock(x,y,z,block.master,meta,2);
    return true;
  }
 else   if (metaMatches && side == 1 && targetBlock.equals(block.bottom)) {
    world.setBlock(x,y,z,block.master,meta,2);
    return true;
  }
  boolean result=super.onItemUse(stack,player,world,x,y,z,side,hz,hy,hz);
switch (side) {
case 0:
    --y;
  break;
case 1:
++y;
break;
case 2:
--z;
break;
case 3:
++z;
break;
case 4:
--x;
break;
case 5:
++x;
break;
}
targetBlock=world.getBlock(x,y,z);
meta=world.getBlockMetadata(x,y,z);
if (!result && (targetBlock.equals(block.top) || targetBlock.equals(block.bottom)) && meta == stack.getItemDamage()) {
world.setBlock(x,y,z,block.master,meta,2);
return true;
}
if (!result) return false;
if (side != 0 && (side == 1 || hy <= 0.5D)) return true;
world.setBlock(x,y,z,block.top,meta,2);
return true;
}

Fixed version (ground truth):
@Override public boolean onItemUse(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int side,float hx,float hy,float hz){
  BlockMarbleSlab block=(BlockMarbleSlab)Block.getBlockFromItem(this);
  Block targetBlock=world.getBlock(x,y,z);
  int meta=world.getBlockMetadata(x,y,z);
  boolean metaMatches=meta == stack.getItemDamage();
  if (metaMatches && side == 0 && targetBlock.equals(block.top)) {
    world.setBlock(x,y,z,block.master,meta,2);
    return true;
  }
 else   if (metaMatches && side == 1 && targetBlock.equals(block.bottom)) {
    world.setBlock(x,y,z,block.master,meta,2);
    return true;
  }
  boolean result=super.onItemUse(stack,player,world,x,y,z,side,hz,hy,hz);
switch (side) {
case 0:
    --y;
  break;
case 1:
++y;
break;
case 2:
--z;
break;
case 3:
++z;
break;
case 4:
--x;
break;
case 5:
++x;
break;
}
targetBlock=world.getBlock(x,y,z);
meta=world.getBlockMetadata(x,y,z);
if (!result && (targetBlock.equals(block.top) || targetBlock.equals(block.bottom)) && meta == stack.getItemDamage()) {
world.setBlock(x,y,z,block.master,meta,2);
return true;
}
if (!result) return false;
if (side != 0 && (side == 1 || hy <= 0.5D)) return true;
return true;
}
Program: 34498
Project: 34498
Buggy source:
public static <Q extends Quantity<Q>>String format(Q quantity,int digitCount,boolean keepTraillingZero,boolean displayUnit,Unit<Q> ptargetUnit){
  String result=StringUtils.EMPTY;
  Unit<Q> localTargetUnit=ptargetUnit;
  DecimalFormat df=new DecimalFormat("String_Node_Str",DecimalFormatSymbols.getInstance(Locale.ENGLISH));
  if (keepTraillingZero) {
    df.setMinimumFractionDigits(digitCount);
  }
  df.setMaximumFractionDigits(digitCount);
  result=df.format(quantity.doubleValue(localTargetUnit));
  if (displayUnit) {
    result+=quantity.getUnit().getSymbol();
  }
  return result;
}

Fixed version (ground truth):
public static <Q extends Quantity<Q>>String format(Q quantity,int digitCount,boolean keepTraillingZero,boolean displayUnit,Unit<Q> ptargetUnit){
  String result=StringUtils.EMPTY;
  Unit<Q> localTargetUnit=ptargetUnit;
  DecimalFormat df=new DecimalFormat("String_Node_Str",DecimalFormatSymbols.getInstance(Locale.ENGLISH));
  if (keepTraillingZero) {
    df.setMinimumFractionDigits(digitCount);
  }
  df.setMaximumFractionDigits(digitCount);
  result=df.format(quantity.doubleValue(localTargetUnit));
  if (displayUnit) {
    result+=ptargetUnit.getSymbol();
  }
  return result;
}
Program: 34499
Project: 34499
Buggy source:
/** 
 * (inheritDoc)
 * @see org.goko.core.common.service.IGokoService#start()
 */
@Override public void startService() throws GkException {
  this.inputListeners=new ArrayList<WeakReference<IConnectionDataListener>>();
  this.outputListeners=new ArrayList<WeakReference<IConnectionDataListener>>();
  this.connectionListeners=new ArrayList<WeakReference<IConnectionListener>>();
}

Fixed version (ground truth):
/** 
 * (inheritDoc)
 * @see org.goko.core.common.service.IGokoService#start()
 */
@Override public void startService() throws GkException {
  this.inputListeners=new CopyOnWriteArrayList<WeakReference<IConnectionDataListener>>();
  this.outputListeners=new CopyOnWriteArrayList<WeakReference<IConnectionDataListener>>();
  this.connectionListeners=new ArrayList<WeakReference<IConnectionListener>>();
}
Program: 34500
Project: 34500
Buggy source:
/** 
 * @param controllerService the controllerService to set
 */
public void setControllerAdapter(IFourAxisControllerAdapter controllerService){
  this.controllerAdapter=controllerService;
}

Fixed version (ground truth):
/** 
 * @param controllerService the controllerService to set
 * @throws GkException GkException 
 */
public void setControllerAdapter(IFourAxisControllerAdapter controllerService) throws GkException {
  this.controllerAdapter=controllerService;
  if (toolRenderer == null) {
    toolRenderer=new ToolRenderer(getControllerAdapter());
    addRenderer(toolRenderer);
  }
}
Program: 34503
Project: 34503
Buggy source:
public void onResult(int id,Response response){
  try {
    int httpStatus=response.getStatusCode();
    log.logEndProcessingStepNonBlocking(id,httpStatus);
    int noOfRes=noOfResults.incrementAndGet();
    result+=response.getResponseBody() + '\n';
    if (noOfRes >= noOfCalls) {
      onAllCompleted();
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public void onResult(int id,Response response){
  try {
    int httpStatus=response.getStatusCode();
    log.logEndProcessingStepNonBlocking(id,httpStatus);
    int noOfRes=noOfResults.incrementAndGet();
synchronized (result) {
      result+=response.getResponseBody() + '\n';
    }
    if (noOfRes >= noOfCalls) {
      onAllCompleted();
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}
Program: 34504
Project: 34504
Buggy source:
private CreateServiceInstanceRequest buildCreateRequest(){
  return new CreateServiceInstanceRequest(SVC_DEF_ID,SVC_PLAN_ID,"String_Node_Str","String_Node_Str").withServiceInstanceId(ServiceInstanceFixture.getServiceInstance().getServiceInstanceId());
}

Fixed version (ground truth):
private CreateServiceInstanceRequest buildCreateRequest(){
  return new CreateServiceInstanceRequest(SVC_DEF_ID,SVC_PLAN_ID,"String_Node_Str","String_Node_Str",null).withServiceInstanceId(ServiceInstanceFixture.getServiceInstance().getServiceInstanceId());
}
Program: 34506
Project: 34506
Buggy source:
@Override public void confirmed(String path,long size){
  System.out.println("String_Node_Str" + path);
  remotePath.setData(path);
}

Fixed version (ground truth):
@Override public void confirmed(String path,long size){
  remotePath.setData(path);
}
Program: 34507
Project: 34507
Buggy source:
public RemoteNode setSshPrivateKey(String path){
  config.setProp(SSH_KEY_FILE,path);
  return this;
}

Fixed version (ground truth):
public RemoteNode setSshPrivateKey(String path){
  config.setProp(SSH_KEY_FILE,path);
  config.setProp(SshSpiConf.SSH_PRIVATE_KEY_FILE,path);
  return this;
}
Program: 34508
Project: 34508
Buggy source:
public RemoteNode useSimpleRemoting(){
  setRemoteNodeType();
  setRemoteJarCachePath("String_Node_Str");
  config.setProp(SshSpiConf.REMOTE_FALLBACK_JVM_EXEC,"String_Node_Str");
  setHostsConfigFile("String_Node_Str");
  setRemoteHost("String_Node_Str");
  return this;
}

Fixed version (ground truth):
public RemoteNode useSimpleRemoting(){
  setRemoteNodeType();
  setRemoteJarCachePath("String_Node_Str");
  config.setProp(SshSpiConf.REMOTE_FALLBACK_JVM_EXEC,"String_Node_Str");
  setHostsConfigFile("String_Node_Str");
  setRemoteHost("String_Node_Str");
  config.setConfigElement("String_Node_Str",new ViEngine.InitTimePragmaHandler());
  return this;
}
Program: 34509
Project: 34509
Buggy source:
@SuppressWarnings({"String_Node_Str"}) public Class[] toClassObjects(String[] names) throws ClassNotFoundException {
  Class[] classes=new Class[names.length];
  for (int i=0; i != names.length; ++i) {
    classes[i]=classForName(names[i]);
  }
  return classes;
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str"}) public Class[] toClassObjects(String[] names) throws ClassNotFoundException {
  Class[] classes=new Class[names.length];
  for (int i=0; i != names.length; ++i) {
    Class<?> c=ReflectionHelper.primitiveToClass(names[i]);
    classes[i]=c != null ? c : classForName(names[i]);
  }
  return classes;
}
Program: 34510
Project: 34510
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private Class<?>[] detectRemoteInterfaces(Class<?> objClass) throws IOException {
  Class<?>[] result;
  List<Class> iflist=new ArrayList<Class>();
  iflist.addAll(Arrays.asList(objClass.getInterfaces()));
  Iterator<Class> it=iflist.iterator();
  while (it.hasNext()) {
    Class intf=it.next();
    if (!isRemoteInterface(intf)) {
      it.remove();
      continue;
    }
    for (    Class other : iflist) {
      if (intf != other && intf.isAssignableFrom(other)) {
        it.remove();
      }
    }
  }
  if (iflist.isEmpty()) {
    for (    Class intf : objClass.getInterfaces()) {
      if (!isRemoteInterface(intf)) {
        iflist.add(intf);
      }
    }
    reduceSuperTypes(iflist);
  }
  if (iflist.isEmpty()) {
    throw new IOException("String_Node_Str" + objClass.getName());
  }
  result=iflist.toArray(new Class[iflist.size()]);
  return result;
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) Class<?>[] detectRemoteInterfaces(Class<?> objClass) throws IOException {
  Class<?>[] result;
  List<Class<?>> iflist=new ArrayList<Class<?>>();
  collect(iflist,objClass);
  Iterator<Class<?>> it=iflist.iterator();
  while (it.hasNext()) {
    Class intf=it.next();
    if (!isRemoteInterface(intf)) {
      it.remove();
      continue;
    }
    for (    Class other : new ArrayList<Class<?>>(iflist)) {
      if (intf != other && intf.isAssignableFrom(other)) {
        it.remove();
      }
    }
  }
  if (iflist.isEmpty()) {
    for (    Class intf : objClass.getInterfaces()) {
      if (!isRemoteInterface(intf)) {
        iflist.add(intf);
      }
    }
    reduceSuperTypes(iflist);
  }
  if (iflist.isEmpty()) {
    throw new IOException("String_Node_Str" + objClass.getName());
  }
  result=iflist.toArray(new Class[iflist.size()]);
  return result;
}
Program: 34511
Project: 34511
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) private void reduceSuperTypes(List<Class> iflist){
  Iterator<Class> it=iflist.iterator();
  while (it.hasNext()) {
    Class intf=it.next();
    for (    Class other : iflist) {
      if (intf != other && intf.isAssignableFrom(other)) {
        it.remove();
      }
    }
  }
}

Fixed version (ground truth):
private void reduceSuperTypes(List<Class<?>> iflist){
  Iterator<Class<?>> it=iflist.iterator();
  while (it.hasNext()) {
    Class<?> intf=it.next();
    for (    Class<?> other : iflist) {
      if (intf != other && intf.isAssignableFrom(other)) {
        it.remove();
      }
    }
  }
}
Program: 34512
Project: 34512
Buggy source:
private void enqueue(TaskWrapper wrapper,long delay,TimeUnit tu){
synchronized (this) {
    if (!terminated) {
      delegate.schedule(wrapper,delay,tu);
      return;
    }
  }
  wrapper.abort();
}

Fixed version (ground truth):
private void enqueue(TaskWrapper wrapper,long delay,TimeUnit tu){
synchronized (this) {
    if (!terminated) {
      tasks.add(wrapper);
      delegate.schedule(wrapper,delay,tu);
      return;
    }
  }
  wrapper.abort();
}
Program: 34513
Project: 34513
Buggy source:
@Override public void interrupt(Thread taskThread){
synchronized (this) {
    if (canceled) {
      return;
    }
  }
  task.interrupt(taskThread);
}

Fixed version (ground truth):
@Override public void interrupt(Thread taskThread){
synchronized (this) {
    if (canceled || finished) {
      return;
    }
  }
  task.interrupt(taskThread);
}
Program: 34514
Project: 34514
Buggy source:
public void stop(){
  try {
    queue.offer(STOP,1000,TimeUnit.SECONDS);
    while (queue != null) {
      Thread.sleep(50);
    }
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
catch (  NullPointerException e) {
  }
  stdErr.println("String_Node_Str");
  if (threadPool != null) {
    threadPool.shutdown();
    try {
      threadPool.awaitTermination(100,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException e) {
    }
  }
  while (true) {
    while (0 < kill(threadGroup) + removeShutdownHooks() + removeAppContexts()) {
      try {
        Thread.sleep(10);
      }
 catch (      InterruptedException e) {
      }
      ++shutdownRetry;
      if (shutdownRetry > 1000) {
        break;
      }
    }
    try {
      if (!threadGroup.isDestroyed()) {
        threadGroup.destroy();
      }
      break;
    }
 catch (    IllegalThreadStateException e) {
      stdErr.println(e);
    }
    if (shutdownRetry > 1000) {
      stdErr.println("String_Node_Str");
      break;
    }
  }
  cl=null;
  threadGroup=null;
  isolateControlThread=null;
  sysProps=null;
  stdErr.println("String_Node_Str");
  System.gc();
  Runtime.getRuntime().runFinalization();
}

Fixed version (ground truth):
public void stop(){
  try {
    queue.offer(STOP,1000,TimeUnit.SECONDS);
    while (queue != null) {
      Thread.sleep(50);
    }
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
catch (  NullPointerException e) {
  }
  stdErr.println("String_Node_Str");
  if (threadPool != null) {
    threadPool.shutdown();
    try {
      threadPool.awaitTermination(100,TimeUnit.MILLISECONDS);
    }
 catch (    InterruptedException e) {
    }
  }
  while (true) {
    while (0 < kill(threadGroup) + removeShutdownHooks() + removeAppContexts()) {
      try {
        Thread.sleep(10);
      }
 catch (      InterruptedException e) {
      }
      ++shutdownRetry;
      if (shutdownRetry > 1000) {
        break;
      }
    }
    try {
      if (!threadGroup.isDestroyed()) {
        threadGroup.destroy();
      }
      break;
    }
 catch (    IllegalThreadStateException e) {
      stdErr.println(e);
    }
    if (shutdownRetry > 1000) {
      stdErr.println("String_Node_Str");
      break;
    }
  }
  threadKillers=null;
  cl=null;
  threadGroup=null;
  isolateControlThread=null;
  sysProps=null;
  stdErr.println("String_Node_Str");
  System.gc();
  Runtime.getRuntime().runFinalization();
}
Program: 34515
Project: 34515
Buggy source:
/** 
 * Creates   {@link ViManager} with {@link Isolate} provider.
 * @param packages - list of packages to "isolate"
 */
public static ViManager createIsolateCloud(String... packages){
  return IsolateCloudFactory.createCloud(packages);
}

Fixed version (ground truth):
/** 
 * Creates   {@link ViManager} with {@link Isolate} provider.
 * @param packages - list of packages to "isolate"
 */
@Deprecated public static ViManager createIsolateCloud(String... packages){
  throw new UnsupportedOperationException();
}
Program: 34517
Project: 34517
Buggy source:
public ShareJreClasses(){
  try {
    jvmHome=new File(System.getProperty("String_Node_Str")).toURI().toURL();
  }
 catch (  MalformedURLException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public ShareJreClasses(){
  try {
    jvmHome=getJreRoot();
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}
Program: 34518
Project: 34518
Buggy source:
@SuppressWarnings("String_Node_Str") private void tryStop(Thread thread){
  Object target=getField(thread,"String_Node_Str");
  if (target != null) {
    try {
      Method m=target.getClass().getMethod("String_Node_Str");
      m.setAccessible(true);
      m.invoke(target);
      stdErr.println("String_Node_Str" + thread.getName());
    }
 catch (    Exception e) {
    }
  }
}

Fixed version (ground truth):
private void tryStop(Thread thread){
  Object target=getField(thread,"String_Node_Str");
  if (target != null) {
    try {
      Method m=target.getClass().getMethod("String_Node_Str");
      m.setAccessible(true);
      m.invoke(target);
      stdErr.println("String_Node_Str" + thread.getName());
    }
 catch (    Exception e) {
    }
  }
}
Program: 34519
Project: 34519
Buggy source:
public void enableHeartbeatDeatchWatch(){
  Thread t=new Thread(){
    @Override public void run(){
      while (true) {
        Thread.currentThread().setName("String_Node_Str" + SimpleDateFormat.getDateTimeInstance().format(new Date()));
        long stale=TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - lastHeartBeat);
        if (stale > heartBeatTimeout) {
          System.err.println("String_Node_Str");
          Runtime.getRuntime().halt(0);
        }
        try {
          Thread.sleep(1000);
        }
 catch (        InterruptedException e) {
        }
      }
    }
  }
;
  t.setDaemon(true);
  t.setName("String_Node_Str");
  t.start();
}

Fixed version (ground truth):
public void enableHeartbeatDeatchWatch(){
  if (heartBeatTimeout != Integer.MAX_VALUE) {
    Thread t=new Thread(){
      @Override public void run(){
        while (true) {
          Thread.currentThread().setName("String_Node_Str" + SimpleDateFormat.getDateTimeInstance().format(new Date()));
          long stale=TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - lastHeartBeat);
          if (stale > heartBeatTimeout) {
            System.err.println("String_Node_Str");
            Runtime.getRuntime().halt(0);
          }
          try {
            Thread.sleep(1000);
          }
 catch (          InterruptedException e) {
          }
        }
      }
    }
;
    t.setDaemon(true);
    t.setName("String_Node_Str");
    t.start();
  }
}
Program: 34520
Project: 34520
Buggy source:
public void init() throws JSchException, SftpException, IOException {
  sftp=(ChannelSftp)session.openChannel("String_Node_Str");
  sftp.connect();
  try {
    sftp.mkdir(agentHome);
  }
 catch (  SftpException e) {
  }
  sftp.cd(agentHome);
  agentHomePath=sftp.pwd();
  sftpMkdir(sftp,CACHE_PATH);
}

Fixed version (ground truth):
public void init() throws JSchException, SftpException, IOException {
  sftp=(ChannelSftp)session.openChannel("String_Node_Str");
  sftp.connect();
  try {
    sftp.mkdir(agentHome);
  }
 catch (  SftpException e) {
  }
  try {
    sftp.cd(agentHome);
  }
 catch (  SftpException e) {
    throw new SftpException(e.id,"String_Node_Str" + agentHome + "String_Node_Str"+ e.getMessage()+ "String_Node_Str");
  }
  agentHomePath=sftp.pwd();
  sftpMkdir(sftp,CACHE_PATH);
}
Program: 34521
Project: 34521
Buggy source:
public void init() throws JSchException, SftpException, IOException, InterruptedException {
  remoteCache=new RemoteFileCache();
  remoteCache.setAgentHome(agentHome);
  remoteCache.setSession(getSession());
  remoteCache.init();
  initRemoteClassPath();
  ExecCommand halloWorldCmd=new ExecCommand(javaExecPath);
  halloWorldCmd.setWorkDir(agentHome);
  halloWorldCmd.addArg("String_Node_Str").addArg(bootJarPath).addArg(HalloWorld.class.getName());
  Process rp=createDirectProcess(halloWorldCmd);
  rp.getOutputStream().close();
  BackgroundStreamDumper.link(rp.getInputStream(),System.out,false);
  BackgroundStreamDumper.link(rp.getErrorStream(),System.err,false);
  int rcode=rp.waitFor();
  if (rcode != 0) {
    throw new IOException("String_Node_Str");
  }
  ;
  if (USE_EXEC_RELAY) {
    initControlSession();
  }
}

Fixed version (ground truth):
public void init() throws JSchException, SftpException, IOException, InterruptedException {
  remoteCache=new RemoteFileCache();
  remoteCache.setAgentHome(agentHome);
  remoteCache.setSession(getSession());
  remoteCache.init();
  initRemoteClassPath();
  ExecCommand halloWorldCmd=new ExecCommand(javaExecPath);
  halloWorldCmd.setWorkDir(agentHome);
  halloWorldCmd.addArg("String_Node_Str").addArg(bootJarPath).addArg(HalloWelt.class.getName());
  Process rp=createDirectProcess(halloWorldCmd);
  rp.getOutputStream().close();
  BackgroundStreamDumper.link(rp.getInputStream(),System.out,false);
  BackgroundStreamDumper.link(rp.getErrorStream(),System.err,false);
  int rcode=rp.waitFor();
  if (rcode != 0) {
    throw new IOException("String_Node_Str");
  }
  ;
  if (USE_EXEC_RELAY) {
    initControlSession();
  }
}
Program: 34522
Project: 34522
Buggy source:
private int bufferRead(byte[] target,int offs,int size) throws IOException {
  int pending=waitForData();
  if (pending == 0) {
    return -1;
  }
  int run=Math.min(size,pending);
  run=Math.min(run,buffer.length - in);
  System.arraycopy(buffer,in,target,offs,run);
  in=(in + run) % buffer.length;
  readNotify(run);
  return run;
}

Fixed version (ground truth):
private int bufferRead(byte[] target,int offs,int size) throws IOException {
  if (size == 0) {
    if (closedByWriter) {
      return -1;
    }
 else {
      return 0;
    }
  }
  int pending=waitForData();
  if (pending == 0) {
    return -1;
  }
  int run=Math.min(size,pending);
  run=Math.min(run,buffer.length - in);
  System.arraycopy(buffer,in,target,offs,run);
  in=(in + run) % buffer.length;
  readNotify(run);
  return run;
}
Program: 34523
Project: 34523
Buggy source:
@Override public void streamError(DuplexStream socket,Object stream,Exception error){
synchronized (pingSingnal) {
    pingSingnal.notifyAll();
  }
  try {
    if (socket != null) {
      socket.close();
    }
  }
 catch (  IOException e) {
    LOGGER.error("String_Node_Str" + socket,e);
  }
}

Fixed version (ground truth):
@Override public void streamError(DuplexStream socket,Object stream,Exception error){
  LOGGER.warn("String_Node_Str" + error.toString());
synchronized (pingSingnal) {
    pingSingnal.notifyAll();
  }
  try {
    if (socket != null) {
      socket.close();
    }
  }
 catch (  IOException e) {
    LOGGER.error("String_Node_Str" + socket,e);
  }
}
Program: 34524
Project: 34524
Buggy source:
public boolean hasName(){
  return name != null && name.hasFullName();
}

Fixed version (ground truth):
public boolean hasName(){
  return name != null && name.hasName();
}
Program: 34525
Project: 34525
Buggy source:
public boolean hasExpirationDate(){
  return expirationDate != null;
}

Fixed version (ground truth):
public boolean hasExpirationDate(){
  return expirationDate != null && expirationDate.hasExpirationDate();
}
Program: 34526
Project: 34526
Buggy source:
public BankCard(final PrimaryAccountNumber pan,final Name name,final ExpirationDate expirationDate,final ServiceCode serviceCode){
  this.pan=pan;
  this.name=name;
  this.expirationDate=expirationDate;
  this.serviceCode=serviceCode;
}

Fixed version (ground truth):
public BankCard(final PrimaryAccountNumber pan,final Name name,final ExpirationDate expirationDate,final ServiceCode serviceCode){
  if (pan != null) {
    this.pan=pan;
  }
 else {
    this.pan=new PrimaryAccountNumber();
  }
  if (name != null) {
    this.name=name;
  }
 else {
    this.name=new Name();
  }
  if (expirationDate != null) {
    this.expirationDate=expirationDate;
  }
 else {
    this.expirationDate=new ExpirationDate();
  }
  if (serviceCode != null) {
    this.serviceCode=serviceCode;
  }
 else {
    this.serviceCode=new ServiceCode();
  }
}
Program: 34527
Project: 34527
Buggy source:
public Name(final String rawName){
  super(rawName);
  final String[] splitName=trimToEmpty(rawName).split("String_Node_Str");
  firstName=capitalize(splitName[splitName.length - 1]);
  if (splitName.length > 1) {
    lastName=capitalize(splitName[0]);
  }
 else {
    lastName="String_Node_Str";
  }
}

Fixed version (ground truth):
public Name(final String rawName){
  super(rawName);
  final String[] splitName=trimToEmpty(rawName).split("String_Node_Str");
  firstName=name(splitName,1);
  lastName=name(splitName,0);
}
Program: 34528
Project: 34528
Buggy source:
public String getFullName(){
  final StringBuilder buffer=new StringBuilder();
  buffer.append(trimToEmpty(firstName));
  if (!isBlank(lastName)) {
    buffer.append("String_Node_Str").append(trimToEmpty(lastName));
  }
  return buffer.toString();
}

Fixed version (ground truth):
public String getFullName(){
  final StringBuilder buffer=new StringBuilder();
  if (hasFirstName()) {
    buffer.append(trimToEmpty(firstName));
  }
  if (hasFullName()) {
    buffer.append("String_Node_Str");
  }
  if (hasLastName()) {
    buffer.append(trimToEmpty(lastName));
  }
  return buffer.toString();
}
Program: 34529
Project: 34529
Buggy source:
public boolean hasName(){
  return name != null && name.hasFullName();
}

Fixed version (ground truth):
public boolean hasName(){
  return name != null && name.hasName();
}
Program: 34530
Project: 34530
Buggy source:
public boolean hasExpirationDate(){
  return expirationDate != null;
}

Fixed version (ground truth):
public boolean hasExpirationDate(){
  return expirationDate != null && expirationDate.hasExpirationDate();
}
Program: 34531
Project: 34531
Buggy source:
@Test public void trackA() throws Exception {
  final BankCardMagneticTrack trackA=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackA.toCardInfo();
  System.out.println(trackA);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.MasterCard,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2016,4),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackA() throws Exception {
  final BankCardMagneticTrack trackA=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackA.toCardInfo();
  System.out.println(trackA);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.MasterCard,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2016,4),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34532
Project: 34532
Buggy source:
@Test public void trackB() throws Exception {
  final BankCardMagneticTrack trackB=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackB.toCardInfo();
  System.out.println(trackB);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2016,5),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackB() throws Exception {
  final BankCardMagneticTrack trackB=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackB.toCardInfo();
  System.out.println(trackB);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2016,5),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34533
Project: 34533
Buggy source:
@Ignore @Test public void trackI() throws Exception {
  final BankCardMagneticTrack trackI=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackI.toCardInfo();
  System.out.println(trackI);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Ignore @Test public void trackI() throws Exception {
  final BankCardMagneticTrack trackI=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackI.toCardInfo();
  System.out.println(trackI);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34534
Project: 34534
Buggy source:
@Test public void trackJ() throws Exception {
  final BankCardMagneticTrack trackJ=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackJ.toCardInfo();
  System.out.println(trackJ);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackJ() throws Exception {
  final BankCardMagneticTrack trackJ=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackJ.toCardInfo();
  System.out.println(trackJ);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34535
Project: 34535
Buggy source:
@Test public void trackG() throws Exception {
  final BankCardMagneticTrack trackG=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackG.toCardInfo();
  System.out.println(trackG);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.AmericanExpress,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,8),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackG() throws Exception {
  final BankCardMagneticTrack trackG=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackG.toCardInfo();
  System.out.println(trackG);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.AmericanExpress,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,8),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34536
Project: 34536
Buggy source:
@Test public void trackH() throws Exception {
  final BankCardMagneticTrack trackH=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackH.toCardInfo();
  System.out.println(trackH);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackH() throws Exception {
  final BankCardMagneticTrack trackH=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackH.toCardInfo();
  System.out.println(trackH);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(null,cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34537
Project: 34537
Buggy source:
@Test public void trackE() throws Exception {
  final BankCardMagneticTrack trackE=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackE.toCardInfo();
  System.out.println(trackE);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2049,12),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackE() throws Exception {
  final BankCardMagneticTrack trackE=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackE.toCardInfo();
  System.out.println(trackE);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.unknown,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2049,12),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34538
Project: 34538
Buggy source:
@Test public void trackF() throws Exception {
  final BankCardMagneticTrack trackF=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackF.toCardInfo();
  System.out.println(trackF);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,2),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackF() throws Exception {
  final BankCardMagneticTrack trackF=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackF.toCardInfo();
  System.out.println(trackF);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Visa,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,2),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34539
Project: 34539
Buggy source:
@Test public void trackC() throws Exception {
  final BankCardMagneticTrack trackC=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackC.toCardInfo();
  System.out.println(trackC);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.MasterCard,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2017,1),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackC() throws Exception {
  final BankCardMagneticTrack trackC=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackC.toCardInfo();
  System.out.println(trackC);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.MasterCard,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2017,1),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34540
Project: 34540
Buggy source:
@Test public void trackD() throws Exception {
  final BankCardMagneticTrack trackD=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackD.toCardInfo();
  System.out.println(trackD);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Discover,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,10),cardInfo.getExpirationDate());
}

Fixed version (ground truth):
@Test public void trackD() throws Exception {
  final BankCardMagneticTrack trackD=BankCardMagneticTrack.from("String_Node_Str");
  final BankCard cardInfo=trackD.toCardInfo();
  System.out.println(trackD);
  assertEquals("String_Node_Str",cardInfo.getPrimaryAccountNumber().getAccountNumber());
  assertEquals(CardBrand.Discover,cardInfo.getPrimaryAccountNumber().getCardBrand());
  assertEquals("String_Node_Str",cardInfo.getName().toString());
  assertEquals(YearMonth.of(2015,10),cardInfo.getExpirationDate().getExpirationDate());
}
Program: 34541
Project: 34541
Buggy source:
HeeMessage(String modid,String key,String data,NBTTagCompound nbt){
  this.modid=modid;
  this.key=key;
  this.data=data;
  this.nbt=nbt;
}

Fixed version (ground truth):
HeeMessage(String modid,String key,String data,NBTTagCompound nbt){
  this.modid=modid;
  this.key=StringUtils.removeStart(key,"String_Node_Str");
  this.data=data;
  this.nbt=nbt;
}
Program: 34542
Project: 34542
Buggy source:
public static boolean runMessage(String key,NBTTagCompound root){
  MessagePattern pattern=registry.get(StringUtils.removeStart(key,"String_Node_Str"));
  if (pattern == null) {
    MessageLogger.logError("String_Node_Str",key);
    return false;
  }
  return pattern.tryRun(root);
}

Fixed version (ground truth):
public static boolean runMessage(String key,NBTTagCompound root){
  MessagePattern pattern=registry.get(key);
  if (pattern == null) {
    MessageLogger.logError("String_Node_Str",key);
    return false;
  }
  return pattern.tryRun(root);
}
Program: 34543
Project: 34543
Buggy source:
public static void logError(String message,Object... data){
  Log.error(prefixError + message,data);
}

Fixed version (ground truth):
public static void logError(String message,Object... data){
  Log.info(prefixError + message,data);
}
Program: 34544
Project: 34544
Buggy source:
@Override public void tick(World world,NBTTagCompound nbt){
  if (++tickLimiter > tickRate) {
    tickLimiter=0;
    for (int attempt=0; attempt < attemptsPerTick; attempt++) {
      spawnEntries.getRandomItem(world.rand).trySpawn(world,attemptsPerMob);
    }
  }
}

Fixed version (ground truth):
@Override public void tick(World world,NBTTagCompound nbt){
  if (++tickLimiter > tickRate) {
    tickLimiter=0;
    if (EntitySelector.living(world,area.toAABB()).size() > mobLimit.applyAsInt(world))     return;
    for (int attempt=0; attempt < attemptsPerTick; attempt++) {
      spawnEntries.getRandomItem(world.rand).trySpawn(world,attemptsPerMob);
    }
  }
}
Program: 34545
Project: 34545
Buggy source:
@Override public T trySpawn(World world,int attempts){
  int amount=groupSize.next(world.rand);
  if (amount == 0)   return null;
  T first=super.trySpawn(world,attempts);
  if (first == null)   return null;
  while (--amount > 0) {
    T entity=constructor.apply(world);
    for (int attempt=0; attempt < attempts; attempt++) {
      groupLocationFinder.accept(first,entity);
      if (spawnCondition.test(entity))       world.spawnEntityInWorld(entity);
    }
  }
  return first;
}

Fixed version (ground truth):
@Override public T trySpawn(World world,int attempts){
  int amount=groupSize.next(world.rand);
  if (amount == 0)   return null;
  T first=super.trySpawn(world,attempts);
  if (first == null)   return null;
  while (--amount > 0) {
    T entity=constructor.apply(world);
    for (int attempt=0; attempt < attempts; attempt++) {
      groupLocationFinder.accept(first,entity);
      if (spawnCondition.test(entity)) {
        world.spawnEntityInWorld(entity);
        break;
      }
    }
  }
  return first;
}
Program: 34547
Project: 34547
Buggy source:
public static final EnumSet<?> getVariations(ItemStack is){
  EndTerritory territory=getTerritory(is);
  if (territory == null)   return EmptyEnumSet.get();
  return territory.properties.deserialize(ItemUtil.getTagRoot(is,false).getInteger("String_Node_Str"));
}

Fixed version (ground truth):
public static final EnumSet<? extends Enum<?>> getVariations(ItemStack is){
  EndTerritory territory=getTerritory(is);
  if (territory == null)   return EmptyEnumSet.get();
  return territory.properties.deserialize(ItemUtil.getTagRoot(is,false).getInteger("String_Node_Str"));
}
Program: 34548
Project: 34548
Buggy source:
public static void register(){
  if (instance != null)   throw new RuntimeException("String_Node_Str");
  instance=new DragonChunkManager();
  MinecraftForge.EVENT_BUS.register(instance);
  ForgeChunkManager.setForcedChunkLoadingCallback(HardcoreEnderExpansion.instance,instance);
}

Fixed version (ground truth):
public static void register(){
  MinecraftForge.EVENT_BUS.register(instance);
  ForgeChunkManager.setForcedChunkLoadingCallback(HardcoreEnderExpansion.instance,instance);
}
Program: 34549
Project: 34549
Buggy source:
public String getModId();

Fixed version (ground truth):
String getModId();
Program: 34550
Project: 34550
Buggy source:
public void integrate();

Fixed version (ground truth):
void integrate();