nus-yam/ex-repair huggingface dataset:
Program: 53898
Project: 53898
Buggy source:
private static void close(InputStream is){
  if (is != null) {
    try {
      is.close();
    }
 catch (    IOException e) {
    }
  }
}

Fixed version (ground truth):
private static void close(Closeable closeable){
  if (closeable != null) {
    try {
      closeable.close();
    }
 catch (    IOException e) {
    }
  }
}
Program: 53899
Project: 53899
Buggy source:
private String[] buildCommand() throws URISyntaxException {
  List<String> list=new ArrayList<String>();
  list.add(getJavaExecutable());
  list.add("String_Node_Str");
  list.add(getClassPath());
  list.add(getAgent());
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  if (isDebugMode()) {
    list.addAll(getDebugOptions());
  }
  if (configFile != null) {
    list.add("String_Node_Str" + resolveConfigFileLocation());
  }
  list.add(ForkedJUnit.class.getName());
  if (testOnChildClassLoader) {
    list.add(getChildClassPath());
  }
  list.add(getTestClass().getName());
  return list.toArray(new String[list.size()]);
}

Fixed version (ground truth):
private String[] buildCommand() throws URISyntaxException {
  List<String> list=new ArrayList<String>();
  list.add(getJavaExecutable());
  list.add("String_Node_Str");
  list.add(getClassPath());
  list.add(getAgent());
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  list.add("String_Node_Str" + DEFAULT_ENCODING);
  if (isDebugMode()) {
    list.addAll(getDebugOptions());
  }
  if (configFile != null) {
    list.add("String_Node_Str" + resolveConfigFileLocation());
  }
  list.add(ForkedJUnit.class.getName());
  if (testOnChildClassLoader) {
    list.add(getChildClassPath());
  }
  list.add(getTestClass().getName());
  return list.toArray(new String[list.size()]);
}
Program: 53901
Project: 53901
Buggy source:
private Object reflectionInvoke(Object target,String method,Class[] type,final Object[] args){
  final Method findMethod=findMethod(target.getClass(),method,type);
  return executeTemplate.execute(new Callable(){
    @Override public Object call(){
      try {
        return findMethod.invoke(agentBootStrap,args);
      }
 catch (      InvocationTargetException e) {
        throw new BootStrapException(findMethod.getName() + "String_Node_Str" + e.getMessage(),e);
      }
catch (      IllegalAccessException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
    }
  }
);
}

Fixed version (ground truth):
private Object reflectionInvoke(Object target,String method,Class[] type,final Object[] args){
  final Method findMethod=findMethod(target.getClass(),method,type);
  return executeTemplate.execute(new Callable<Object>(){
    @Override public Object call(){
      try {
        return findMethod.invoke(agentBootStrap,args);
      }
 catch (      InvocationTargetException e) {
        throw new BootStrapException(findMethod.getName() + "String_Node_Str" + e.getMessage(),e);
      }
catch (      IllegalAccessException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
    }
  }
);
}
Program: 53902
Project: 53902
Buggy source:
public AgentClassLoader(URL[] urls){
  if (urls == null) {
    throw new NullPointerException("String_Node_Str");
  }
  ClassLoader bootStrapClassLoader=AgentClassLoader.class.getClassLoader();
  this.classLoader=createClassLoader(urls,bootStrapClassLoader);
  this.executeTemplate=new ContextClassLoaderExecuteTemplate(classLoader);
}

Fixed version (ground truth):
public AgentClassLoader(URL[] urls){
  if (urls == null) {
    throw new NullPointerException("String_Node_Str");
  }
  ClassLoader bootStrapClassLoader=AgentClassLoader.class.getClassLoader();
  this.classLoader=createClassLoader(urls,bootStrapClassLoader);
  this.executeTemplate=new ContextClassLoaderExecuteTemplate<Object>(classLoader);
}
Program: 53903
Project: 53903
Buggy source:
public void boot(final String agentPath,final String agentArgs,final Instrumentation instrumentation,final ProfilerConfig profilerConfig){
  final Class<?> bootStrapClazz=getBootStrapClass();
  agentBootStrap=(Agent)executeTemplate.execute(new Callable<Object>(){
    @Override public Object call() throws Exception {
      try {
        Constructor<?> constructor=bootStrapClazz.getConstructor(String.class,String.class,Instrumentation.class,ProfilerConfig.class);
        return constructor.newInstance(agentPath,agentArgs,instrumentation,profilerConfig);
      }
 catch (      InstantiationException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
catch (      IllegalAccessException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
    }
  }
);
}

Fixed version (ground truth):
public void boot(final String agentPath,final String agentArgs,final Instrumentation instrumentation,final ProfilerConfig profilerConfig){
  final Class<?> bootStrapClazz=getBootStrapClass();
  final Object agent=executeTemplate.execute(new Callable<Object>(){
    @Override public Object call() throws Exception {
      try {
        Constructor<?> constructor=bootStrapClazz.getConstructor(String.class,String.class,Instrumentation.class,ProfilerConfig.class);
        return constructor.newInstance(agentPath,agentArgs,instrumentation,profilerConfig);
      }
 catch (      InstantiationException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
catch (      IllegalAccessException e) {
        throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
      }
    }
  }
);
  if (agent instanceof Agent) {
    this.agentBootStrap=(Agent)agent;
  }
 else {
    String agentClassName;
    if (agent == null) {
      agentClassName="String_Node_Str";
    }
 else {
      agentClassName=agent.getClass().getName();
    }
    throw new BootStrapException("String_Node_Str" + agentClassName);
  }
}
Program: 53904
Project: 53904
Buggy source:
private Class<?> getBootStrapClass(){
  try {
    return this.classLoader.loadClass(bootClass);
  }
 catch (  ClassNotFoundException e) {
    throw new BootStrapException("String_Node_Str" + e.getMessage(),e);
  }
}

Fixed version (ground truth):
private Class<?> getBootStrapClass(){
  try {
    return this.classLoader.loadClass(bootClass);
  }
 catch (  ClassNotFoundException e) {
    throw new BootStrapException("String_Node_Str" + bootClass + "String_Node_Str"+ e.getMessage(),e);
  }
}
Program: 53905
Project: 53905
Buggy source:
public AsyncQueueingExecutor(int queueSize,String executorName){
  if (executorName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.queue=new LinkedBlockingQueue<T>(queueSize);
  this.executeThread=this.createExecuteThread(executorName);
  this.executorName=executeThread.getName();
}

Fixed version (ground truth):
public AsyncQueueingExecutor(int queueSize,String executorName){
  if (executorName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.queue=new LinkedBlockingQueue<T>(queueSize);
  this.executeThread=this.createExecuteThread(executorName);
  this.executorName=executeThread.getName();
  this.maxDrainSize=10;
  this.drain=new UnsafeArrayCollection<T>(maxDrainSize);
}
Program: 53906
Project: 53906
Buggy source:
private ChildProcessException toException(String message,String exceptionClass,List<String> traceInText){
  StackTraceElement[] stackTrace=new StackTraceElement[traceInText.size()];
  for (int i=0; i < traceInText.size(); i++) {
    String trace=traceInText.get(i);
    String[] tokens=trace.split("String_Node_Str");
    stackTrace[i]=new StackTraceElement(tokens[0],tokens[1],tokens[2],Integer.valueOf(tokens[3]));
  }
  return new ChildProcessException(exceptionClass + "String_Node_Str" + message,stackTrace);
}

Fixed version (ground truth):
private ChildProcessException toException(String message,String exceptionClass,List<String> traceInText){
  StackTraceElement[] stackTrace=new StackTraceElement[traceInText.size()];
  for (int i=0; i < traceInText.size(); i++) {
    String trace=traceInText.get(i);
    String[] tokens=trace.split("String_Node_Str");
    stackTrace[i]=new StackTraceElement(tokens[0],tokens[1],tokens[2],Integer.parseInt(tokens[3]));
  }
  return new ChildProcessException(exceptionClass + "String_Node_Str" + message,stackTrace);
}
Program: 53907
Project: 53907
Buggy source:
private void addChecker(Application application){
  List<Rule> rules=alarmResourceDao.selectAppRule(application.getName());
  long timeSlotEndTime=System.currentTimeMillis();
  Map<DataCollectorCategory,DataCollector> collectorMap=new HashMap<DataCollectorCategory,DataCollector>();
  for (  Rule rule : rules) {
    CheckerCategory checkerCategory=CheckerCategory.getValue(rule.getCheckerName());
    DataCollector collector=collectorMap.get(checkerCategory);
    if (collector == null) {
      collector=dataCollectorFactory.createDataCollector(checkerCategory,application,timeSlotEndTime);
      collectorMap.put(collector.getDataCollectorCategory(),collector);
    }
    AlarmChecker checker=checkerCategory.createChecker(collector,rule);
    checkers.add(checker);
  }
}

Fixed version (ground truth):
private void addChecker(Application application){
  List<Rule> rules=alarmResourceDao.selectAppRule(application.getName());
  long timeSlotEndTime=System.currentTimeMillis();
  Map<DataCollectorCategory,DataCollector> collectorMap=new HashMap<DataCollectorCategory,DataCollector>();
  for (  Rule rule : rules) {
    CheckerCategory checkerCategory=CheckerCategory.getValue(rule.getCheckerName());
    DataCollector collector=collectorMap.get(checkerCategory.getDataCollectorCategory());
    if (collector == null) {
      collector=dataCollectorFactory.createDataCollector(checkerCategory,application,timeSlotEndTime);
      collectorMap.put(collector.getDataCollectorCategory(),collector);
    }
    AlarmChecker checker=checkerCategory.createChecker(collector,rule);
    checkers.add(checker);
  }
}
Program: 53908
Project: 53908
Buggy source:
private static boolean isValidId(String propertyName,int maxSize){
  logger.info("String_Node_Str" + propertyName);
  String value=System.getProperty(propertyName);
  if (value == null) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str");
    return false;
  }
  value=value.trim();
  if (value.isEmpty()) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str");
    return false;
  }
  if (!IdValidateUtils.validateId(value,maxSize)) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str"+ maxSize+ "String_Node_Str"+ value);
    return false;
  }
  logger.info("String_Node_Str" + propertyName + "String_Node_Str"+ value+ "String_Node_Str"+ BytesUtils.toBytes(value).length);
  return true;
}

Fixed version (ground truth):
private static boolean isValidId(String propertyName,int maxSize){
  logger.info("String_Node_Str" + propertyName);
  String value=System.getProperty(propertyName);
  if (value == null) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str");
    return false;
  }
  value=value.trim();
  if (value.isEmpty()) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str");
    return false;
  }
  if (!IdValidateUtils.validateId(value,maxSize)) {
    logger.severe("String_Node_Str" + propertyName + "String_Node_Str"+ maxSize+ "String_Node_Str"+ value);
    return false;
  }
  if (logger.isLoggable(Level.INFO)) {
    logger.info("String_Node_Str" + propertyName + "String_Node_Str"+ value+ "String_Node_Str"+ getLength(value));
  }
  return true;
}
Program: 53909
Project: 53909
Buggy source:
public URL[] getPluginJars(){
  if (classLoader instanceof URLClassLoader) {
    return ((URLClassLoader)classLoader).getURLs();
  }
 else {
    return new URL[0];
  }
}

Fixed version (ground truth):
public URL[] getPluginJars(){
  if (classLoader instanceof URLClassLoader) {
    return ((URLClassLoader)classLoader).getURLs();
  }
 else {
    return EMPTY_URL;
  }
}
Program: 53910
Project: 53910
Buggy source:
private static URL[] findJars(String pluginPath){
  File file=new File(pluginPath);
  if (!file.exists() || !file.isDirectory()) {
    return new URL[0];
  }
  File[] jars=file.listFiles(new FilenameFilter(){
    @Override public boolean accept(    File dir,    String name){
      return name.endsWith("String_Node_Str");
    }
  }
);
  URL[] urls=new URL[jars.length];
  for (int i=0; i < jars.length; i++) {
    try {
      urls[i]=jars[i].toURI().toURL();
    }
 catch (    MalformedURLException e) {
      throw new PinpointException("String_Node_Str",e);
    }
  }
  return urls;
}

Fixed version (ground truth):
private static URL[] findJars(String pluginPath){
  final File file=new File(pluginPath);
  if (!file.exists() || !file.isDirectory()) {
    return EMPTY_URL;
  }
  final File[] jars=file.listFiles(new FilenameFilter(){
    @Override public boolean accept(    File dir,    String name){
      return name.endsWith("String_Node_Str");
    }
  }
);
  if (jars == null || jars.length == 0) {
    return EMPTY_URL;
  }
  final URL[] urls=new URL[jars.length];
  for (int i=0; i < jars.length; i++) {
    try {
      urls[i]=jars[i].toURI().toURL();
    }
 catch (    MalformedURLException e) {
      throw new PinpointException("String_Node_Str",e);
    }
  }
  return urls;
}
Program: 53911
Project: 53911
Buggy source:
public boolean registerCommandService(ProfilerCommandService commandService){
  return this.commandServiceRegistry.addService(commandService);
}

Fixed version (ground truth):
public boolean registerCommandService(ProfilerCommandService commandService){
  if (commandService == null) {
    throw new NullPointerException("String_Node_Str");
  }
  return this.commandServiceRegistry.addService(commandService);
}
Program: 53912
Project: 53912
Buggy source:
@Override public void handleRequest(RequestPacket requestPacket,Channel channel){
  logger.info("String_Node_Str",requestPacket,channel);
  TBase<?,?> request=SerializationUtils.deserialize(requestPacket.getPayload(),deserializerFactory,null);
  TBase response=null;
  if (request == null) {
    TResult tResult=new TResult(false);
    tResult.setMessage("String_Node_Str");
    response=tResult;
  }
 else {
    ProfilerRequestCommandService service=commandServiceRegistry.getRequestService(request);
    if (service == null) {
      TResult tResult=new TResult(false);
      tResult.setMessage("String_Node_Str");
      response=tResult;
    }
 else {
      response=service.requestCommandService(request);
    }
  }
  byte[] payload=SerializationUtils.serialize(response,serializerFactory,null);
  if (payload != null) {
    channel.write(new ResponsePacket(requestPacket.getRequestId(),payload));
  }
}

Fixed version (ground truth):
@Override public void handleRequest(RequestPacket requestPacket,Channel channel){
  logger.info("String_Node_Str",requestPacket,channel);
  final TBase<?,?> request=SerializationUtils.deserialize(requestPacket.getPayload(),deserializerFactory,null);
  TBase response;
  if (request == null) {
    final TResult tResult=new TResult(false);
    tResult.setMessage("String_Node_Str");
    response=tResult;
  }
 else {
    final ProfilerRequestCommandService service=commandServiceRegistry.getRequestService(request);
    if (service == null) {
      TResult tResult=new TResult(false);
      tResult.setMessage("String_Node_Str");
      response=tResult;
    }
 else {
      response=service.requestCommandService(request);
    }
  }
  final byte[] payload=SerializationUtils.serialize(response,serializerFactory,null);
  if (payload != null) {
    channel.write(new ResponsePacket(requestPacket.getRequestId(),payload));
  }
}
Program: 53913
Project: 53913
Buggy source:
@Override public short handleStreamCreate(ServerStreamChannelContext streamChannelContext,StreamCreatePacket packet){
  logger.info("String_Node_Str",packet,streamChannelContext);
  TBase<?,?> request=SerializationUtils.deserialize(packet.getPayload(),deserializerFactory,null);
  ProfilerStreamCommandService service=commandServiceRegistry.getStreamService(request);
  if (service == null) {
    return StreamCreateFailPacket.PACKET_UNSUPPORT;
  }
  service.streamCommandService(request,streamChannelContext);
  return StreamCreatePacket.SUCCESS;
}

Fixed version (ground truth):
@Override public short handleStreamCreate(ServerStreamChannelContext streamChannelContext,StreamCreatePacket packet){
  logger.info("String_Node_Str",packet,streamChannelContext);
  final TBase<?,?> request=SerializationUtils.deserialize(packet.getPayload(),deserializerFactory,null);
  final ProfilerStreamCommandService service=commandServiceRegistry.getStreamService(request);
  if (service == null) {
    return StreamCreateFailPacket.PACKET_UNSUPPORT;
  }
  service.streamCommandService(request,streamChannelContext);
  return StreamCreatePacket.SUCCESS;
}
Program: 53914
Project: 53914
Buggy source:
public boolean addService(Class<? extends TBase> clazz,ProfilerCommandService service){
  ProfilerCommandService inValue=profilerCommandServiceRepository.putIfAbsent(clazz,service);
  if (inValue != null) {
    logger.warn("String_Node_Str",clazz.getName());
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean addService(Class<? extends TBase> clazz,ProfilerCommandService service){
  if (clazz == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (service == null) {
    throw new NullPointerException("String_Node_Str");
  }
  final ProfilerCommandService before=profilerCommandServiceRepository.putIfAbsent(clazz,service);
  if (before != null) {
    logger.warn("String_Node_Str",clazz.getName());
    return false;
  }
  return true;
}
Program: 53915
Project: 53915
Buggy source:
@Override public ProfilerRequestCommandService getRequestService(TBase tBase){
  ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerRequestCommandService) {
    return (ProfilerRequestCommandService)service;
  }
  return null;
}

Fixed version (ground truth):
@Override public ProfilerRequestCommandService getRequestService(TBase tBase){
  if (tBase == null) {
    return null;
  }
  final ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerRequestCommandService) {
    return (ProfilerRequestCommandService)service;
  }
  return null;
}
Program: 53916
Project: 53916
Buggy source:
@Override public ProfilerSimpleCommandService getSimpleService(TBase tBase){
  ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerSimpleCommandService) {
    return (ProfilerSimpleCommandService)service;
  }
  return null;
}

Fixed version (ground truth):
@Override public ProfilerSimpleCommandService getSimpleService(TBase tBase){
  if (tBase == null) {
    return null;
  }
  final ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerSimpleCommandService) {
    return (ProfilerSimpleCommandService)service;
  }
  return null;
}
Program: 53917
Project: 53917
Buggy source:
@Override public ProfilerStreamCommandService getStreamService(TBase tBase){
  ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerStreamCommandService) {
    return (ProfilerStreamCommandService)service;
  }
  return null;
}

Fixed version (ground truth):
@Override public ProfilerStreamCommandService getStreamService(TBase tBase){
  if (tBase == null) {
    return null;
  }
  final ProfilerCommandService service=profilerCommandServiceRepository.get(tBase.getClass());
  if (service instanceof ProfilerStreamCommandService) {
    return (ProfilerStreamCommandService)service;
  }
  return null;
}
Program: 53918
Project: 53918
Buggy source:
@Override public ProfilerCommandService getService(TBase tBase){
  return profilerCommandServiceRepository.get(tBase.getClass());
}

Fixed version (ground truth):
@Override public ProfilerCommandService getService(TBase tBase){
  if (tBase == null) {
    return null;
  }
  return profilerCommandServiceRepository.get(tBase.getClass());
}
Program: 53919
Project: 53919
Buggy source:
private String[] buildCommand() throws URISyntaxException {
  List<String> list=new ArrayList<String>();
  list.add(getJavaExecutable());
  list.add("String_Node_Str");
  list.add(getClassPath());
  list.add(getAgent());
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  if (isDebugMode()) {
    list.addAll(getDebugOptions());
  }
  if (configFile != null) {
    list.add("String_Node_Str" + resolveConfigFileLocation());
  }
  list.add(ForkedJUnit.class.getName());
  if (testOnChildClassLoader) {
    list.add(getChildClassPath());
  }
  list.add(getTestClass().getName());
  return list.toArray(new String[list.size()]);
}

Fixed version (ground truth):
private String[] buildCommand() throws URISyntaxException {
  List<String> list=new ArrayList<String>();
  list.add(getJavaExecutable());
  list.add("String_Node_Str");
  list.add(getClassPath());
  list.add(getAgent());
  list.add("String_Node_Str");
  list.add("String_Node_Str");
  list.add("String_Node_Str" + DEFAULT_ENCODING);
  if (isDebugMode()) {
    list.addAll(getDebugOptions());
  }
  if (configFile != null) {
    list.add("String_Node_Str" + resolveConfigFileLocation());
  }
  list.add(ForkedJUnit.class.getName());
  if (testOnChildClassLoader) {
    list.add(getChildClassPath());
  }
  list.add(getTestClass().getName());
  return list.toArray(new String[list.size()]);
}
Program: 53921
Project: 53921
Buggy source:
public static ProfilerConfig load(String pinpiontConfigFileName) throws IOException {
  try {
    Properties properties=PropertyUtils.loadProperty(pinpiontConfigFileName);
    return new ProfilerConfig(properties);
  }
 catch (  FileNotFoundException fe) {
    if (logger.isLoggable(Level.WARNING)) {
      logger.log(Level.WARNING,pinpiontConfigFileName + "String_Node_Str");
    }
    throw fe;
  }
catch (  IOException e) {
    if (logger.isLoggable(Level.WARNING)) {
      logger.log(Level.WARNING,pinpiontConfigFileName + "String_Node_Str" + e.getMessage(),e);
    }
    throw e;
  }
}

Fixed version (ground truth):
public static ProfilerConfig load(String pinpointConfigFileName) throws IOException {
  try {
    Properties properties=PropertyUtils.loadProperty(pinpointConfigFileName);
    return new ProfilerConfig(properties);
  }
 catch (  FileNotFoundException fe) {
    if (logger.isLoggable(Level.WARNING)) {
      logger.log(Level.WARNING,pinpointConfigFileName + "String_Node_Str");
    }
    throw fe;
  }
catch (  IOException e) {
    if (logger.isLoggable(Level.WARNING)) {
      logger.log(Level.WARNING,pinpointConfigFileName + "String_Node_Str" + e.getMessage(),e);
    }
    throw e;
  }
}
Program: 53922
Project: 53922
Buggy source:
public ProfilerConfig(Properties properties){
  this.properties=properties;
  readPropertyValues();
}

Fixed version (ground truth):
public ProfilerConfig(Properties properties){
  if (properties == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.properties=properties;
  readPropertyValues();
}
Program: 53923
Project: 53923
Buggy source:
public AgentInformation(String agentId,String applicationName,long startTime,int pid,String machineName,String hostIp,short serverType,String version){
  if (agentId == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (applicationName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (machineName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (version == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.agentId=agentId;
  this.applicationName=applicationName;
  this.startTime=startTime;
  this.pid=pid;
  this.machineName=machineName;
  this.hostIp=hostIp;
  this.serverType=serverType;
  this.version=version;
}

Fixed version (ground truth):
public AgentInformation(String agentId,String applicationName,long startTime,int pid,String machineName,String hostIp,short serverType,String version){
  if (agentId == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (applicationName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (machineName == null) {
    throw new NullPointerException("String_Node_Str");
  }
  if (version == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.agentId=agentId;
  this.applicationName=applicationName;
  this.startTime=startTime;
  this.pid=pid;
  this.machineName=machineName;
  this.hostIp=hostIp;
  this.serverType=serverType;
  this.serverServiceType=ServiceType.findServiceType(serverType);
  this.version=version;
}
Program: 53924
Project: 53924
Buggy source:
@Override public Trace disableSampling(){
  return null;
}

Fixed version (ground truth):
@Override public Trace disableSampling(){
  return traceFactory.disableSampling();
}
Program: 53925
Project: 53925
Buggy source:
public void setProfilerConfig(final ProfilerConfig profilerConfig){
  this.profilerConfig=profilerConfig;
}

Fixed version (ground truth):
public void setProfilerConfig(final ProfilerConfig profilerConfig){
  if (profilerConfig == null) {
    throw new NullPointerException("String_Node_Str");
  }
  this.profilerConfig=profilerConfig;
}
Program: 53926
Project: 53926
Buggy source:
@Override public String getServerType(){
  return ServiceType.findServiceType(this.agentInformation.getServerType()).getDesc();
}

Fixed version (ground truth):
@Override public String getServerType(){
  return this.agentInformation.getServerServiceType().getDesc();
}
Program: 53927
Project: 53927
Buggy source:
@Override public Trace disableSampling(){
  checkBeforeTraceObject();
  final Trace metricTrace=createMetricTrace();
  threadLocal.set(metricTrace);
  return null;
}

Fixed version (ground truth):
@Override public Trace disableSampling(){
  checkBeforeTraceObject();
  final Trace metricTrace=createMetricTrace();
  threadLocal.set(metricTrace);
  return metricTrace;
}
Program: 53929
Project: 53929
Buggy source:
@Override protected Trace createTrace(Object target,Object[] args){
  final HttpServletRequest request=(HttpServletRequest)args[0];
  final String requestURI=request.getRequestURI();
  if (excludeUrlFilter.filter(requestURI)) {
    if (isTrace) {
      logger.trace("String_Node_Str",requestURI);
    }
    return null;
  }
  final boolean sampling=samplingEnable(request);
  if (!sampling) {
    final Trace trace=getTraceContext().disableSampling();
    if (isDebug) {
      logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
    }
    return trace;
  }
  final TraceId traceId=populateTraceIdFromRequest(request);
  if (traceId != null) {
    final Trace trace=getTraceContext().continueTraceObject(traceId);
    if (trace.canSampled()) {
      if (isDebug) {
        logger.debug("String_Node_Str",new Object[]{traceId,request.getRequestURI(),request.getRemoteAddr()});
      }
    }
 else {
      if (isDebug) {
        logger.debug("String_Node_Str",new Object[]{traceId,request.getRequestURI(),request.getRemoteAddr()});
      }
    }
    return trace;
  }
 else {
    final Trace trace=getTraceContext().newTraceObject();
    if (trace.canSampled()) {
      if (isDebug) {
        logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
      }
    }
 else {
      if (isDebug) {
        logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
      }
    }
    return trace;
  }
}

Fixed version (ground truth):
@Override protected Trace createTrace(Object target,Object[] args){
  final HttpServletRequest request=(HttpServletRequest)args[0];
  final String requestURI=request.getRequestURI();
  if (excludeUrlFilter.filter(requestURI)) {
    if (isTrace) {
      logger.trace("String_Node_Str",requestURI);
    }
    return null;
  }
  final boolean sampling=samplingEnable(request);
  if (!sampling) {
    final TraceContext traceContext=getTraceContext();
    final Trace trace=traceContext.disableSampling();
    if (isDebug) {
      logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
    }
    return trace;
  }
  final TraceId traceId=populateTraceIdFromRequest(request);
  if (traceId != null) {
    final TraceContext traceContext=getTraceContext();
    final Trace trace=traceContext.continueTraceObject(traceId);
    if (trace.canSampled()) {
      if (isDebug) {
        logger.debug("String_Node_Str",new Object[]{traceId,request.getRequestURI(),request.getRemoteAddr()});
      }
    }
 else {
      if (isDebug) {
        logger.debug("String_Node_Str",new Object[]{traceId,request.getRequestURI(),request.getRemoteAddr()});
      }
    }
    return trace;
  }
 else {
    final TraceContext traceContext=getTraceContext();
    final Trace trace=traceContext.newTraceObject();
    if (trace.canSampled()) {
      if (isDebug) {
        logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
      }
    }
 else {
      if (isDebug) {
        logger.debug("String_Node_Str",request.getRequestURI(),request.getRemoteAddr());
      }
    }
    return trace;
  }
}
Program: 53930
Project: 53930
Buggy source:
@Test public void trace(){
  DefaultTraceId traceID=new DefaultTraceId("String_Node_Str",0,1);
  DefaultTraceContext defaultTraceConetxt=getDefaultTraceConetxt();
  DefaultTrace trace=new DefaultTrace(defaultTraceConetxt,traceID);
  trace.setStorage(new SpanStorage(LoggingDataSender.DEFAULT_LOGGING_DATA_SENDER));
  trace.traceBlockBegin();
  trace.recordServiceType(ServiceType.UNKNOWN);
  trace.recordRpcName("String_Node_Str");
  trace.recordEndPoint("String_Node_Str");
  trace.recordAttribute(AnnotationKey.API,"String_Node_Str");
  getDataFromDB(trace);
  trace.traceBlockEnd();
}

Fixed version (ground truth):
@Test public void trace(){
  DefaultTraceId traceID=new DefaultTraceId("String_Node_Str",0,1);
  DefaultTraceContext defaultTraceConetxt=getDefaultTraceContext();
  DefaultTrace trace=new DefaultTrace(defaultTraceConetxt,traceID);
  trace.setStorage(new SpanStorage(LoggingDataSender.DEFAULT_LOGGING_DATA_SENDER));
  trace.traceBlockBegin();
  trace.recordServiceType(ServiceType.UNKNOWN);
  trace.recordRpcName("String_Node_Str");
  trace.recordEndPoint("String_Node_Str");
  trace.recordAttribute(AnnotationKey.API,"String_Node_Str");
  getDataFromDB(trace);
  trace.traceBlockEnd();
}
Program: 53931
Project: 53931
Buggy source:
@Test public void popEventTest(){
  DefaultTraceId traceID=new DefaultTraceId("String_Node_Str",0,1);
  DefaultTraceContext defaultTraceConetxt=getDefaultTraceConetxt();
  DefaultTrace trace=new DefaultTrace(defaultTraceConetxt,traceID);
  TestDataSender dataSender=new TestDataSender();
  trace.setStorage(new SpanStorage(LoggingDataSender.DEFAULT_LOGGING_DATA_SENDER));
  trace.traceRootBlockEnd();
  logger.info(String.valueOf(dataSender.event));
}

Fixed version (ground truth):
@Test public void popEventTest(){
  DefaultTraceId traceID=new DefaultTraceId("String_Node_Str",0,1);
  DefaultTraceContext defaultTraceConetxt=getDefaultTraceContext();
  DefaultTrace trace=new DefaultTrace(defaultTraceConetxt,traceID);
  TestDataSender dataSender=new TestDataSender();
  trace.setStorage(new SpanStorage(LoggingDataSender.DEFAULT_LOGGING_DATA_SENDER));
  trace.traceRootBlockEnd();
  logger.info(String.valueOf(dataSender.event));
}
Program: 53932
Project: 53932
Buggy source:
@Test public void testValidHeaderExists(){
  HttpServletRequest request=mock(HttpServletRequest.class);
  HttpServletResponse response=mock(HttpServletResponse.class);
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn(UUID.randomUUID().toString());
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn("String_Node_Str");
  Enumeration<?> enumeration=mock(Enumeration.class);
  when(request.getParameterNames()).thenReturn(enumeration);
  TraceContext traceContext=new MockTraceContextFactory().create();
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}

Fixed version (ground truth):
@Test public void testValidHeaderExists(){
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn(UUID.randomUUID().toString());
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn("String_Node_Str");
  when(request.getParameterNames()).thenReturn(enumeration);
  TraceContext traceContext=new MockTraceContextFactory().create();
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}
Program: 53933
Project: 53933
Buggy source:
@Test public void testInvalidHeaderExists(){
  HttpServletRequest request=mock(HttpServletRequest.class);
  HttpServletResponse response=mock(HttpServletResponse.class);
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn("String_Node_Str");
  Enumeration<?> enumeration=mock(Enumeration.class);
  when(request.getParameterNames()).thenReturn(enumeration);
  TraceContext traceContext=new MockTraceContextFactory().create();
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}

Fixed version (ground truth):
@Test public void testInvalidHeaderExists(){
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn("String_Node_Str");
  when(request.getParameterNames()).thenReturn(enumeration);
  TraceContext traceContext=new MockTraceContextFactory().create();
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}
Program: 53934
Project: 53934
Buggy source:
@Test public void testHeaderNOTExists(){
  HttpServletRequest request=mock(HttpServletRequest.class);
  HttpServletResponse response=mock(HttpServletResponse.class);
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn(null);
  Enumeration<?> enumeration=mock(Enumeration.class);
  when(request.getParameterNames()).thenReturn(enumeration);
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  TraceContext traceContext=new MockTraceContextFactory().create();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}

Fixed version (ground truth):
@Test public void testHeaderNOTExists(){
  when(request.getRequestURI()).thenReturn("String_Node_Str");
  when(request.getRemoteAddr()).thenReturn("String_Node_Str");
  when(request.getHeader(Header.HTTP_TRACE_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_PARENT_SPAN_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_SPAN_ID.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_SAMPLED.toString())).thenReturn(null);
  when(request.getHeader(Header.HTTP_FLAGS.toString())).thenReturn(null);
  when(request.getParameterNames()).thenReturn(enumeration);
  StandardHostValveInvokeInterceptor interceptor=new StandardHostValveInvokeInterceptor();
  TraceContext traceContext=new MockTraceContextFactory().create();
  interceptor.setTraceContext(traceContext);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
  interceptor.before("String_Node_Str",new Object[]{request,response});
  interceptor.after("String_Node_Str",new Object[]{request,response},new Object(),null);
}
Program: 53935
Project: 53935
Buggy source:
public void start(){
switch (this.workerState.getCurrentState()) {
case NEW:
    if (this.workerState.changeStateInitializing()) {
      logger.info("String_Node_Str",this.getClass().getSimpleName());
      this.workerThread.start();
      workerState.changeStateStarted();
      logger.info("String_Node_Str",this.getClass().getSimpleName());
      break;
    }
case INITIALIZING:
  logger.info("String_Node_Str",this.getClass().getSimpleName());
break;
case STARTED:
logger.info("String_Node_Str",this.getClass().getSimpleName());
break;
case DESTROYING:
throw new IllegalStateException("String_Node_Str");
case STOPPED:
throw new IllegalStateException("String_Node_Str");
case ILLEGAL_STATE:
throw new IllegalStateException("String_Node_Str");
}
}

Fixed version (ground truth):
public void start(){
switch (this.workerState.getCurrentState()) {
case NEW:
    if (this.workerState.changeStateInitializing()) {
      logger.info("String_Node_Str",this.getClass().getSimpleName());
      workerState.changeStateStarted();
      this.workerThread.start();
      logger.info("String_Node_Str",this.getClass().getSimpleName());
      break;
    }
case INITIALIZING:
  logger.info("String_Node_Str",this.getClass().getSimpleName());
break;
case STARTED:
logger.info("String_Node_Str",this.getClass().getSimpleName());
break;
case DESTROYING:
throw new IllegalStateException("String_Node_Str");
case STOPPED:
throw new IllegalStateException("String_Node_Str");
case ILLEGAL_STATE:
throw new IllegalStateException("String_Node_Str");
}
}
Program: 53936
Project: 53936
Buggy source:
private boolean isTarget(Class<?> clazz){
  if (Boolean.TRUE.equals(rejected.getIfPresent(clazz))) {
    return false;
  }
  if (targetAnnotationNames != null) {
    List<Class<? extends Annotation>> targetAnnotations=getTargetAnnotations(clazz.getClassLoader());
    for (    Class<? extends Annotation> a : targetAnnotations) {
      if (clazz.isAnnotationPresent(a)) {
        return true;
      }
    }
    for (    Annotation a : clazz.getAnnotations()) {
      for (      Class<? extends Annotation> ac : targetAnnotations) {
        if (a.annotationType().isAnnotationPresent(ac)) {
          return true;
        }
      }
    }
  }
  if (targetClassPatterns != null) {
    String className=clazz.getName();
    for (    Pattern pattern : targetClassPatterns) {
      if (pattern.matcher(className).matches()) {
        return true;
      }
    }
  }
  rejected.put(clazz,Boolean.TRUE);
  return false;
}

Fixed version (ground truth):
private boolean isTarget(Class<?> clazz){
  if (rejected.getIfPresent(clazz) == Boolean.TRUE) {
    return false;
  }
  if (targetAnnotationNames != null) {
    List<Class<? extends Annotation>> targetAnnotations=getTargetAnnotations(clazz.getClassLoader());
    for (    Class<? extends Annotation> a : targetAnnotations) {
      if (clazz.isAnnotationPresent(a)) {
        return true;
      }
    }
    for (    Annotation a : clazz.getAnnotations()) {
      for (      Class<? extends Annotation> ac : targetAnnotations) {
        if (a.annotationType().isAnnotationPresent(ac)) {
          return true;
        }
      }
    }
  }
  if (targetClassPatterns != null) {
    String className=clazz.getName();
    for (    Pattern pattern : targetClassPatterns) {
      if (pattern.matcher(className).matches()) {
        return true;
      }
    }
  }
  rejected.put(clazz,Boolean.TRUE);
  return false;
}
Program: 53937
Project: 53937
Buggy source:
private static List<String> split(String values){
  if (values == null) {
    return Collections.emptyList();
  }
  String[] tokens=values.split("String_Node_Str");
  List<String> result=new ArrayList<String>(tokens.length);
  for (  String token : tokens) {
    String trimmed=token.trim();
    if (!trimmed.isEmpty()) {
      result.add(trimmed);
    }
  }
  return result;
}

Fixed version (ground truth):
private static List<String> split(String values){
  if (values == null) {
    return Collections.<String>emptyList();
  }
  String[] tokens=values.split("String_Node_Str");
  List<String> result=new ArrayList<String>(tokens.length);
  for (  String token : tokens) {
    String trimmed=token.trim();
    if (!trimmed.isEmpty()) {
      result.add(trimmed);
    }
  }
  return result;
}
Program: 53938
Project: 53938
Buggy source:
private List<Class<? extends Annotation>> loadTargetAnnotations(ClassLoader loader){
  List<Class<? extends Annotation>> targetAnnotationClasses=null;
  if (!targetAnnotationNames.isEmpty()) {
    targetAnnotationClasses=new ArrayList<Class<? extends Annotation>>(targetAnnotationNames.size());
    for (    String annotationName : targetAnnotationNames) {
      try {
        Class<?> clazz=loader.loadClass(annotationName);
        Class<? extends Annotation> ac=clazz.asSubclass(Annotation.class);
        targetAnnotationClasses.add(ac);
      }
 catch (      ClassNotFoundException ex) {
        logger.warn("String_Node_Str",annotationName,ex);
      }
catch (      ClassCastException ex) {
        logger.warn("String_Node_Str",annotationName,ex);
      }
    }
  }
  return targetAnnotationClasses;
}

Fixed version (ground truth):
private List<Class<? extends Annotation>> loadTargetAnnotations(ClassLoader loader){
  if (targetAnnotationNames.isEmpty()) {
    return Collections.<Class<? extends Annotation>>emptyList();
  }
  List<Class<? extends Annotation>> targetAnnotationClasses=new ArrayList<Class<? extends Annotation>>(targetAnnotationNames.size());
  for (  String s : targetAnnotationNames) {
    try {
      Class<?> c=loader.loadClass(s);
      Class<? extends Annotation> ac=c.asSubclass(Annotation.class);
      targetAnnotationClasses.add(ac);
    }
 catch (    ClassNotFoundException e) {
      logger.warn("String_Node_Str" + s + "String_Node_Str",e);
    }
catch (    ClassCastException e) {
      logger.warn("String_Node_Str" + s + "String_Node_Str",e);
    }
  }
  return targetAnnotationClasses;
}
Program: 53939
Project: 53939
Buggy source:
public static TargetBeanFilter of(ProfilerConfig config){
  List<String> targetNamePatternStrings=split(config.getSpringBeansNamePatterns());
  List<String> targetClassPatternStrings=split(config.getSpringBeansClassPatterns());
  List<String> targetAnnotationNames=split(config.getSpringBeansAnnotations());
  List<Pattern> beanNamePatterns=compilePattern(targetNamePatternStrings);
  List<Pattern> beanClassPatterns=compilePattern(targetClassPatternStrings);
  return new TargetBeanFilter(beanNamePatterns,beanClassPatterns,targetAnnotationNames);
}

Fixed version (ground truth):
public static TargetBeanFilter of(ProfilerConfig config){
  List<String> targetNamePatternStrings=split(config.getSpringBeansNamePatterns());
  List<String> targetClassPatternStrings=split(config.getSpringBeansClassPatterns());
  List<String> targetAnnotationNames=split(config.getSpringBeansAnnotations());
  List<Pattern> beanNamePatterns=null;
  if (!targetNamePatternStrings.isEmpty()) {
    beanNamePatterns=new ArrayList<Pattern>(targetNamePatternStrings.size());
    for (    String s : targetNamePatternStrings) {
      Pattern p=Pattern.compile(s);
      beanNamePatterns.add(p);
    }
  }
  List<Pattern> beanClassPatterns=null;
  if (!targetClassPatternStrings.isEmpty()) {
    beanClassPatterns=new ArrayList<Pattern>(targetClassPatternStrings.size());
    for (    String s : targetClassPatternStrings) {
      Pattern p=Pattern.compile(s);
      beanClassPatterns.add(p);
    }
  }
  return new TargetBeanFilter(beanNamePatterns,beanClassPatterns,targetAnnotationNames);
}
Program: 53940
Project: 53940
Buggy source:
protected boolean decideResult(long value){
  if (value >= rule.getThreshold()) {
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
protected boolean decideResult(long value){
  return value >= rule.getThreshold();
}
Program: 53941
Project: 53941
Buggy source:
public void check(){
  dataCollector.collect();
  if (decideResult(getDetectedValue())) {
    detected=true;
  }
 else {
    detected=false;
  }
  logger.info("String_Node_Str",this.getClass().getSimpleName(),detected,rule.getApplicationId(),getDetectedValue(),rule.getThreshold());
}

Fixed version (ground truth):
public void check(){
  dataCollector.collect();
  detected=decideResult(getDetectedValue());
  logger.info("String_Node_Str",this.getClass().getSimpleName(),detected,rule.getApplicationId(),getDetectedValue(),rule.getThreshold());
}
Program: 53942
Project: 53942
Buggy source:
protected final void processBean(String beanName,Object bean){
  if (bean == null) {
    return;
  }
  Class<? extends Object> clazz=bean.getClass();
  if (!filter.isTarget(beanName,clazz)) {
    return;
  }
  try {
    retransformer.retransform(clazz,modifier);
    if (logger.isInfoEnabled()) {
      logger.info("String_Node_Str" + clazz.getName());
    }
  }
 catch (  ProfilerException e) {
    logger.warn("String_Node_Str" + clazz.getName(),e);
    return;
  }
  filter.addTransformed(clazz);
}

Fixed version (ground truth):
protected final void processBean(String beanName,Object bean){
  if (bean == null) {
    return;
  }
  Class<?> clazz=bean.getClass();
  if (!filter.isTarget(beanName,clazz)) {
    return;
  }
  try {
    retransformer.retransform(clazz,modifier);
    if (logger.isInfoEnabled()) {
      logger.info("String_Node_Str",clazz.getName());
    }
  }
 catch (  ProfilerException e) {
    logger.warn("String_Node_Str",clazz.getName(),e);
    return;
  }
  filter.addTransformed(clazz);
}