Program: 91070
Project: 91070
Buggy source:
@Transactional public void storeNormalizedInvocations(JvmState jvmState,List<Invocation> invocations){
  CodeBase codeBase=jvmState.getCodeBase();
  int recognized=0;
  int unrecognized=0;
  int ignored=0;
  int overridden=0;
  for (  Invocation invocation : invocations) {
    String rawSignature=invocation.getSignature();
    String normalizedSignature=codeBase.normalizeSignature(rawSignature);
    SignatureConfidence confidence=null;
    if (normalizedSignature == null) {
      ignored+=1;
    }
 else     if (codeBase.hasSignature(normalizedSignature)) {
      recognized+=1;
      confidence=SignatureConfidence.EXACT_MATCH;
    }
 else {
      String baseSignature=codeBase.getBaseSignature(normalizedSignature);
      if (baseSignature != null) {
        log.debug("String_Node_Str",normalizedSignature,baseSignature);
        overridden+=1;
        confidence=SignatureConfidence.FOUND_IN_PARENT_CLASS;
        normalizedSignature=baseSignature;
      }
 else       if (normalizedSignature.equals(rawSignature)) {
        unrecognized+=1;
        confidence=SignatureConfidence.NOT_FOUND_IN_CODE_BASE;
        log.debug("String_Node_Str",normalizedSignature);
      }
 else {
        unrecognized+=1;
        confidence=SignatureConfidence.NOT_FOUND_IN_CODE_BASE;
        log.debug("String_Node_Str",normalizedSignature,rawSignature);
      }
    }
    if (normalizedSignature != null) {
      invocationsCollector.put(jvmState.getJvm().getJvmUuid(),normalizedSignature,invocation.getInvokedAtMillis(),invocation.getInvokedAtMillis() - jvmState.getJvm().getStartedAtMillis(),confidence);
    }
  }
  FileUtils.deleteAllConsumedInvocationDataFiles(jvmState.getInvocationsFile());
  if (unrecognized > 0) {
    log.warn("String_Node_Str",recognized,overridden,unrecognized,ignored);
  }
 else {
    log.debug("String_Node_Str",recognized,overridden,ignored);
  }
}

Fixed version (ground truth):
@Transactional public void storeNormalizedInvocations(JvmState jvmState,List<Invocation> invocations){
  CodeBase codeBase=jvmState.getCodeBase();
  int recognized=0;
  int unrecognized=0;
  int ignored=0;
  int overridden=0;
  for (  Invocation invocation : invocations) {
    String rawSignature=invocation.getSignature();
    String normalizedSignature=codeBase.normalizeSignature(rawSignature);
    SignatureConfidence confidence=null;
    if (normalizedSignature == null) {
      ignored+=1;
    }
 else     if (codeBase.hasSignature(normalizedSignature)) {
      recognized+=1;
      confidence=SignatureConfidence.EXACT_MATCH;
    }
 else {
      String baseSignature=codeBase.getBaseSignature(normalizedSignature);
      if (baseSignature != null) {
        log.debug("String_Node_Str",normalizedSignature,baseSignature);
        overridden+=1;
        confidence=SignatureConfidence.FOUND_IN_PARENT_CLASS;
        normalizedSignature=baseSignature;
      }
 else       if (normalizedSignature.equals(rawSignature)) {
        unrecognized+=1;
        confidence=SignatureConfidence.NOT_FOUND_IN_CODE_BASE;
        log.debug("String_Node_Str",normalizedSignature);
      }
 else {
        unrecognized+=1;
        confidence=SignatureConfidence.NOT_FOUND_IN_CODE_BASE;
        log.debug("String_Node_Str",normalizedSignature,rawSignature);
      }
    }
    if (normalizedSignature != null) {
      invocationsCollector.put(jvmState.getJvm().getJvmUuid(),jvmState.getJvm().getStartedAtMillis(),normalizedSignature,invocation.getInvokedAtMillis(),confidence);
    }
  }
  FileUtils.deleteAllConsumedInvocationDataFiles(jvmState.getInvocationsFile());
  if (unrecognized > 0) {
    log.warn("String_Node_Str",recognized,overridden,unrecognized,ignored);
  }
 else {
    log.debug("String_Node_Str",recognized,overridden,ignored);
  }
}