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

import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.AttributeSet
import androidx.annotation.DrawableRes
import androidx.appcompat.widget.AppCompatImageView
import com.squareup.picasso.Transformation
import java.io.File

open class SimplePicassoImageView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : AppCompatImageView(context, attrs, defStyleAttr), PicassoImageView {
    protected open val helper by lazy { PicassoImageView.Helper(this, attrs, defStyleAttr) }
    private val initialized = true

    override fun setPicassoFile(file: File?) = helper.setPicassoFile(file)
    override fun setPicassoUri(uri: Uri?) = helper.setPicassoUri(uri)
    override fun setPlaceholder(@DrawableRes placeholder: Int) = helper.setPlaceholder(placeholder)
    override fun setPlaceholder(placeholder: Drawable?) = helper.setPlaceholder(placeholder)
    override fun addTransform(transform: Transformation) = helper.addTransform(transform)
    override fun setTransforms(transforms: List<Transformation>?) = helper.setTransforms(transforms)
    override fun toggleBatchUpdates(enable: Boolean) = helper.toggleBatchUpdates(enable)

    override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {<commit_msg>avoid using default parameters for the constructor to fix a current lack of support in Dagger hilt<commit_after>package org.ccci.gto.android.common.picasso.view

import android.content.Context
import android.graphics.drawable.Drawable
import android.net.Uri
import android.util.AttributeSet
import androidx.annotation.DrawableRes
import androidx.appcompat.widget.AppCompatImageView
import com.squareup.picasso.Transformation
import java.io.File

open class SimplePicassoImageView constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) :
    AppCompatImageView(context, attrs, defStyleAttr), PicassoImageView {
    constructor(context: Context) : this(context, null, 0)
    constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)

    protected open val helper by lazy { PicassoImageView.Helper(this, attrs, defStyleAttr) }
    private val initialized = true

    override fun setPicassoFile(file: File?) = helper.setPicassoFile(file)
    override fun setPicassoUri(uri: Uri?) = helper.setPicassoUri(uri)
    override fun setPlaceholder(@DrawableRes placeholder: Int) = helper.setPlaceholder(placeholder)
    override fun setPlaceholder(placeholder: Drawable?) = helper.setPlaceholder(placeholder)
    override fun addTransform(transform: Transformation) = helper.addTransform(transform)
    override fun setTransforms(transforms: List<Transformation>?) = helper.setTransforms(transforms)
    override fun toggleBatchUpdates(enable: Boolean) = helper.toggleBatchUpdates(enable)

    override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
{'fraction_non_alphanumeric': 0.08590604026845637, 'fraction_numerical': 0.0010067114093959733, 'mean_word_length': 6.080760095011876, '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': '4632828', 'n_tokens_mistral': 826, 'n_tokens_neox': 808, 'n_words': 212}