<commit_before>package com.github.fernandospr.overlaydialogsample;

import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.github.fernandospr.overlaydialog.OverlayDialog;

public class OverlayDialogFactory {

    private OverlayDialogFactory() {
        throw new AssertionError(getClass().toString() + " cannot be instantiated.");
    }

    @NonNull
    public static OverlayDialog buildInfoDialog(@NonNull View root,
                                                @Nullable CharSequence text,
                                                @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_info);
    }

    @NonNull
    public static OverlayDialog buildErrorDialog(@NonNull View root,
                                                 @Nullable CharSequence text,
                                                 @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_error);
    }

    @NonNull
    public static OverlayDialog buildWarnDialog(@NonNull View root,
                                                @Nullable CharSequence text,
                                                @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_error);
    }

    @NonNull
    public static OverlayDialog buildReminderDialog(@NonNull View root,
                                                    @Nullable CharSequence text,
                                                    @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_reminder);<commit_msg>Fix warning message.<commit_after>package com.github.fernandospr.overlaydialogsample;

import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.github.fernandospr.overlaydialog.OverlayDialog;

public class OverlayDialogFactory {

    private OverlayDialogFactory() {
        throw new AssertionError(getClass().toString() + " cannot be instantiated.");
    }

    @NonNull
    public static OverlayDialog buildInfoDialog(@NonNull View root,
                                                @Nullable CharSequence text,
                                                @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_info);
    }

    @NonNull
    public static OverlayDialog buildErrorDialog(@NonNull View root,
                                                 @Nullable CharSequence text,
                                                 @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_error);
    }

    @NonNull
    public static OverlayDialog buildWarnDialog(@NonNull View root,
                                                @Nullable CharSequence text,
                                                @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_warn);
    }

    @NonNull
    public static OverlayDialog buildReminderDialog(@NonNull View root,
                                                    @Nullable CharSequence text,
                                                    @NonNull MessageDialogStyle style) {
        return buildDialog(root, text, style, R.layout.message_reminder);
{'fraction_non_alphanumeric': 0.06689951638903816, 'fraction_numerical': 0.0, 'mean_word_length': 1.8995327102803738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '986878', 'n_tokens_mistral': 777, 'n_tokens_neox': 794, 'n_words': 205}