<commit_before>package cl.monsoon.s1next.data.pref;

import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.ColorInt;
import android.support.annotation.IntDef;
import android.support.annotation.StyleRes;
import android.support.v4.graphics.ColorUtils;

import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
import com.google.common.base.Suppliers;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;
import java.util.List;

import cl.monsoon.s1next.R;

/**
 * A manager manage the theme preference that is associated with settings.
 */
public final class ThemeManager {

    public static final int TRANSLUCENT_THEME_DARK = R.style.Theme_Translucent_Dark;

    /**
     * Default theme in AndroidManifest.xml is light theme.
     */
    private static final Theme DEFAULT_THEME = Theme.LIGHT_THEME;

    /**
     * https://www.google.com/design/spec/style/color.html#color-ui-color-application
     */
    private static final int WHITE_BACKGROUND_SECONDARY_TEXT_ALPHA = (int) (0.54 * 255);
    private static final int WHITE_BACKGROUND_HINT_OR_DISABLED_TEXT_ALPHA = (int) (38 * 255);
    private static final int BLACK_BACKGROUND_SECONDARY_TEXT_ALPHA = (int) (0.70 * 255);<commit_msg>Fix the incorrect text alpha<commit_after>package cl.monsoon.s1next.data.pref;

import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.ColorInt;
import android.support.annotation.IntDef;
import android.support.annotation.StyleRes;
import android.support.v4.graphics.ColorUtils;

import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
import com.google.common.base.Suppliers;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;
import java.util.List;

import cl.monsoon.s1next.R;

/**
 * A manager manage the theme preference that is associated with settings.
 */
public final class ThemeManager {

    public static final int TRANSLUCENT_THEME_DARK = R.style.Theme_Translucent_Dark;

    /**
     * Default theme in AndroidManifest.xml is light theme.
     */
    private static final Theme DEFAULT_THEME = Theme.LIGHT_THEME;

    /**
     * https://www.google.com/design/spec/style/color.html#color-ui-color-application
     */
    private static final int WHITE_BACKGROUND_SECONDARY_TEXT_ALPHA = (int) (0.54 * 255);
    private static final int WHITE_BACKGROUND_HINT_OR_DISABLED_TEXT_ALPHA = (int) (0.38 * 255);
    private static final int BLACK_BACKGROUND_SECONDARY_TEXT_ALPHA = (int) (0.70 * 255);
{'fraction_non_alphanumeric': 0.09876079609463012, 'fraction_numerical': 0.015396169733383402, 'mean_word_length': 4.55, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2652091', 'n_tokens_mistral': 867, 'n_tokens_neox': 830, 'n_words': 181}