Program: 92388
Project: 92388
Buggy source:
private void mergeMixins(List<Mixin> mixinList,Map<String,Mixin> mixinMap,MavenProject currentProject,MavenSession mavenSession) throws MavenExecutionException {
  fillMixins(mixinList,mixinMap,currentProject.getModel(),currentProject,mavenSession);
  MixinModelProblemCollector problems=new MixinModelProblemCollector();
  Set<String> mixinProfiles=new HashSet<String>();
  for (  Mixin mixin : mixinList) {
    logger.debug(String.format("String_Node_Str",mixin.getKey(),currentProject.getFile()));
    Model mixinModel=mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,artifactFetcher);
    if (mixin.isActivateProfiles()) {
      logger.debug(String.format("String_Node_Str",mixin.getKey(),currentProject.getFile()));
      mixinModel=mixinModel.clone();
      List<Profile> activePomProfiles=profileSelector.getActiveProfiles(mixinModel.getProfiles(),getProfileActivationContext(mavenSession,currentProject),problems);
      for (      Profile profile : activePomProfiles) {
        logger.debug(String.format("String_Node_Str",profile.getId(),mixin.getKey(),currentProject.getFile()));
        profileInjector.injectProfile(mixinModel,profile,modelBuildingRequest,problems);
        mixinProfiles.add(profile.getId());
      }
    }
    mixin.merge(mixinModel,currentProject,mavenSession,mixinModelMerger);
  }
  if (mixinList.size() > 0) {
    mixinModelMerger.applyPluginManagementOnPlugins(currentProject.getModel());
    modelInterpolator.interpolateModel(currentProject.getModel(),currentProject.getBasedir(),modelBuildingRequest,problems);
    pluginConfigurationExpander.expandPluginConfiguration(currentProject.getModel(),modelBuildingRequest,problems);
    if (currentProject.getInjectedProfileIds().containsKey(Profile.SOURCE_POM)) {
      currentProject.getInjectedProfileIds().get(Profile.SOURCE_POM).addAll(mixinProfiles);
    }
 else {
      currentProject.getInjectedProfileIds().put(Profile.SOURCE_POM,new ArrayList<String>(mixinProfiles));
    }
    problems.checkErrors(currentProject.getFile());
  }
}

Fixed version (ground truth):
private void mergeMixins(List<Mixin> mixinList,Map<String,Mixin> mixinMap,MavenProject currentProject,MavenSession mavenSession) throws MavenExecutionException {
  fillMixins(mixinList,mixinMap,currentProject.getModel(),currentProject,mavenSession);
  MixinModelProblemCollector problems=new MixinModelProblemCollector();
  Set<String> mixinProfiles=new HashSet<String>();
  for (  Mixin mixin : mixinList) {
    logger.debug(String.format("String_Node_Str",mixin.getKey(),currentProject.getFile()));
    Model mixinModel=mixinModelCache.getModel(mixin,currentProject,mavenSession,mavenXpp3reader,artifactFetcher);
    if (mixin.isActivateProfiles()) {
      logger.debug(String.format("String_Node_Str",mixin.getKey(),currentProject.getFile()));
      mixinModel=mixinModel.clone();
      List<Profile> activePomProfiles=profileSelector.getActiveProfiles(mixinModel.getProfiles(),getProfileActivationContext(mavenSession,currentProject),problems);
      for (      Profile profile : activePomProfiles) {
        logger.debug(String.format("String_Node_Str",profile.getId(),mixin.getKey(),currentProject.getFile()));
        profileInjector.injectProfile(mixinModel,profile,modelBuildingRequest,problems);
        mixinProfiles.add(profile.getId());
      }
    }
    mixin.merge(mixinModel,currentProject,mavenSession,mixinModelMerger);
  }
  if (mixinList.size() > 0) {
    mixinModelMerger.applyPluginManagementOnPlugins(currentProject.getModel());
    ModelBuildingRequest request=new DefaultModelBuildingRequest(modelBuildingRequest);
    request.setSystemProperties(mavenSession.getSystemProperties());
    request.setUserProperties(mavenSession.getUserProperties());
    modelInterpolator.interpolateModel(currentProject.getModel(),currentProject.getBasedir(),request,problems);
    pluginConfigurationExpander.expandPluginConfiguration(currentProject.getModel(),request,problems);
    if (currentProject.getInjectedProfileIds().containsKey(Profile.SOURCE_POM)) {
      currentProject.getInjectedProfileIds().get(Profile.SOURCE_POM).addAll(mixinProfiles);
    }
 else {
      currentProject.getInjectedProfileIds().put(Profile.SOURCE_POM,new ArrayList<String>(mixinProfiles));
    }
    problems.checkErrors(currentProject.getFile());
  }
}