<commit_before>package com.android.simone.github.marvelapp.presentation;

import android.os.Build;
import android.text.Html;
import android.text.Spanned;

import java.util.Random;

/**
 * @author <NAME>
 */

public class Utils {

    public static int getRandomInt(int min, int max) {
        return new Random().nextInt(max - min + 1) + min;
    }

    public static Spanned fromHtml(String source) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            return Html.fromHtml(source, Html.FROM_HTML_MODE_COMPACT);
        } else {
            return Html.fromHtml(source);
        }
    }
}
<commit_msg>Updated Html.fromHtml for versions above 21<commit_after>package com.android.simone.github.marvelapp.presentation;

import android.os.Build;
import android.text.Html;
import android.text.Spanned;

import java.util.Random;

/**
 * @author <NAME>
 */

public class Utils {

    public static int getRandomInt(int min, int max) {
        return new Random().nextInt(max - min + 1) + min;
    }

    public static Spanned fromHtml(String source) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            return Html.fromHtml(source, Html.FROM_HTML_MODE_LEGACY);
        } else {
            return Html.fromHtml(source);
        }
    }
}

{'fraction_non_alphanumeric': 0.11354737666405638, 'fraction_numerical': 0.0031323414252153485, 'mean_word_length': 2.8378378378378377, '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': '142196', 'n_tokens_mistral': 420, 'n_tokens_neox': 409, 'n_words': 89}