<commit_before>package br.com.concretesolutions.kappuccino.custom.compoundDrawable

import android.graphics.Point
import android.graphics.Rect
import android.os.SystemClock.uptimeMillis
import android.support.annotation.IntDef
import android.support.test.espresso.UiController
import android.support.test.espresso.ViewAction
import android.support.test.espresso.matcher.BoundedMatcher
import android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom
import android.view.MotionEvent
import android.view.View
import android.widget.TextView
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.core.AllOf.allOf

/**
 * Based on answer https://stackoverflow.com/a/37032927/3279958
 */

class ClickDrawableAction(@Location private val drawableLocation: Int) : ViewAction {

    companion object {
        @IntDef(Left, Top, Right, Bottom)
        @Retention(AnnotationRetention.SOURCE)
        annotation class Location

        const val Left = 0
        const val Top = 1
        const val Right = 2
        const val Bottom = 3
    }

    override fun getDescription(): String {
        return "click drawable "
    }

    override fun getConstraints(): Matcher<View> {
        return allOf(isAssignableFrom(TextView::class.java), object : BoundedMatcher<View, TextView>(TextView::class.java) {
            override fun matchesSafely(tv: TextView): Boolean {<commit_msg>Fix float problem<commit_after>package br.com.concretesolutions.kappuccino.custom.compoundDrawable

import android.graphics.Point
import android.graphics.Rect
import android.os.SystemClock.uptimeMillis
import android.support.annotation.IntDef
import android.support.test.espresso.UiController
import android.support.test.espresso.ViewAction
import android.support.test.espresso.matcher.BoundedMatcher
import android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom
import android.view.MotionEvent
import android.view.View
import android.widget.TextView
import org.hamcrest.Description
import org.hamcrest.Matcher
import org.hamcrest.core.AllOf.allOf

/**
 * Based on answer https://stackoverflow.com/a/37032927/3279958
 */

class ClickDrawableAction(@Location private val drawableLocation: Int) : ViewAction {

    companion object {
        @IntDef(Left, Top, Right, Bottom)
        @Retention(AnnotationRetention.SOURCE)
        annotation class Location

        const val Left = 0L
        const val Top = 1L
        const val Right = 2L
        const val Bottom = 3L
    }

    override fun getDescription(): String {
        return "click drawable "
    }

    override fun getConstraints(): Matcher<View> {
        return allOf(isAssignableFrom(TextView::class.java), object : BoundedMatcher<View, TextView>(TextView::class.java) {
            override fun matchesSafely(tv: TextView): Boolean {
{'fraction_non_alphanumeric': 0.0858765081618169, 'fraction_numerical': 0.0134847409510291, 'mean_word_length': 4.061041292639138, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4946142', 'n_tokens_mistral': 823, 'n_tokens_neox': 788, 'n_words': 178}