<commit_before>// See the COPYRIGHT file for copyright and license information
package org.znerd.logdoc.internal;

/**
 * Logdoc-internal logging.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public final class InternalLogging {
   
   //-------------------------------------------------------------------------
   // Class functions
   //-------------------------------------------------------------------------

   /**
    * Logs a debug message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void debug(String message) {
      // TODO
   }

   /**
    * Logs an informational message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void info(String message) {
      // TODO
   }
   
   /**
    * Logs an informational message that should typically be noticed.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void notice(String message) {
      // TODO
   }
   
   /**
    * Logs a warning message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void warn(String message) {
      // TODO
   }

   /**
    * Logs an error message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void error(String message) {
      // TODO
   }

   /**
    * Logs a fatal error message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void fatal(String message) {
      // TODO
   }

   
   //-------------------------------------------------------------------------
   // Constructors
   //-------------------------------------------------------------------------

   /**
    * Constructs a new <code>InternalLogging</code> object.
    */
   private InternalLogging() {
      // empty
   }
}<commit_msg>Implemented internal logging via System.err.<commit_after>// See the COPYRIGHT file for copyright and license information
package org.znerd.logdoc.internal;

import org.znerd.logdoc.LogLevel;

/**
 * Logdoc-internal logging.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 */
public final class InternalLogging {
   
   //-------------------------------------------------------------------------
   // Class functions
   //-------------------------------------------------------------------------

   /**
    * Logs a debug message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void debug(String message) {
      log(LogLevel.DEBUG, message);
   }

   /**
    * Logs an informational message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void info(String message) {
      log(LogLevel.INFO, message);
   }
   
   /**
    * Logs an informational message that should typically be noticed.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void notice(String message) {
      log(LogLevel.NOTICE, message);
   }
   
   /**
    * Logs a warning message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void warn(String message) {
      log(LogLevel.WARNING, message);
   }

   /**
    * Logs an error message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void error(String message) {
      log(LogLevel.ERROR, message);
   }

   /**
    * Logs a fatal error message.
    * 
    * @param message
    *    the message, or <code>null</code>.
    */
   public static void fatal(String message) {
      log(LogLevel.FATAL, message);
   }
   
   private static void log(LogLevel level, String message) {
      System.err.println("" + level.name().charAt(0) + ' ' + message);
   }

   
   //-------------------------------------------------------------------------
   // Constructors
   //-------------------------------------------------------------------------

   /**
    * Constructs a new <code>InternalLogging</code> object.
    */
   private InternalLogging() {
      // empty
   }
}
{'fraction_non_alphanumeric': 0.2547971824143794, 'fraction_numerical': 0.00024289531212047608, 'mean_word_length': 1.3082959641255605, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2977503', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1105, 'n_words': 290}