<commit_before>package org.ybiquitous.messages;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public final class Utils {

    public static @Nonnull <T> T notNull(
            @Nullable T obj,
            @Nullable String name) throws NullPointerException {

        if (obj == null) {
            if (name == null) {
                throw new NullPointerException();
            } else {
                throw new NullPointerException(name + " is required");
            }
        }
        return obj;
    }

    public static @Nonnull <T> T notNullOrElse(<commit_msg>fix Utils#notNull: @Nullable -> @Nonnull<commit_after>package org.ybiquitous.messages;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public final class Utils {

    public static @Nonnull <T> T notNull(
            @Nonnull T obj,
            @Nullable String name) throws NullPointerException {

        if (obj == null) {
            if (name == null) {
                throw new NullPointerException();
            } else {
                throw new NullPointerException(name + " is required");
            }
        }
        return obj;
    }

    public static @Nonnull <T> T notNullOrElse(
{'fraction_non_alphanumeric': 0.0891089108910891, 'fraction_numerical': 0.0, 'mean_word_length': 2.017412935323383, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '373363', 'n_tokens_mistral': 332, 'n_tokens_neox': 316, 'n_words': 96}