<commit_before>package mabbas007.tagsedittext.utils;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.ColorRes;
import android.support.annotation.DimenRes;
import android.support.annotation.DrawableRes;

/**
 * Created by <NAME> on 5/10/2016.
 */
public class ResourceUtils {

    public static int getColor(Context context, @ColorRes int resourceId) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            return context.getColor(resourceId);<commit_msg>squid:S1118 - Utility classes should not have public constructors<commit_after>package mabbas007.tagsedittext.utils;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.ColorRes;
import android.support.annotation.DimenRes;
import android.support.annotation.DrawableRes;

/**
 * Created by <NAME> on 5/10/2016.
 */
public final class ResourceUtils {

    private ResourceUtils() throws InstantiationException {
        throw new InstantiationException("This utility class is created for instantiation");
    }

    public static int getColor(Context context, @ColorRes int resourceId) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            return context.getColor(resourceId);
{'fraction_non_alphanumeric': 0.09477611940298507, 'fraction_numerical': 0.01791044776119403, 'mean_word_length': 4.610878661087866, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6745763', 'n_tokens_mistral': 390, 'n_tokens_neox': 368, 'n_words': 90}