<commit_before>package com.matthewtamlin.spyglass.library.default_adapters;

import android.content.Context;

import com.matthewtamlin.spyglass.library.default_annotations.DefaultToFractionSupplier;

import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkNotNull;
import static com.matthewtamlin.spyglass.library.core.SupplierInstantiator.instantiateSupplier;

public class DefaultToFractionSupplierAdapter
		implements DefaultAdapter<Float, DefaultToFractionSupplier> {

	@Override
	public Float getDefault(final DefaultToFractionSupplier annotation, final Context context) {
		checkNotNull(annotation, "Argument \'annotation\' cannot be null.");

		return instantiateSupplier(annotation.value()).get();
	}
}<commit_msg>Added missing null checks<commit_after>package com.matthewtamlin.spyglass.library.default_adapters;

import android.content.Context;

import com.matthewtamlin.spyglass.library.default_annotations.DefaultToFractionSupplier;

import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkNotNull;
import static com.matthewtamlin.spyglass.library.core.SupplierInstantiator.instantiateSupplier;

public class DefaultToFractionSupplierAdapter
		implements DefaultAdapter<Float, DefaultToFractionSupplier> {

	@Override
	public Float getDefault(final DefaultToFractionSupplier annotation, final Context context) {
		checkNotNull(annotation, "Argument \'annotation\' cannot be null.");
		checkNotNull(context, "Argument \'context\' cannot be null.");

		return instantiateSupplier(annotation.value()).get();
	}
}
{'fraction_non_alphanumeric': 0.08553054662379421, 'fraction_numerical': 0.0, 'mean_word_length': 7.8914285714285715, 'pattern_counts': {'":': 0, '<': 5, '<?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': '425659', 'n_tokens_mistral': 470, 'n_tokens_neox': 438, 'n_words': 82}