<commit_before>package water.util;

import java.io.*;
import java.lang.management.ManagementFactory;

import water.H2O;
import water.Timer;
import water.util.L.Tag.Kind;
import water.util.L.Tag.Sys;

/** To be renamed Log. Right now it causes ambiguities with the old Log class **/
abstract public class L {

  /** Tags for log messages */
  public static interface Tag {
    /** Which subsystem of h2o? */
    public static enum Sys implements Tag {
      RANDF, GENLM, KMEAN, PARSE, STORE, WATER, HDFS_, HTTPD, CLEANR, CONFM;
    }

    /** What kind of message? */
    public static enum Kind implements Tag {
      INFO, WARN, ERRR;
    }
  }

  /** Verbosity for debug log level */
  static private volatile int level = Integer.getInteger("h2o.log.debug.level", 3);
  /** IP address of the host */
  public static final String HOST = H2O.findInetAddressForSelf().getHostAddress();
  /** Some guess at the process ID. */
  public static final long PID = getPid();
  /** Hostname and process ID. */
  private static final String HOST_AND_PID = "" + fixedLength(HOST + " ", 13) + fixedLength(PID + " ", 6);

  /**
   * Events are created for all calls to the logging API. In the current implementation we don't do
   * anything with them but this may change.
   **/
  static class Event {
    Object where;
    Tag kind;
    Tag sys;
    Timer when;
    Throwable ouch;
    Object[] message;

    Event(Object where, Tag.Sys sys, Tag.Kind kind, Throwable ouch, Object[] message) {
      this.where = where;
      this.kind = kind;
      this.ouch = ouch;<commit_msg>Lower default log level much lower.  We can (and should) raise it for customer branches... but its painfully loud for internal dev right now.<commit_after>package water.util;

import java.io.*;
import java.lang.management.ManagementFactory;

import water.H2O;
import water.Timer;
import water.util.L.Tag.Kind;
import water.util.L.Tag.Sys;

/** To be renamed Log. Right now it causes ambiguities with the old Log class **/
abstract public class L {

  /** Tags for log messages */
  public static interface Tag {
    /** Which subsystem of h2o? */
    public static enum Sys implements Tag {
      RANDF, GENLM, KMEAN, PARSE, STORE, WATER, HDFS_, HTTPD, CLEANR, CONFM;
    }

    /** What kind of message? */
    public static enum Kind implements Tag {
      INFO, WARN, ERRR;
    }
  }

  /** Verbosity for debug log level */
  static private volatile int level = Integer.getInteger("h2o.log.debug.level", 1);
  /** IP address of the host */
  public static final String HOST = H2O.findInetAddressForSelf().getHostAddress();
  /** Some guess at the process ID. */
  public static final long PID = getPid();
  /** Hostname and process ID. */
  private static final String HOST_AND_PID = "" + fixedLength(HOST + " ", 13) + fixedLength(PID + " ", 6);

  /**
   * Events are created for all calls to the logging API. In the current implementation we don't do
   * anything with them but this may change.
   **/
  static class Event {
    Object where;
    Tag kind;
    Tag sys;
    Timer when;
    Throwable ouch;
    Object[] message;

    Event(Object where, Tag.Sys sys, Tag.Kind kind, Throwable ouch, Object[] message) {
      this.where = where;
      this.kind = kind;
      this.ouch = ouch;
{'fraction_non_alphanumeric': 0.10876225490196079, 'fraction_numerical': 0.004901960784313725, 'mean_word_length': 2.981707317073171, 'pattern_counts': {'":': 0, '<': 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': '1859689', 'n_tokens_mistral': 1014, 'n_tokens_neox': 973, 'n_words': 374}