<commit_before>package io.grpc.contrib.perfmark;

final class Marker {

    static final Marker NONE = new Marker(null, -1, null, null);

    private final String fileName;
    private final int lineNumber;
    private final String className;
    private final String functionName;

    private Marker(String fileName, int lineNumber, String className, String functionName) {
        this.fileName = fileName;
        this.lineNumber = lineNumber;
        this.className = className;
        this.functionName = functionName;
    }

    static Marker create() {
        // TODO(carl-mastrangelo): implement
        StackTraceElement[] st = new RuntimeException().fillInStackTrace().getStackTrace();
        if (st.length > 1) {
            return new Marker(st[1].getFileName(), st[1].getLineNumber(), st[1].getClassName(), st[1].getMethodName());
        } else {
            return NONE;
        }
    }
}<commit_msg>add a dummy Marker tostring<commit_after>package io.grpc.contrib.perfmark;

final class Marker {

  static final Marker NONE = new Marker(null, -1, null, null);

  private final String fileName;
  private final int lineNumber;
  private final String className;
  private final String functionName;

  private Marker(String fileName, int lineNumber, String className, String functionName) {
    this.fileName = fileName;
    this.lineNumber = lineNumber;
    this.className = className;
    this.functionName = functionName;
  }

  static Marker create() {
    // TODO(carl-mastrangelo): implement
    StackTraceElement[] st = new RuntimeException().fillInStackTrace().getStackTrace();
    if (st.length > 1) {
      return new Marker(st[1].getFileName(), st[1].getLineNumber(), st[1].getClassName(), st[1].getMethodName());
    } else {
      return NONE;
    }
  }

  @Override
  public String toString() {
    if (this == NONE) {
      return "Marker.NONE";
    }
    return super.toString();
  }
}
{'fraction_non_alphanumeric': 0.11099531005732152, 'fraction_numerical': 0.006253256904637832, 'mean_word_length': 3.155844155844156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3308455', 'n_tokens_mistral': 550, 'n_tokens_neox': 548, 'n_words': 151}