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

import android.content.Context;

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

import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkNotNull;

public class DefaultToDimensionResourceAdapter
		implements DefaultAdapter<Float, DefaultToDimensionResource> {

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

		return context.getResources().getDimension(annotation.value());
	}
}<commit_msg>Added @Tested annotation<commit_after>package com.matthewtamlin.spyglass.library.default_adapters;

import android.content.Context;

import com.matthewtamlin.java_utilities.testing.Tested;
import com.matthewtamlin.spyglass.library.default_annotations.DefaultToDimensionResource;

import static com.matthewtamlin.java_utilities.checkers.NullChecker.checkNotNull;

@Tested(testMethod = "automated")
public class DefaultToDimensionResourceAdapter
		implements DefaultAdapter<Float, DefaultToDimensionResource> {

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

		return context.getResources().getDimension(annotation.value());
	}
}
{'fraction_non_alphanumeric': 0.09320388349514563, 'fraction_numerical': 0.0, 'mean_word_length': 7.685393258426966, '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': '6005726', 'n_tokens_mistral': 441, 'n_tokens_neox': 423, 'n_words': 86}