<commit_before>package org.datatransferproject.transport.jettyrest.http;

import org.datatransferproject.api.launcher.Monitor;
import org.eclipse.jetty.util.log.Logger;

/** */
public class JettyMonitor implements Logger {
  private static Monitor DELEGATE;

  public String getName() {
    return "Data Transfer Project";
  }

  public static void setDelegate(Monitor delegate) {
    JettyMonitor.DELEGATE = delegate;
  }

  public void warn(String msg, Object... args) {
    // TODO figure out how to handle args
  }

  public void warn(Throwable thrown) {
    warn("Error processing request", thrown);
  }

  public void warn(String msg, Throwable thrown) {
    DELEGATE.info(() -> msg, thrown);
  }

  public void info(String msg, Object... args) {
    DELEGATE.info(() -> msg);
  }

  public void info(Throwable thrown) {
    DELEGATE.info(() -> "Error processing request", thrown);
  }

  public void info(String msg, Throwable thrown) {
    DELEGATE.info(() -> msg, thrown);
  }

  public boolean isDebugEnabled() {
    return Boolean.parseBoolean(System.getProperty("jettyDebug", "false"));
  }

  public void setDebugEnabled(boolean enabled) {
    // no-op
  }

  public void debug(String msg, Object... args) {
    DELEGATE.debug(() -> msg);
  }

  public void debug(String msg, long value) {
    DELEGATE.debug(() -> msg);
  }

  public void debug(Throwable thrown) {
    DELEGATE.debug(() -> "Error processing request", thrown);
  }

  public void debug(String msg, Throwable thrown) {
    DELEGATE.info(() -> msg, thrown);
  }

  public Logger getLogger(String name) {
    return this;
  }

  public void ignore(Throwable ignored) {
    // no-op
  }
}
<commit_msg>When a RuntimeException is thrown on the API JettyMonitor means that it is currently logged as info rather than severe. This changes the mapping to make it severe.<commit_after>package org.datatransferproject.transport.jettyrest.http;

import org.datatransferproject.api.launcher.Monitor;
import org.eclipse.jetty.util.log.Logger;

/** */
public class JettyMonitor implements Logger {
  private static Monitor DELEGATE;

  public String getName() {
    return "Data Transfer Project";
  }

  public static void setDelegate(Monitor delegate) {
    JettyMonitor.DELEGATE = delegate;
  }

  public void warn(String msg, Object... args) {
    // TODO figure out how to handle args
  }

  public void warn(Throwable thrown) {
    warn("Error processing request", thrown);
  }

  public void warn(String msg, Throwable thrown) {
    DELEGATE.severe(() -> msg, thrown);
  }

  public void info(String msg, Object... args) {
    DELEGATE.info(() -> msg);
  }

  public void info(Throwable thrown) {
    DELEGATE.info(() -> "Error processing request", thrown);
  }

  public void info(String msg, Throwable thrown) {
    DELEGATE.info(() -> msg, thrown);
  }

  public boolean isDebugEnabled() {
    return Boolean.parseBoolean(System.getProperty("jettyDebug", "false"));
  }

  public void setDebugEnabled(boolean enabled) {
    // no-op
  }

  public void debug(String msg, Object... args) {
    DELEGATE.debug(() -> msg);
  }

  public void debug(String msg, long value) {
    DELEGATE.debug(() -> msg);
  }

  public void debug(Throwable thrown) {
    DELEGATE.debug(() -> "Error processing request", thrown);
  }

  public void debug(String msg, Throwable thrown) {
    DELEGATE.debug(() -> msg, thrown);
  }

  public Logger getLogger(String name) {
    return this;
  }

  public void ignore(Throwable ignored) {
    // no-op
  }
}

{'fraction_non_alphanumeric': 0.12204163102366695, 'fraction_numerical': 0.0, 'mean_word_length': 3.3523573200992556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1380329', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1061, 'n_words': 309}