<commit_before>package gov.nih.nci.nautilus.util;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SetupServlet extends HttpServlet {
  private static final String CLASSNAME = "SetupServlet";
  private static SetupServlet onlyInstance = null;
  private static String logFile;
  
  public static synchronized SetupServlet getInstance()
    {
      if (onlyInstance == null){
            onlyInstance = new SetupServlet();
		 }
      return onlyInstance;
    }

 /*private SetupServlet(){
    try{
      init();  
      }  
    catch(Exception e){
	  e.printStackTrace();
	  }
   }
   */   
  public void init() throws UnavailableException {
    ServletConfig config = getServletConfig();
    ServletContext context = getServletContext();

    String realPath = context.getRealPath("/");	
    logFile = realPath + config.getInitParameter("logfile");
    if (logFile != null) {
      logFile = logFile.replace('|', File.separatorChar);
      context.setAttribute("logfile", logFile);
      } 
	else {
      log(CLASSNAME + ": Unable to load init parameters."); 
      throw new UnavailableException("Setup not complete.");
    } 
	
	System.out.println("logFile is :"+logFile);  
     }
   
  public static String getLogFile(){
    return logFile;
   }  
} <commit_msg>*** empty log message ***<commit_after>package gov.nih.nci.nautilus.util;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SetupServlet extends HttpServlet {
  private static final String CLASSNAME = "SetupServlet";
  private static SetupServlet onlyInstance = null;
  private static String logFile;
  
  public static synchronized SetupServlet getInstance()
    {
      if (onlyInstance == null){
            onlyInstance = new SetupServlet();
		 }
      return onlyInstance;
    }

 public void init() throws UnavailableException {
    ServletConfig config = getServletConfig();
    ServletContext context = getServletContext();

    String realPath = context.getRealPath("/");	
    logFile = realPath + config.getInitParameter("logfile");
    if (logFile != null) {
      logFile = logFile.replace('|', File.separatorChar);
      context.setAttribute("logfile", logFile);
      } 
	else {
      log(CLASSNAME + ": Unable to load init parameters."); 
      throw new UnavailableException("Setup not complete.");
    } 
	
	System.out.println("logFile is :"+logFile);  
     }
   
  public static String getLogFile(){
    return logFile;
   }  
} 
{'fraction_non_alphanumeric': 0.11361836896278701, 'fraction_numerical': 0.0, 'mean_word_length': 3.183774834437086, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4619198', 'n_tokens_mistral': 711, 'n_tokens_neox': 682, 'n_words': 189}