<commit_before>package com.elpassion.android.commons.espresso.matchers

import android.support.design.widget.TextInputEditText
import android.support.design.widget.TextInputLayout
import android.support.test.espresso.matcher.BoundedMatcher
import android.view.View
import org.hamcrest.Description

class TextInputEditTextHintMatcher(private val hintStringId: Int) : BoundedMatcher<View, TextInputEditText>(TextInputEditText::class.java) {

    override fun matchesSafely(view: TextInputEditText): Boolean {
        val grandpa = view.parent?.parent
        if (grandpa is TextInputLayout) {
            return grandpa.hint == view.context.getString(hintStringId)
        }
        return false
    }

    override fun describeTo(description: Description) {
        description.appendText("has hint text from string resource on TextInputLayout: $hintStringId")
    }
}<commit_msg>Apply CR: apply consistent naming<commit_after>package com.elpassion.android.commons.espresso.matchers

import android.support.annotation.StringRes
import android.support.design.widget.TextInputEditText
import android.support.design.widget.TextInputLayout
import android.support.test.espresso.matcher.BoundedMatcher
import android.view.View
import org.hamcrest.Description

class TextInputEditTextHintMatcher(@StringRes private val textId: Int) : BoundedMatcher<View, TextInputEditText>(TextInputEditText::class.java) {

    override fun matchesSafely(view: TextInputEditText): Boolean {
        val grandpa = view.parent?.parent
        if (grandpa is TextInputLayout) {
            return grandpa.hint == view.context.getString(textId)
        }
        return false
    }

    override fun describeTo(description: Description) {
        description.appendText("has hint text from string resource on TextInputLayout: $textId")
    }
}
{'fraction_non_alphanumeric': 0.08209366391184574, 'fraction_numerical': 0.0, 'mean_word_length': 4.486404833836858, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4632949', 'n_tokens_mistral': 494, 'n_tokens_neox': 485, 'n_words': 105}