<commit_before>package org.ccci.gto.android.common.picasso.view

import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import android.util.AttributeSet
import android.widget.ImageView
import androidx.annotation.DrawableRes
import com.squareup.picasso.Transformation
import java.io.File

@SuppressLint("AppCompatCustomView")
open class SimplePicassoImageView : ImageView, PicassoImageView {
    @JvmOverloads
    constructor(
        context: Context,
        attrs: AttributeSet? = null,
        defStyleAttr: Int = 0
    ) : super(context, attrs, defStyleAttr) {
        _helper = createHelper(attrs, defStyleAttr)
        mHelper = helper
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    constructor(
        context: Context,
        attrs: AttributeSet?,
        defStyleAttr: Int,
        defStyleRes: Int
    ) : super(context, attrs, defStyleAttr, defStyleRes) {
        _helper = createHelper(attrs, defStyleAttr, defStyleRes)
        mHelper = helper
    }

    @JvmField
    @Deprecated("Since v3.6.1, use the helper property instead")
    protected val mHelper: PicassoImageView.Helper?
    private val _helper: PicassoImageView.Helper
    protected open val helper: PicassoImageView.Helper get() = _helper

    @Deprecated("Since v3.6.1, override the helper property instead")
    protected open fun createHelper(attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int = 0) =
        PicassoImageView.Helper(this, attrs, defStyleAttr, defStyleRes)
<commit_msg>remove deprecated createHelper function<commit_after>package org.ccci.gto.android.common.picasso.view

import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import android.util.AttributeSet
import android.widget.ImageView
import androidx.annotation.DrawableRes
import com.squareup.picasso.Transformation
import java.io.File

@SuppressLint("AppCompatCustomView")
open class SimplePicassoImageView : ImageView, PicassoImageView {
    @JvmOverloads
    constructor(
        context: Context,
        attrs: AttributeSet? = null,
        defStyleAttr: Int = 0
    ) : super(context, attrs, defStyleAttr) {
        _helper = PicassoImageView.Helper(this, attrs, defStyleAttr)
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    constructor(
        context: Context,
        attrs: AttributeSet?,
        defStyleAttr: Int,
        defStyleRes: Int
    ) : super(context, attrs, defStyleAttr, defStyleRes) {
        _helper = PicassoImageView.Helper(this, attrs, defStyleAttr, defStyleRes)
    }

    // TODO: convert to lazy initialization once our minimum supported android version is Lollipop
    private val _helper: PicassoImageView.Helper
    protected open val helper: PicassoImageView.Helper get() = _helper

{'fraction_non_alphanumeric': 0.0809267965077233, 'fraction_numerical': 0.0030221625251846875, 'mean_word_length': 3.965, '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': '6445493', 'n_tokens_mistral': 841, 'n_tokens_neox': 832, 'n_words': 205}