<commit_before>package jp.toastkid.yobidashi.libs

import android.widget.EditText
import androidx.annotation.ColorInt
import androidx.core.graphics.ColorUtils

/**
 * Color utilities.
 *
 * @author toastkidjp
 */
class EditTextColorSetter {

    /**
     * Set specified color to passed EditText.
     *
     * @param editText nullable
     * @param fontColor color int
     */
    fun invoke(editText: EditText?, @ColorInt fontColor: Int) {
        editText?.apply {
            setTextColor(fontColor)
            setHintTextColor(fontColor)
            highlightColor = ColorUtils.setAlphaComponent(fontColor, 128)
        }
    }

}<commit_msg>refactor #442 Replace apply to also.<commit_after>package jp.toastkid.yobidashi.libs

import android.widget.EditText
import androidx.annotation.ColorInt
import androidx.core.graphics.ColorUtils

/**
 * Color utilities.
 *
 * @author toastkidjp
 */
class EditTextColorSetter {

    /**
     * Set specified color to passed EditText.
     *
     * @param editText nullable
     * @param fontColor color int
     */
    fun invoke(editText: EditText?, @ColorInt fontColor: Int) {
        editText?.also {
            it.setTextColor(fontColor)
            it.setHintTextColor(fontColor)
            it.highlightColor = ColorUtils.setAlphaComponent(fontColor, 128)
        }
    }

}
{'fraction_non_alphanumeric': 0.09269027882441598, 'fraction_numerical': 0.006782215523737754, 'mean_word_length': 2.772727272727273, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3523099', 'n_tokens_mistral': 411, 'n_tokens_neox': 384, 'n_words': 83}