<commit_before>package net.gotev.recycleradapter

import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import java.lang.ref.WeakReference

/**
 * Base ViewHolder class to extend in subclasses.
 * @author <NAME>
 */
abstract class RecyclerAdapterViewHolder(itemView: View, adapter: RecyclerAdapterNotifier) : RecyclerView.ViewHolder(itemView) {

    private val adapter: WeakReference<RecyclerAdapterNotifier> = WeakReference(adapter)

    /**
     * Sends an event to the adapter.
     * @param data additional event data
     */
    protected fun sendEvent(data: Bundle?) {
        this.adapter.get()?.sendEvent(this, data)
    }
<commit_msg>fix #7<commit_after>package net.gotev.recycleradapter

import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import java.lang.ref.WeakReference

/**
 * Base ViewHolder class to extend in subclasses.
 * @author <NAME>
 */
abstract class RecyclerAdapterViewHolder(itemView: View, adapter: RecyclerAdapterNotifier) : RecyclerView.ViewHolder(itemView) {

    private val adapter: WeakReference<RecyclerAdapterNotifier> = WeakReference(adapter)

    /**
     * Sends an event to the adapter.
     * @param data additional event data
     */
    protected fun sendEvent(data: Bundle? = null) {
        this.adapter.get()?.sendEvent(this, data)
    }

{'fraction_non_alphanumeric': 0.09724238026124818, 'fraction_numerical': 0.000725689404934688, 'mean_word_length': 4.263358778625954, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2565674', 'n_tokens_mistral': 418, 'n_tokens_neox': 395, 'n_words': 98}