<commit_before>package io.honeybadger.reporter.dto;

import java.io.Serializable;

/**
 * One single line on a backtrace.
 * @author <a href="https://github.com/dekobon"><NAME></a>
 * @since 1.0.9
 */
public class BacktraceElement implements Serializable {
    private static final long serialVersionUID = -4455225669072193184L;

    public final String number;
    public final String file;
    public final String method;

    public BacktraceElement(String number, String file, String method) {
        this.number = number;
        this.file = file;
        this.method = method;
    }

    public BacktraceElement(StackTraceElement element) {
        this.number = String.valueOf(element.getLineNumber());
        this.file = element.getFileName();
        this.method = formatMethod(element);
    }

    static String formatMethod(StackTraceElement element) {
        return String.format("%s.%s",
                element.getClassName(), element.getMethodName());
    }
}<commit_msg>Fixed failing build by doing a null-safe conversation for stacktraces.<commit_after>package io.honeybadger.reporter.dto;

import java.io.Serializable;

/**
 * One single line on a backtrace.
 * @author <a href="https://github.com/dekobon"><NAME></a>
 * @since 1.0.9
 */
public class BacktraceElement implements Serializable {
    private static final long serialVersionUID = -4455225669072193184L;

    public final String file;
    public final String method;
    public final String number;

    public BacktraceElement(String number, String file, String method) {
        this.number = number;
        this.file = file;
        this.method = method;
    }

    public BacktraceElement(StackTraceElement element) {
        this.number = String.valueOf(element.getLineNumber());
        this.file = String.valueOf(element.getFileName());
        this.method = formatMethod(element);
    }

    static String formatMethod(StackTraceElement element) {
        return String.format("%s.%s",
                element.getClassName(), element.getMethodName());
    }
}
{'fraction_non_alphanumeric': 0.10580204778156997, 'fraction_numerical': 0.02145294978059483, 'mean_word_length': 3.196319018404908, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1889346', 'n_tokens_mistral': 592, 'n_tokens_neox': 552, 'n_words': 145}