Program: 157030
Project: 157030
Buggy source:
@Override public void sendNotification(Check check,Subscription subscription,List<Alert> alerts) throws NotificationFailedException {
  LOGGER.info("String_Node_Str",check.getName(),check.getState().name(),url(check),alerts.size());
  Snmp snmp=createSnmpConnection();
  Address targetaddress=new UdpAddress(seyrenConfig.getSnmpHost() + "String_Node_Str" + seyrenConfig.getSnmpPort());
  CommunityTarget target=new CommunityTarget();
  target.setCommunity(octetString(seyrenConfig.getSnmpCommunity()));
  target.setVersion(SnmpConstants.version2c);
  target.setAddress(targetaddress);
  for (  Alert alert : alerts) {
    PDU trap=new PDU();
    trap.setType(PDU.TRAP);
    OID oid=new OID(seyrenConfig.getSnmpOID());
    OID name=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID metric=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID state=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID value=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID error=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID warn=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID id=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID checkUrl=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    trap.add(new VariableBinding(SnmpConstants.snmpTrapOID,oid));
    trap.add(new VariableBinding(SnmpConstants.sysUpTime,new TimeTicks(5000)));
    trap.add(variableBinding(name,check.getName()));
    trap.add(variableBinding(metric,alert.getTarget()));
    trap.add(variableBinding(state,check.getState().name()));
    trap.add(variableBinding(value,alert.getValue().toString()));
    trap.add(variableBinding(warn,check.getWarn().toString()));
    trap.add(variableBinding(error,check.getError().toString()));
    trap.add(variableBinding(id,check.getId()));
    trap.add(variableBinding(checkUrl,String.format("String_Node_Str",seyrenConfig.getBaseUrl(),check.getId())));
    sendAlert(check,snmp,target,trap);
  }
  closeSnmpConnection(snmp);
}

Fixed version (ground truth):
@Override public void sendNotification(Check check,Subscription subscription,List<Alert> alerts) throws NotificationFailedException {
  LOGGER.info("String_Node_Str",check.getName(),check.getState().name(),url(check),alerts.size());
  Snmp snmp=createSnmpConnection();
  Address targetaddress=new UdpAddress(seyrenConfig.getSnmpHost() + "String_Node_Str" + seyrenConfig.getSnmpPort());
  CommunityTarget target=new CommunityTarget();
  target.setCommunity(octetString(seyrenConfig.getSnmpCommunity()));
  target.setVersion(SnmpConstants.version2c);
  target.setAddress(targetaddress);
  for (  Alert alert : alerts) {
    PDU trap=new PDU();
    trap.setType(PDU.TRAP);
    OID oid=new OID(seyrenConfig.getSnmpOID());
    OID name=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID metric=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID state=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID value=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID error=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID warn=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID id=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    OID checkUrl=new OID(seyrenConfig.getSnmpOID() + "String_Node_Str");
    trap.add(new VariableBinding(SnmpConstants.sysUpTime,new TimeTicks(5000)));
    trap.add(new VariableBinding(SnmpConstants.snmpTrapOID,oid));
    trap.add(variableBinding(name,check.getName()));
    trap.add(variableBinding(metric,alert.getTarget()));
    trap.add(variableBinding(state,check.getState().name()));
    trap.add(variableBinding(value,alert.getValue().toString()));
    trap.add(variableBinding(warn,check.getWarn().toString()));
    trap.add(variableBinding(error,check.getError().toString()));
    trap.add(variableBinding(id,check.getId()));
    trap.add(variableBinding(checkUrl,String.format("String_Node_Str",seyrenConfig.getBaseUrl(),check.getId())));
    sendAlert(check,snmp,target,trap);
  }
  closeSnmpConnection(snmp);
}