Program: 85750
Project: 85750
Buggy source:
private Map<ASTCssNode,GeneralBody> solveCalls(List<ASTCssNode> childs,IScope referenceScope){
  Map<ASTCssNode,GeneralBody> solvedMixinReferences=new HashMap<ASTCssNode,GeneralBody>();
  for (  ASTCssNode kid : childs) {
    if (isMixinReference(kid)) {
      MixinReference reference=(MixinReference)kid;
      List<FullMixinDefinition> foundMixins=findReferencedMixins(reference,referenceScope);
      GeneralBody replacement=mixinsSolver.buildMixinReferenceReplacement(reference,referenceScope,foundMixins);
      AstLogic.validateLessBodyCompatibility(reference,replacement.getMembers(),problemsHandler);
      solvedMixinReferences.put(reference,replacement);
    }
 else     if (isDetachedRulesetReference(kid)) {
      DetachedRulesetReference detachedRulesetReference=(DetachedRulesetReference)kid;
      Expression fullNodeDefinition=referenceScope.getValue(detachedRulesetReference.getVariable());
      if (fullNodeDefinition == null) {
        handleUnavailableDetachedRulesetReference(detachedRulesetReference,solvedMixinReferences);
      }
 else {
        IScopeAwareExpressionsEvaluator expressionEvaluator=new IScopeAwareExpressionsEvaluator(referenceScope,problemsHandler,configuration);
        Expression evaluatedDetachedRuleset=expressionEvaluator.evaluate(fullNodeDefinition);
        fullNodeDefinition=evaluatedDetachedRuleset;
        if (evaluatedDetachedRuleset.getType() != ASTCssNodeType.DETACHED_RULESET) {
          handleWrongDetachedRulesetReference(detachedRulesetReference,evaluatedDetachedRuleset,solvedMixinReferences);
        }
 else {
          DetachedRuleset detachedRuleset=(DetachedRuleset)evaluatedDetachedRuleset;
          IScope scope=detachedRuleset.getScope();
          GeneralBody replacement=mixinsSolver.buildDetachedRulesetReplacement(detachedRulesetReference,referenceScope,detachedRuleset,scope);
          AstLogic.validateLessBodyCompatibility(kid,replacement.getMembers(),problemsHandler);
          solvedMixinReferences.put(kid,replacement);
        }
      }
    }
  }
  return solvedMixinReferences;
}

Fixed version (ground truth):
private Map<ASTCssNode,GeneralBody> solveCalls(List<ASTCssNode> childs,IScope referenceScope){
  Map<ASTCssNode,GeneralBody> solvedMixinReferences=new HashMap<ASTCssNode,GeneralBody>();
  for (  ASTCssNode kid : childs) {
    if (isMixinReference(kid)) {
      MixinReference reference=(MixinReference)kid;
      List<FullMixinDefinition> foundMixins=findReferencedMixins(reference,referenceScope);
      GeneralBody replacement=mixinsSolver.buildMixinReferenceReplacement(reference,referenceScope,foundMixins);
      AstLogic.validateLessBodyCompatibility(reference,replacement.getMembers(),problemsHandler);
      solvedMixinReferences.put(reference,replacement);
    }
 else     if (isDetachedRulesetReference(kid)) {
      DetachedRulesetReference detachedRulesetReference=(DetachedRulesetReference)kid;
      Expression fullNodeDefinition=referenceScope.getValue(detachedRulesetReference.getVariable());
      if (fullNodeDefinition == null) {
        handleUnavailableDetachedRulesetReference(detachedRulesetReference,solvedMixinReferences);
      }
 else {
        ExpressionsEvaluator expressionEvaluator=new ExpressionsEvaluator(referenceScope,problemsHandler,configuration);
        Expression evaluatedDetachedRuleset=expressionEvaluator.evaluate(fullNodeDefinition);
        fullNodeDefinition=evaluatedDetachedRuleset;
        if (evaluatedDetachedRuleset.getType() != ASTCssNodeType.DETACHED_RULESET) {
          handleWrongDetachedRulesetReference(detachedRulesetReference,evaluatedDetachedRuleset,solvedMixinReferences);
        }
 else {
          DetachedRuleset detachedRuleset=(DetachedRuleset)evaluatedDetachedRuleset;
          IScope scope=detachedRuleset.getScope();
          GeneralBody replacement=mixinsSolver.buildDetachedRulesetReplacement(detachedRulesetReference,referenceScope,detachedRuleset,scope);
          AstLogic.validateLessBodyCompatibility(kid,replacement.getMembers(),problemsHandler);
          solvedMixinReferences.put(kid,replacement);
        }
      }
    }
  }
  return solvedMixinReferences;
}