nus-yam/ex-repair huggingface dataset:
Program: 86492
Project: 86492
Buggy source:
public byte[] request(final String cluster,byte[] request,long timeoutMillis) throws IOException, InterruptedException, RemoteException, TimeoutException {
  final Long id=nextId.addAndGet(1);
  final Result result=new Result();
  pending.put(id,result);
  try {
    protocol.send(OpCode.REQUEST,() -> {
      protocol.sendVarint(id);
      protocol.sendString(cluster);
      protocol.sendBinary(request);
      protocol.sendVarint(timeoutMillis);
    }
);
    result.wait();
    if (result.timeout) {
      throw new TimeoutException("String_Node_Str");
    }
 else     if (result.error != null) {
      throw new RemoteException(result.error);
    }
 else {
      return result.reply;
    }
  }
  finally {
    pending.remove(id);
  }
}

Fixed version (ground truth):
public byte[] request(final String cluster,byte[] request,long timeoutMillis) throws IOException, InterruptedException, RemoteException, TimeoutException {
  final Long id=nextId.addAndGet(1);
  final Result result=new Result();
  pending.put(id,result);
  try {
    protocol.send(OpCode.REQUEST,() -> {
      protocol.sendVarint(id);
      protocol.sendString(cluster);
      protocol.sendBinary(request);
      protocol.sendVarint(timeoutMillis);
    }
);
synchronized (result) {
      result.wait();
    }
    if (result.timeout) {
      throw new TimeoutException("String_Node_Str");
    }
 else     if (result.error != null) {
      throw new RemoteException(result.error);
    }
 else {
      return result.reply;
    }
  }
  finally {
    pending.remove(id);
  }
}
Program: 86493
Project: 86493
Buggy source:
public void handleReply() throws IOException {
  final long id=protocol.receiveVarint();
  final Result result=pending.get(id);
  if (result == null) {
    return;
  }
  result.timeout=protocol.receiveBoolean();
  if (!result.timeout) {
    final boolean success=protocol.receiveBoolean();
    if (success) {
      result.reply=protocol.receiveBinary();
    }
 else {
      result.error=protocol.receiveString();
    }
  }
  result.notify();
}

Fixed version (ground truth):
public void handleReply() throws IOException {
  final long id=protocol.receiveVarint();
  final Result result=pending.get(id);
  if (result == null) {
    return;
  }
  result.timeout=protocol.receiveBoolean();
  if (!result.timeout) {
    final boolean success=protocol.receiveBoolean();
    if (success) {
      result.reply=protocol.receiveBinary();
    }
 else {
      result.error=protocol.receiveString();
    }
  }
synchronized (result) {
    result.notify();
  }
}
Program: 86494
Project: 86494
Buggy source:
public void reply(final long requestId,final byte[] response,final String error) throws IOException {
  protocol.send(OpCode.REPLY,() -> {
    protocol.sendVarint(requestId);
    protocol.sendBoolean(error == null);
    if (error == null) {
      protocol.sendBinary(response);
    }
 else {
      protocol.sendString(error);
    }
  }
);
}

Fixed version (ground truth):
public void reply(final long id,final byte[] response,final String error) throws IOException {
  protocol.send(OpCode.REPLY,() -> {
    protocol.sendVarint(id);
    protocol.sendBoolean(error == null);
    if (error == null) {
      protocol.sendBinary(response);
    }
 else {
      protocol.sendString(error);
    }
  }
);
}
Program: 86495
Project: 86495
Buggy source:
public Connection(final int relayPort){
}

Fixed version (ground truth):
Connection(int port,@NotNull String clusterName,ServiceHandler handler) throws IOException {
  socket=new Socket(InetAddress.getLoopbackAddress(),port);
  protocol=new ProtocolBase(socket.getInputStream(),socket.getOutputStream());
  callbacks=new CallbackHandlerRegistry();
  broadcastTransfer=new BroadcastTransfer(protocol,callbacks);
  requestTransfer=new RequestTransfer(protocol,callbacks);
  replyTransfer=new ReplyTransfer(protocol,callbacks);
  publishTransfer=new PublishTransfer(protocol,callbacks);
  subscribeTransfer=new SubscribeTransfer(protocol,callbacks);
  tunnelTransfer=new TunnelTransfer(protocol,callbacks);
  init(clusterName);
  handleInit();
}
Program: 86496
Project: 86496
Buggy source:
private static void testConnection(TestConsumer testConsumer) throws Exception {
  try (final Connection connection=new Connection(IRIS_PORT,CLUSTER_NAME)){
    final Semaphore semaphore=new Semaphore(1);
    semaphore.acquire();
    testConsumer.accept(connection,semaphore);
    Assert.assertTrue("String_Node_Str",semaphore.tryAcquire(TIMEOUT_MILLIS,TimeUnit.MILLISECONDS));
  }
 catch (  IOException e) {
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
private static void testConnection(TestConsumer testConsumer) throws Exception {
  try (final Connection connection=new Connection(IRIS_PORT)){
    final Semaphore semaphore=new Semaphore(1);
    semaphore.acquire();
    testConsumer.accept(connection,semaphore);
    Assert.assertTrue("String_Node_Str",semaphore.tryAcquire(TIMEOUT_MILLIS,TimeUnit.MILLISECONDS));
  }
 catch (  IOException e) {
    Assert.fail(e.getMessage());
  }
}
Program: 86497
Project: 86497
Buggy source:
@Test public void handshakeIsWorking() throws Exception {
  try (final Connection ignored=new Connection(IRIS_PORT,CLUSTER_NAME)){
  }
 catch (  IOException e) {
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
@Test public void handshakeIsWorking() throws Exception {
  try (final Connection ignored=new Connection(IRIS_PORT)){
  }
 catch (  IOException e) {
    Assert.fail(e.getMessage());
  }
}
Program: 86498
Project: 86498
Buggy source:
/** 
 * 展开slideable view
 * @param mSlideOffset 定义展开slideable view到上面位置 值范围是0-1
 * @return
 */
public boolean expandPane(float mSlideOffset){
  if (!isPaneVisible()) {
    showPane();
  }
  return expandPane(mSlideableView,0,mSlideOffset);
}

Fixed version (ground truth):
/** 
 * 展开slideable view
 * @param mSlideOffset 定义展开slideable view到上面位置 值范围是0-1
 * @return
 */
public boolean expandPane(float mSlideOffset){
  if (mSlideState == SlideState.EXPANDED)   return false;
  mSlideableView.setVisibility(View.VISIBLE);
  if (!isPaneVisible()) {
    showPane();
  }
  return expandPane(mSlideableView,0,mSlideOffset);
}
Program: 86499
Project: 86499
Buggy source:
@Override protected boolean drawChild(Canvas canvas,View child,long drawingTime){
  final LayoutParams lp=(LayoutParams)child.getLayoutParams();
  boolean result;
  final int save=canvas.save(Canvas.CLIP_SAVE_FLAG);
  boolean drawScrim=false;
  if (mCanSlide && !lp.slideable && mSlideableView != null) {
    if (!mOverlayContent) {
      canvas.getClipBounds(mTmpRect);
      if (mIsSlidingUp) {
        mTmpRect.bottom=Math.min(mTmpRect.bottom,mSlideableView.getTop());
      }
 else {
        mTmpRect.top=Math.max(mTmpRect.top,mSlideableView.getBottom());
      }
      canvas.clipRect(mTmpRect);
    }
    if (mSlideOffset < 1) {
      drawScrim=true;
    }
  }
  result=super.drawChild(canvas,child,drawingTime);
  canvas.restoreToCount(save);
  if (drawScrim) {
    final int baseAlpha=(mCoveredFadeColor & 0xff000000) >>> 24;
    final int imag=(int)(baseAlpha * (1 - mSlideOffset));
    final int color=imag << 24 | (mCoveredFadeColor & 0xffffff);
    mCoveredFadePaint.setColor(color);
    canvas.drawRect(mTmpRect,mCoveredFadePaint);
  }
  return result;
}

Fixed version (ground truth):
@Override protected boolean drawChild(Canvas canvas,View child,long drawingTime){
  final LayoutParams lp=(LayoutParams)child.getLayoutParams();
  boolean result;
  final int save=canvas.save(Canvas.CLIP_SAVE_FLAG);
  boolean drawScrim=false;
  if (mCanSlide && !lp.slideable && mSlideableView != null) {
    if (!mOverlayContent) {
      canvas.getClipBounds(mTmpRect);
      if (mIsSlidingUp) {
        mTmpRect.bottom=Math.min(mTmpRect.bottom,mSlideableView.getTop());
      }
 else {
        mTmpRect.top=Math.max(mTmpRect.top,mSlideableView.getBottom());
      }
      canvas.clipRect(mTmpRect);
    }
    if (mSlideOffset < 1) {
      drawScrim=true;
    }
  }
  result=super.drawChild(canvas,child,drawingTime);
  canvas.restoreToCount(save);
  if (drawScrim && mCoveredFadeColor != 0) {
    final int baseAlpha=(mCoveredFadeColor & 0xff000000) >>> 24;
    final int imag=(int)(baseAlpha * (1 - mSlideOffset));
    final int color=imag << 24 | (mCoveredFadeColor & 0xffffff);
    mCoveredFadePaint.setColor(color);
    canvas.drawRect(mTmpRect,mCoveredFadePaint);
  }
  return result;
}
Program: 86500
Project: 86500
Buggy source:
private void launch(){
  SharedPreferences settings;
  settings=getSharedPreferences("String_Node_Str",Context.MODE_PRIVATE);
  xbmcActivity=settings.getString("String_Node_Str",getString(R.string.xbmc_activity_default));
  Intent activityIntent;
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
    activityIntent=Intent.makeMainActivity(ComponentName.unflattenFromString(xbmcActivity));
  }
 else {
    activityIntent=new Intent(Intent.ACTION_MAIN);
    activityIntent.setComponent(ComponentName.unflattenFromString(xbmcActivity));
    activityIntent.addCategory(Intent.CATEGORY_LAUNCHER);
  }
  try {
    startActivity(activityIntent);
    return;
  }
 catch (  ActivityNotFoundException e) {
    Log.d(TAG,"String_Node_Str" + xbmcActivity + "String_Node_Str");
    Intent launchSettings=new Intent(this,LauncherSettingsActivity.class);
    startActivity(launchSettings);
  }
}

Fixed version (ground truth):
private void launch(){
  SharedPreferences settings;
  settings=getSharedPreferences("String_Node_Str",Context.MODE_PRIVATE);
  xbmcActivity=settings.getString("String_Node_Str",getString(R.string.xbmc_activity_default));
  Intent activityIntent;
  activityIntent=new Intent(Intent.ACTION_MAIN);
  activityIntent.setComponent(ComponentName.unflattenFromString(xbmcActivity));
  activityIntent.addCategory(Intent.CATEGORY_HOME);
  try {
    startActivity(activityIntent);
    return;
  }
 catch (  ActivityNotFoundException e) {
    Log.d(TAG,"String_Node_Str" + xbmcActivity + "String_Node_Str");
    Intent launchSettings=new Intent(this,LauncherSettingsActivity.class);
    startActivity(launchSettings);
  }
}
Program: 86501
Project: 86501
Buggy source:
public NeoProfile run(NeoProfiler parent){
  NodesProfile p=new NodesProfile();
  List<Object> labels=runQueryMultipleResult(parent,"String_Node_Str","String_Node_Str");
  for (  Object l : labels) {
    parent.schedule(new LabelProfiler("String_Node_Str" + l));
  }
  p.addObservation("String_Node_Str",labels);
  p.addObservation("String_Node_Str",runQuerySingleResult(parent,"String_Node_Str","String_Node_Str"));
  return p;
}

Fixed version (ground truth):
public NeoProfile run(NeoProfiler parent){
  NodesProfile p=new NodesProfile();
  List<Object> labels=runQueryMultipleResult(parent,"String_Node_Str","String_Node_Str");
  for (  Object l : labels) {
    String labelTxt="String_Node_Str" + l;
    if (labelTxt != null && !"String_Node_Str".equals(labelTxt) && !"String_Node_Str".equals(labelTxt))     parent.schedule(new LabelProfiler("String_Node_Str" + l));
  }
  p.addObservation("String_Node_Str",labels);
  p.addObservation(NeoProfile.OB_COUNT,runQuerySingleResult(parent,"String_Node_Str","String_Node_Str"));
  return p;
}
Program: 86502
Project: 86502
Buggy source:
/** 
 * This method will scan the dependencies in this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returned will be reflected in the Model as it is thesame object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ProjectVersionRef} to the original {@link Dependency}
 * @throws ManipulationException if an error occurs
 */
public HashMap<ProjectVersionRef,Dependency> getResolvedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedDependencies == null) {
    resolvedDependencies=new HashMap<>();
    resolveDeps(session,getModel().getDependencies(),resolvedDependencies);
  }
  return resolvedDependencies;
}

Fixed version (ground truth):
/** 
 * This method will scan the dependencies in this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returned will be reflected in the Model as it is thesame object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ArtifactRef} to the original {@link Dependency}
 * @throws ManipulationException if an error occurs
 */
public HashMap<ArtifactRef,Dependency> getResolvedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedDependencies == null) {
    resolvedDependencies=new HashMap<>();
    resolveDeps(session,getModel().getDependencies(),resolvedDependencies);
  }
  return resolvedDependencies;
}
Program: 86503
Project: 86503
Buggy source:
/** 
 * This method will scan the dependencies in the dependencyManagement section of the potentially active Profiles in this project and return a fully resolved list. Note that while updating the   {@link Dependency}reference returned will be reflected in the Model as it is the same object, if you wish to remove or add items to the Model then you must use   {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ProjectVersionRef} to the original {@link Dependency} (that were within DependencyManagement)
 * @throws ManipulationException if an error occurs
 */
public HashMap<Profile,HashMap<ProjectVersionRef,Dependency>> getResolvedProfileManagedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedProfileManagedDependencies == null) {
    resolvedProfileManagedDependencies=new HashMap<>();
    for (    final Profile profile : ProfileUtils.getProfiles(session,model)) {
      HashMap<ProjectVersionRef,Dependency> profileDeps=new HashMap<>();
      final DependencyManagement dm=profile.getDependencyManagement();
      if (!(dm == null || dm.getDependencies() == null)) {
        resolveDeps(session,dm.getDependencies(),profileDeps);
        resolvedProfileManagedDependencies.put(profile,profileDeps);
      }
    }
  }
  return resolvedProfileManagedDependencies;
}

Fixed version (ground truth):
/** 
 * This method will scan the dependencies in the dependencyManagement section of the potentially active Profiles in this project and return a fully resolved list. Note that while updating the   {@link Dependency}reference returned will be reflected in the Model as it is the same object, if you wish to remove or add items to the Model then you must use   {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ArtifactRef} to the original {@link Dependency} (that were within DependencyManagement)
 * @throws ManipulationException if an error occurs
 */
public HashMap<Profile,HashMap<ArtifactRef,Dependency>> getResolvedProfileManagedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedProfileManagedDependencies == null) {
    resolvedProfileManagedDependencies=new HashMap<>();
    for (    final Profile profile : ProfileUtils.getProfiles(session,model)) {
      HashMap<ArtifactRef,Dependency> profileDeps=new HashMap<>();
      final DependencyManagement dm=profile.getDependencyManagement();
      if (!(dm == null || dm.getDependencies() == null)) {
        resolveDeps(session,dm.getDependencies(),profileDeps);
        resolvedProfileManagedDependencies.put(profile,profileDeps);
      }
    }
  }
  return resolvedProfileManagedDependencies;
}
Program: 86504
Project: 86504
Buggy source:
private void resolveDeps(MavenSessionHandler session,List<Dependency> deps,HashMap<ProjectVersionRef,Dependency> resolvedDependencies) throws ManipulationException {
  for (  Dependency d : deps) {
    String g=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getGroupId()) ? getGroupId() : d.getGroupId());
    String a=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getArtifactId()) ? getArtifactId() : d.getArtifactId());
    String v=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getVersion()) ? d.getVersion() : d.getVersion());
    if (isNotEmpty(g) && isNotEmpty(a) && isNotEmpty(v)) {
      resolvedDependencies.put(new SimpleProjectVersionRef(g,a,v),d);
    }
  }
}

Fixed version (ground truth):
private void resolveDeps(MavenSessionHandler session,List<Dependency> deps,HashMap<ArtifactRef,Dependency> resolvedDependencies) throws ManipulationException {
  for (  Dependency d : deps) {
    String g=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getGroupId()) ? getGroupId() : d.getGroupId());
    String a=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getArtifactId()) ? getArtifactId() : d.getArtifactId());
    String v=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(d.getVersion()) ? d.getVersion() : d.getVersion());
    if (isNotEmpty(g) && isNotEmpty(a) && isNotEmpty(v)) {
      Dependency old=resolvedDependencies.put(new SimpleArtifactRef(g,a,v,d.getType(),d.getClassifier()),d);
      if (old != null) {
        logger.error("String_Node_Str",old.toString());
      }
    }
  }
}
Program: 86505
Project: 86505
Buggy source:
/** 
 * This method will scan the dependencies in the potentially active Profiles in this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returnedwill be reflected in the Model as it is the same object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ProjectVersionRef} to the original {@link Dependency}
 * @throws ManipulationException if an error occurs
 */
public HashMap<Profile,HashMap<ProjectVersionRef,Dependency>> getResolvedProfileDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedProfileDependencies == null) {
    resolvedProfileDependencies=new HashMap<>();
    for (    final Profile profile : ProfileUtils.getProfiles(session,model)) {
      HashMap<ProjectVersionRef,Dependency> profileDeps=new HashMap<>();
      resolveDeps(session,profile.getDependencies(),profileDeps);
      resolvedProfileDependencies.put(profile,profileDeps);
    }
  }
  return resolvedProfileDependencies;
}

Fixed version (ground truth):
/** 
 * This method will scan the dependencies in the potentially active Profiles in this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returnedwill be reflected in the Model as it is the same object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ArtifactRef} to the original {@link Dependency}
 * @throws ManipulationException if an error occurs
 */
public HashMap<Profile,HashMap<ArtifactRef,Dependency>> getResolvedProfileDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedProfileDependencies == null) {
    resolvedProfileDependencies=new HashMap<>();
    for (    final Profile profile : ProfileUtils.getProfiles(session,model)) {
      HashMap<ArtifactRef,Dependency> profileDeps=new HashMap<>();
      resolveDeps(session,profile.getDependencies(),profileDeps);
      resolvedProfileDependencies.put(profile,profileDeps);
    }
  }
  return resolvedProfileDependencies;
}
Program: 86506
Project: 86506
Buggy source:
/** 
 * This method will scan the dependencies in the dependencyManagement section of this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returned will be reflectedin the Model as it is the same object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ProjectVersionRef} to the original {@link Dependency} (that were within DependencyManagement)
 * @throws ManipulationException if an error occurs
 */
public HashMap<ProjectVersionRef,Dependency> getResolvedManagedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedManagedDependencies == null) {
    resolvedManagedDependencies=new HashMap<>();
    final DependencyManagement dm=getModel().getDependencyManagement();
    if (!(dm == null || dm.getDependencies() == null)) {
      resolveDeps(session,dm.getDependencies(),resolvedManagedDependencies);
    }
  }
  return resolvedManagedDependencies;
}

Fixed version (ground truth):
/** 
 * This method will scan the dependencies in the dependencyManagement section of this project and return a fully resolved list. Note that while updating the   {@link Dependency} reference returned will be reflectedin the Model as it is the same object, if you wish to remove or add items to the Model then you must use  {@link #getModel()}
 * @param session MavenSessionHandler, used by {@link PropertyResolver}
 * @return a list of fully resolved {@link ArtifactRef} to the original {@link Dependency} (that were within DependencyManagement)
 * @throws ManipulationException if an error occurs
 */
public HashMap<ArtifactRef,Dependency> getResolvedManagedDependencies(MavenSessionHandler session) throws ManipulationException {
  if (resolvedManagedDependencies == null) {
    resolvedManagedDependencies=new HashMap<>();
    final DependencyManagement dm=getModel().getDependencyManagement();
    if (!(dm == null || dm.getDependencies() == null)) {
      resolveDeps(session,dm.getDependencies(),resolvedManagedDependencies);
    }
  }
  return resolvedManagedDependencies;
}
Program: 86507
Project: 86507
Buggy source:
private void resolvePlugins(MavenSessionHandler session,List<Plugin> plugins,HashMap<ProjectVersionRef,Plugin> resolvedPlugins) throws ManipulationException {
  for (  Plugin p : plugins) {
    String g=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getGroupId()) ? getGroupId() : p.getGroupId());
    String a=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getArtifactId()) ? getArtifactId() : p.getArtifactId());
    String v=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getVersion()) ? p.getVersion() : p.getVersion());
    if (isEmpty(g)) {
      g=PLUGIN_DEFAULTS.getDefaultGroupId(a);
    }
    if (isNotEmpty(g) && isNotEmpty(a) && isNotEmpty(v)) {
      resolvedPlugins.put(new SimpleProjectVersionRef(g,a,v),p);
    }
  }
}

Fixed version (ground truth):
private void resolvePlugins(MavenSessionHandler session,List<Plugin> plugins,HashMap<ProjectVersionRef,Plugin> resolvedPlugins) throws ManipulationException {
  for (  Plugin p : plugins) {
    String g=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getGroupId()) ? getGroupId() : p.getGroupId());
    String a=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getArtifactId()) ? getArtifactId() : p.getArtifactId());
    String v=PropertyResolver.resolveInheritedProperties(session,this,"String_Node_Str".equals(p.getVersion()) ? p.getVersion() : p.getVersion());
    if (isEmpty(g)) {
      g=PLUGIN_DEFAULTS.getDefaultGroupId(a);
    }
    if (isNotEmpty(g) && isNotEmpty(a) && isNotEmpty(v)) {
      Plugin old=resolvedPlugins.put(new SimpleProjectVersionRef(g,a,v),p);
      if (old != null) {
        logger.error("String_Node_Str",old.toString());
      }
    }
  }
}
Program: 86511
Project: 86511
Buggy source:
private boolean apply(final Project project,final Model model) throws ManipulationException {
  final DependencyRemovalState state=session.getState(DependencyRemovalState.class);
  logger.info("String_Node_Str" + ga(project));
  List<ProjectRef> dependenciesToRemove=state.getDependencyRemoval();
  boolean result=scanDependencies(project.getResolvedDependencies(session),dependenciesToRemove,model.getDependencies());
  if (model.getDependencyManagement() != null && scanDependencies(project.getResolvedManagedDependencies(session),dependenciesToRemove,model.getDependencyManagement().getDependencies())) {
    result=true;
  }
  final HashMap<Profile,HashMap<ProjectVersionRef,Dependency>> pd=project.getResolvedProfileDependencies(session);
  final HashMap<Profile,HashMap<ProjectVersionRef,Dependency>> pmd=project.getResolvedProfileManagedDependencies(session);
  for (  Profile profile : pd.keySet()) {
    int index=model.getProfiles().indexOf(profile);
    if (scanDependencies(pd.get(profile),dependenciesToRemove,model.getProfiles().get(index).getDependencies())) {
      result=true;
    }
  }
  for (  Profile profile : pmd.keySet()) {
    int index=model.getProfiles().indexOf(profile);
    DependencyManagement dm=model.getProfiles().get(index).getDependencyManagement();
    if (dm != null) {
      if (scanDependencies(pmd.get(profile),dependenciesToRemove,dm.getDependencies())) {
        result=true;
      }
    }
  }
  return result;
}

Fixed version (ground truth):
private boolean apply(final Project project,final Model model) throws ManipulationException {
  final DependencyRemovalState state=session.getState(DependencyRemovalState.class);
  logger.info("String_Node_Str" + ga(project));
  List<ProjectRef> dependenciesToRemove=state.getDependencyRemoval();
  boolean result=scanDependencies(project.getResolvedDependencies(session),dependenciesToRemove,model.getDependencies());
  if (model.getDependencyManagement() != null && scanDependencies(project.getResolvedManagedDependencies(session),dependenciesToRemove,model.getDependencyManagement().getDependencies())) {
    result=true;
  }
  final HashMap<Profile,HashMap<ArtifactRef,Dependency>> pd=project.getResolvedProfileDependencies(session);
  final HashMap<Profile,HashMap<ArtifactRef,Dependency>> pmd=project.getResolvedProfileManagedDependencies(session);
  for (  Profile profile : pd.keySet()) {
    int index=model.getProfiles().indexOf(profile);
    if (scanDependencies(pd.get(profile),dependenciesToRemove,model.getProfiles().get(index).getDependencies())) {
      result=true;
    }
  }
  for (  Profile profile : pmd.keySet()) {
    int index=model.getProfiles().indexOf(profile);
    DependencyManagement dm=model.getProfiles().get(index).getDependencyManagement();
    if (dm != null) {
      if (scanDependencies(pmd.get(profile),dependenciesToRemove,dm.getDependencies())) {
        result=true;
      }
    }
  }
  return result;
}
Program: 86512
Project: 86512
Buggy source:
private boolean scanDependencies(HashMap<ProjectVersionRef,Dependency> resolvedDependencies,List<ProjectRef> dependenciesToRemove,List<Dependency> dependencies){
  boolean result=false;
  if (dependencies != null) {
    for (    ProjectVersionRef pvr : resolvedDependencies.keySet()) {
      if (dependenciesToRemove.contains(pvr.asProjectRef())) {
        logger.debug("String_Node_Str",resolvedDependencies.get(pvr));
        dependencies.remove(resolvedDependencies.get(pvr));
        result=true;
      }
    }
  }
  return result;
}

Fixed version (ground truth):
private boolean scanDependencies(HashMap<ArtifactRef,Dependency> resolvedDependencies,List<ProjectRef> dependenciesToRemove,List<Dependency> dependencies){
  boolean result=false;
  if (dependencies != null) {
    for (    ArtifactRef pvr : resolvedDependencies.keySet()) {
      if (dependenciesToRemove.contains(pvr.asProjectRef())) {
        logger.debug("String_Node_Str",resolvedDependencies.get(pvr));
        dependencies.remove(resolvedDependencies.get(pvr));
        result=true;
      }
    }
  }
  return result;
}
Program: 86513
Project: 86513
Buggy source:
/** 
 * Translate a given set of pvr:dependencies into ArtifactRefs.
 * @param session the ManipulationSession
 * @param project currently scanned project
 * @param deps Set of ArtifactRef to store the results in.
 * @param dependencies dependencies to examine
 */
private static void recordDependencies(ManipulationSession session,Project project,Set<ArtifactRef> deps,HashMap<ProjectVersionRef,Dependency> dependencies) throws ManipulationException {
  if (dependencies == null) {
    return;
  }
  for (  ProjectVersionRef pvr : dependencies.keySet()) {
    Dependency d=dependencies.get(pvr);
    deps.add(new SimpleScopedArtifactRef(pvr,new SimpleTypeAndClassifier(d.getType(),d.getClassifier()),isEmpty(d.getScope()) ? DependencyScope.compile.realName() : PropertyResolver.resolveInheritedProperties(session,project,d.getScope())));
  }
}

Fixed version (ground truth):
/** 
 * Translate a given set of pvr:dependencies into ArtifactRefs.
 * @param session the ManipulationSession
 * @param project currently scanned project
 * @param deps Set of ArtifactRef to store the results in.
 * @param dependencies dependencies to examine
 */
private static void recordDependencies(ManipulationSession session,Project project,Set<ArtifactRef> deps,HashMap<ArtifactRef,Dependency> dependencies) throws ManipulationException {
  if (dependencies == null) {
    return;
  }
  for (  ArtifactRef pvr : dependencies.keySet()) {
    Dependency d=dependencies.get(pvr);
    deps.add(new SimpleScopedArtifactRef(pvr,new SimpleTypeAndClassifier(d.getType(),d.getClassifier()),isEmpty(d.getScope()) ? DependencyScope.compile.realName() : PropertyResolver.resolveInheritedProperties(session,project,d.getScope())));
  }
}
Program: 86514
Project: 86514
Buggy source:
private void printFinishTime(long start,boolean finished){
  long finish=System.nanoTime();
  long minutes=TimeUnit.NANOSECONDS.toMinutes(finish - start);
  long seconds=TimeUnit.NANOSECONDS.toSeconds(finish - start) - (minutes * 60);
  logger.info("String_Node_Str",(finished == true ? "String_Node_Str" : "String_Node_Str"),minutes,seconds,(TimeUnit.NANOSECONDS.toMillis(finish - start) - (minutes * 60 * 1000) - (seconds * 1000)));
}

Fixed version (ground truth):
private void printFinishTime(long start,boolean finished){
  long finish=System.nanoTime();
  long minutes=TimeUnit.NANOSECONDS.toMinutes(finish - start);
  long seconds=TimeUnit.NANOSECONDS.toSeconds(finish - start) - (minutes * 60);
  logger.info("String_Node_Str",(finished ? "String_Node_Str" : "String_Node_Str"),minutes,seconds,(TimeUnit.NANOSECONDS.toMillis(finish - start) - (minutes * 60 * 1000) - (seconds * 1000)));
}
Program: 86515
Project: 86515
Buggy source:
private boolean updateDependencies(WildcardMap<ProjectVersionRef> relocations,HashMap<ProjectVersionRef,Dependency> dependencies){
  boolean result=false;
  final HashMap<ProjectVersionRef,Dependency> postFixUp=new HashMap<>();
  for (int i=0; i < relocations.size(); i++) {
    Iterator<ProjectVersionRef> it=dependencies.keySet().iterator();
    while (it.hasNext()) {
      final ProjectVersionRef pvr=it.next();
      if (relocations.containsKey(pvr.asProjectRef())) {
        ProjectVersionRef relocation=relocations.get(pvr.asProjectRef());
        updateDependencyExclusion(pvr,relocation);
        logger.info("String_Node_Str",dependencies.get(pvr).getGroupId(),relocation.getGroupId(),dependencies.get(pvr).getArtifactId(),relocation.getArtifactId());
        if (!relocation.getArtifactId().equals(WildcardMap.WILDCARD)) {
          dependencies.get(pvr).setArtifactId(relocation.getArtifactId());
        }
        dependencies.get(pvr).setGroupId(relocation.getGroupId());
        postFixUp.put(SimpleProjectVersionRef.parse(dependencies.get(pvr).getManagementKey()),dependencies.get(pvr));
        it.remove();
        result=true;
      }
    }
    dependencies.putAll(postFixUp);
    postFixUp.clear();
  }
  return result;
}

Fixed version (ground truth):
private boolean updateDependencies(WildcardMap<ProjectVersionRef> relocations,HashMap<ArtifactRef,Dependency> dependencies){
  boolean result=false;
  final HashMap<ArtifactRef,Dependency> postFixUp=new HashMap<>();
  for (int i=0; i < relocations.size(); i++) {
    Iterator<ArtifactRef> it=dependencies.keySet().iterator();
    while (it.hasNext()) {
      final ArtifactRef pvr=it.next();
      if (relocations.containsKey(pvr.asProjectRef())) {
        ProjectVersionRef relocation=relocations.get(pvr.asProjectRef());
        updateDependencyExclusion(pvr,relocation);
        logger.info("String_Node_Str",dependencies.get(pvr).getGroupId(),relocation.getGroupId(),dependencies.get(pvr).getArtifactId(),relocation.getArtifactId());
        if (!relocation.getArtifactId().equals(WildcardMap.WILDCARD)) {
          dependencies.get(pvr).setArtifactId(relocation.getArtifactId());
        }
        dependencies.get(pvr).setGroupId(relocation.getGroupId());
        postFixUp.put(SimpleArtifactRef.parse(dependencies.get(pvr).getManagementKey()),dependencies.get(pvr));
        it.remove();
        result=true;
      }
    }
    dependencies.putAll(postFixUp);
    postFixUp.clear();
  }
  return result;
}
Program: 86516
Project: 86516
Buggy source:
@Test public void testResolveProjectDependencies() throws Exception {
  final Model model=TestUtils.resolveModelResource(RESOURCE_BASE,"String_Node_Str");
  final Project project=new Project(model);
  HashMap<ProjectVersionRef,Dependency> deps=project.getResolvedManagedDependencies(new ManipulationSession());
  assertTrue(deps.size() == 66);
}

Fixed version (ground truth):
@Test public void testResolveProjectDependencies() throws Exception {
  final Model model=TestUtils.resolveModelResource(RESOURCE_BASE,"String_Node_Str");
  final Project project=new Project(model);
  HashMap<ArtifactRef,Dependency> deps=project.getResolvedManagedDependencies(new ManipulationSession());
  assertTrue(deps.size() == 66);
}
Program: 86517
Project: 86517
Buggy source:
public List<Project> parseProject(final File pom) throws ManipulationException {
  final List<PomPeek> peeked=peekAtPomHierarchy(pom);
  return readModelsForManipulation(pom,peeked);
}

Fixed version (ground truth):
public List<Project> parseProject(final File pom) throws ManipulationException {
  final List<PomPeek> peeked=peekAtPomHierarchy(pom);
  return readModelsForManipulation(pom.getAbsoluteFile(),peeked);
}
Program: 86519
Project: 86519
Buggy source:
public File getRemovalBackupSettings(){
  return settingsFile;
}

Fixed version (ground truth):
public String getRemovalBackupSettings(){
  return settings;
}
Program: 86520
Project: 86520
Buggy source:
public RepoReportingState(final Properties userProps){
  removal=Boolean.parseBoolean(userProps.getProperty(RR_SUFFIX_SYSPROP));
  ignoreLocal=Boolean.parseBoolean(userProps.getProperty(RR_SUFFIX_SYSPROP));
  String settingsFilePath=userProps.getProperty(RR_SETTINGS_SFX_SYSPROP);
  if (settingsFilePath != null) {
    settingsFile=new File(settingsFilePath);
  }
 else {
    settingsFile=null;
  }
}

Fixed version (ground truth):
public RepoReportingState(final Properties userProps){
  removal=Boolean.parseBoolean(userProps.getProperty(RR_SUFFIX_SYSPROP));
  ignoreLocal=Boolean.parseBoolean(userProps.getProperty(RR_SUFFIX_SYSPROP_LOCAL));
  settings=userProps.getProperty(RR_SETTINGS_SFX_SYSPROP,"String_Node_Str");
}
Program: 86521
Project: 86521
Buggy source:
/** 
 * Appends a build number to the qualifier. The build number should be a string of digits, or null if the build number should be removed.
 * @param buildNumber to append to the qualifier.
 */
public void setBuildNumber(String buildNumber){
  if (buildNumber == null || isNumeric(buildNumber)) {
    this.buildNumber=buildNumber;
  }
}

Fixed version (ground truth):
/** 
 * Appends a build number to the qualifier. The build number should be a string of digits, or null if the build number should be removed.
 * @param buildNumber to append to the qualifier.
 */
public void setBuildNumber(String buildNumber){
  if (buildNumberDelimiter == null) {
    buildNumberDelimiter=Character.toString(DEFAULT_QUALIFIER_DELIMITER);
  }
  if (buildNumber == null || isNumeric(buildNumber)) {
    this.buildNumber=buildNumber;
  }
}
Program: 86523
Project: 86523
Buggy source:
/** 
 * Parse a version string into its component parts (major, minor, micro, qualifier). By default will split the String based on ".", "-", and "_".
 * @param version
 * @return
 */
private void parseVersion(final String version){
  Matcher snapshotMatcher=snapshotPattern.matcher(version);
  snapshotMatcher.matches();
  final String versionWithoutSnapshot=snapshotMatcher.group(1);
  snapshotDelimiter=snapshotMatcher.group(2);
  snapshot=snapshotMatcher.group(3);
  Matcher versionMatcher=versionPattern.matcher(versionWithoutSnapshot);
  if (!versionMatcher.matches()) {
    return;
  }
  originalMMM=versionMatcher.group(1);
  qualifierStartDelimiter=versionMatcher.group(7);
  originalQualifier=versionMatcher.group(8);
  parseMMM(originalMMM);
  parseQualifier(originalQualifier);
}

Fixed version (ground truth):
/** 
 * Parse a version string into its component parts (major, minor, micro, qualifier). By default will split the String based on ".", "-", and "_".
 * @param version
 * @return
 */
private void parseVersion(final String version){
  Matcher snapshotMatcher=snapshotPattern.matcher(version);
  snapshotMatcher.matches();
  final String versionWithoutSnapshot=snapshotMatcher.group(1);
  snapshotDelimiter=snapshotMatcher.group(3);
  snapshot=snapshotMatcher.group(4);
  Matcher versionMatcher=versionPattern.matcher(versionWithoutSnapshot);
  if (!versionMatcher.matches()) {
    return;
  }
  originalMMM=versionMatcher.group(1);
  qualifierStartDelimiter=versionMatcher.group(7);
  originalQualifier=versionMatcher.group(8);
  parseMMM(originalMMM);
  parseQualifier(originalQualifier);
}
Program: 86524
Project: 86524
Buggy source:
public DefaultVersionTranslator(String endpointUrl,int chunkSplitCount){
  this.endpointUrl=endpointUrl;
  this.chunkSplitCount=chunkSplitCount;
  Unirest.setObjectMapper(new ProjectVersionRefMapper());
  Unirest.setTimeouts(30000,600000);
}

Fixed version (ground truth):
public DefaultVersionTranslator(String endpointUrl){
  this.endpointUrl=endpointUrl;
  this.chunkSplitCount=4;
  Unirest.setObjectMapper(new ProjectVersionRefMapper());
  Unirest.setTimeouts(30000,600000);
}
Program: 86525
Project: 86525
Buggy source:
/** 
 * Translate the versions. There may be a lot of them, possibly causing timeouts or other issues. This is mitigated by splitting them into smaller chunks when an error occurs and retrying.
 */
public Map<ProjectVersionRef,String> translateVersions(List<ProjectVersionRef> projects){
  final Map<ProjectVersionRef,String> result=new HashMap<>();
  logger.debug("String_Node_Str" + projects);
  final Queue<Task> queue=new ArrayDeque<>();
  queue.add(new Task(projects,chunkSplitCount,endpointUrl));
  while (!queue.isEmpty()) {
    Task task=queue.remove();
    task.executeTranslate();
    if (task.isSuccess()) {
      result.putAll(task.getResult());
    }
 else {
      if (task.canSplit()) {
        logger.debug("String_Node_Str" + "String_Node_Str" + task.getChunkSize());
        queue.addAll(task.split());
      }
 else {
        if (task.getStatus() > 0)         throw new RestException("String_Node_Str" + task.getStatus());
 else         throw new RestException("String_Node_Str" + task.getException(),task.getException());
      }
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Translate the versions. There may be a lot of them, possibly causing timeouts or other issues. This is mitigated by splitting them into smaller chunks when an error occurs and retrying.
 */
public Map<ProjectVersionRef,String> translateVersions(List<ProjectVersionRef> projects){
  final Map<ProjectVersionRef,String> result=new HashMap<>();
  logger.debug("String_Node_Str" + projects);
  final Queue<Task> queue=new ArrayDeque<>();
  queue.add(new Task(projects,chunkSplitCount,endpointUrl));
  while (!queue.isEmpty()) {
    Task task=queue.remove();
    task.executeTranslate();
    if (task.isSuccess()) {
      result.putAll(task.getResult());
    }
 else {
      if (task.canSplit()) {
        List<Task> tasks=task.split();
        logger.debug("String_Node_Str" + "String_Node_Str" + task + "String_Node_Str"+ tasks);
        queue.addAll(tasks);
      }
 else {
        if (task.getStatus() > 0)         throw new RestException("String_Node_Str" + task.getStatus());
 else         throw new RestException("String_Node_Str" + task.getException(),task.getException());
      }
    }
  }
  return result;
}
Program: 86527
Project: 86527
Buggy source:
private void createSession(File target){
  try {
    PlexusContainer container=new DefaultPlexusContainer();
    final MavenExecutionRequest req=new DefaultMavenExecutionRequest().setUserProperties(System.getProperties()).setUserProperties(userProps).setRemoteRepositories(Collections.<ArtifactRepository>emptyList());
    final MavenSession mavenSession=new MavenSession(container,null,req,new DefaultMavenExecutionResult());
    mavenSession.getRequest().setPom(target);
    pomIO=container.lookup(PomIO.class);
    session=container.lookup(ManipulationSession.class);
    manipulationManager=container.lookup(ManipulationManager.class);
    session.setMavenSession(mavenSession);
  }
 catch (  ComponentLookupException e) {
    logger.debug("String_Node_Str",e);
    System.err.println("String_Node_Str");
    System.exit(1);
    e.printStackTrace();
  }
catch (  PlexusContainerException e) {
    logger.debug("String_Node_Str",e);
    System.err.println("String_Node_Str");
    System.exit(1);
  }
}

Fixed version (ground truth):
private void createSession(File target,File settings){
  try {
    PlexusContainer container=new DefaultPlexusContainer();
    final MavenExecutionRequest req=new DefaultMavenExecutionRequest().setUserProperties(System.getProperties()).setUserProperties(userProps).setRemoteRepositories(Collections.<ArtifactRepository>emptyList());
    if (settings != null) {
      req.setUserSettingsFile(settings);
      req.setGlobalSettingsFile(settings);
      MavenExecutionRequestPopulator executionRequestPopulator=container.lookup(MavenExecutionRequestPopulator.class);
      executionRequestPopulator.populateFromSettings(req,parseSettings(settings));
    }
    final MavenSession mavenSession=new MavenSession(container,null,req,new DefaultMavenExecutionResult());
    mavenSession.getRequest().setPom(target);
    pomIO=container.lookup(PomIO.class);
    session=container.lookup(ManipulationSession.class);
    manipulationManager=container.lookup(ManipulationManager.class);
    session.setMavenSession(mavenSession);
  }
 catch (  ComponentLookupException e) {
    logger.debug("String_Node_Str",e);
    System.err.println("String_Node_Str");
    System.exit(1);
    e.printStackTrace();
  }
catch (  PlexusContainerException e) {
    logger.debug("String_Node_Str",e);
    System.err.println("String_Node_Str");
    System.exit(1);
  }
catch (  SettingsBuildingException e) {
    logger.debug("String_Node_Str",e);
    System.err.println("String_Node_Str");
    System.exit(1);
  }
catch (  MavenExecutionRequestPopulationException e) {
    e.printStackTrace();
  }
}
Program: 86528
Project: 86528
Buggy source:
@Test public void checkTargetMatches() throws Exception {
  Cli c=new Cli();
  File pom1=new File("String_Node_Str");
  executeMethod(c,"String_Node_Str",new Object[]{pom1});
  ManipulationSession session=(ManipulationSession)getField(c,"String_Node_Str");
  assertTrue("String_Node_Str",pom1.equals(session.getPom()));
}

Fixed version (ground truth):
@Test public void checkTargetMatches() throws Exception {
  Cli c=new Cli();
  File pom1=new File("String_Node_Str");
  File settings1=new File("String_Node_Str");
  executeMethod(c,"String_Node_Str",new Object[]{pom1,settings1});
  ManipulationSession session=(ManipulationSession)getField(c,"String_Node_Str");
  assertTrue("String_Node_Str",pom1.equals(session.getPom()));
}
Program: 86529
Project: 86529
Buggy source:
@Override public Map<? extends ProjectRef,String> load(final State state,final ManipulationSession session) throws ManipulationException {
  for (  ArtifactRef p : localDeps) {
    restParam.add(p.asProjectVersionRef());
  }
  logger.debug("String_Node_Str" + restParam);
  final Map<ProjectVersionRef,String> result=restEndpoint.translateVersions(restParam);
  logger.debug("String_Node_Str" + result);
  return result;
}

Fixed version (ground truth):
@Override public Map<? extends ProjectRef,String> load(final State state,final ManipulationSession session) throws ManipulationException {
  for (  ArtifactRef p : localDeps) {
    restParam.add(p.asProjectVersionRef());
  }
  logger.debug("String_Node_Str",restParam);
  final Map<ProjectVersionRef,String> result=restEndpoint.translateVersions(restParam);
  logger.debug("String_Node_Str",result);
  return result;
}
Program: 86532
Project: 86532
Buggy source:
public String getOSGiVersionString(){
  System.out.println("String_Node_Str" + isValidOSGi() + "String_Node_Str"+ !hasQualifier());
  if (isValidOSGi() && !hasQualifier()) {
    return originalVersion;
  }
  System.out.println("String_Node_Str" + numericVersion);
  StringBuilder osgiVersion=new StringBuilder();
  if (numericVersion) {
    osgiVersion.append(getThreePartMMM());
  }
  if (!isEmpty(getQualifier())) {
    if (numericVersion) {
      osgiVersion.append(OSGI_VERSION_DELIMITER);
    }
    osgiVersion.append(getOSGiQualifier());
  }
  return osgiVersion.toString();
}

Fixed version (ground truth):
public String getOSGiVersionString(){
  if (isValidOSGi() && !hasQualifier()) {
    return originalVersion;
  }
  StringBuilder osgiVersion=new StringBuilder();
  if (numericVersion) {
    osgiVersion.append(getThreePartMMM());
  }
  if (!isEmpty(getQualifier())) {
    if (numericVersion) {
      osgiVersion.append(OSGI_VERSION_DELIMITER);
    }
    osgiVersion.append(getOSGiQualifier());
  }
  return osgiVersion.toString();
}
Program: 86535
Project: 86535
Buggy source:
/** 
 * @see ProjectSourcesInjectingState#BMMP_SKIP_PROPERTY
 * @return whether the BuildMetadata plugin is enabled.
 */
public boolean isBuildMetadataPluginEnabled(){
  return metadataEnabled;
}

Fixed version (ground truth):
/** 
 * @see ProjectSourcesInjectingState#BMMP_SKIP_PROPERTY
 * @return whether the BuildMetadata plugin is projectsourcesEnabled.
 */
public boolean isBuildMetadataPluginEnabled(){
  return metadataEnabled;
}
Program: 86536
Project: 86536
Buggy source:
/** 
 * @see ProjectSourcesInjectingState#PROJECT_SOURCES_SKIP_PROPERTY
 */
@Override public boolean isEnabled(){
  return enabled;
}

Fixed version (ground truth):
/** 
 * @see ProjectSourcesInjectingState#PROJECT_SOURCES_SKIP_PROPERTY
 * @return true if <b>either</b> of {@link #isProjectSourcesPluginEnabled()} or {@link #isBuildMetadataPluginEnabled()} is enabled.
 */
@Override public boolean isEnabled(){
  return isBuildMetadataPluginEnabled() || isProjectSourcesPluginEnabled();
}
Program: 86537
Project: 86537
Buggy source:
/** 
 * Detects the project.src.skip and project.src.version user properties. Sets the enabled flag and the plugin version accordingly.
 * @param userProperties the properties for the manipulator
 */
public ProjectSourcesInjectingState(final Properties userProperties){
  enabled=!Boolean.parseBoolean(userProperties.getProperty(PROJECT_SOURCES_SKIP_PROPERTY,"String_Node_Str"));
  metadataEnabled=!Boolean.parseBoolean(userProperties.getProperty(BMMP_SKIP_PROPERTY,"String_Node_Str"));
  projectSrcPluginVersion=userProperties.getProperty(PROJECT_SOURCES_PLUGIN_VERSION_PROPERTY,DEFAULT_PROJECT_SOURCES_PLUGIN_VERSION);
  bmmpVersion=userProperties.getProperty(BMMP_VERSION_PROPERTY,DEFAULT_BMMP_VERSION);
}

Fixed version (ground truth):
/** 
 * Detects the project.src.skip and project.src.version user properties. Sets the projectsourcesEnabled flag and the plugin version accordingly.
 * @param userProperties the properties for the manipulator
 */
public ProjectSourcesInjectingState(final Properties userProperties){
  projectsourcesEnabled=!Boolean.parseBoolean(userProperties.getProperty(PROJECT_SOURCES_SKIP_PROPERTY,"String_Node_Str"));
  metadataEnabled=!Boolean.parseBoolean(userProperties.getProperty(BMMP_SKIP_PROPERTY,"String_Node_Str"));
  projectSrcPluginVersion=userProperties.getProperty(PROJECT_SOURCES_PLUGIN_VERSION_PROPERTY,DEFAULT_PROJECT_SOURCES_PLUGIN_VERSION);
  bmmpVersion=userProperties.getProperty(BMMP_VERSION_PROPERTY,DEFAULT_BMMP_VERSION);
}