<commit_before>package com.example.base.presentation

import android.support.annotation.CallSuper

abstract class BasePresenter<View: BaseView> {

    protected lateinit var view: View

    protected var isViewAttached = false
        private set

    @CallSuper fun viewAttached(view: View) {
        this.view = view
        isViewAttached = true
        onViewAttached()
    }

    @CallSuper fun viewDetached() {
        isViewAttached = false
        onViewDetached()
    }

    /*
     * Implement this method to perform initialisation, subscribe to any reactive
     * streams/observables etc. when the view is attached.
     */
    protected abstract fun onViewAttached()

    /*
     * Implement this method to unsubscribe from any reactive streams/observables when the
     * view is detached.
     */
    protected abstract fun onViewDetached()
}<commit_msg>removes callsuper annotations from BasePresenter<commit_after>package com.example.base.presentation

abstract class BasePresenter<View: BaseView> {

    protected lateinit var view: View

    protected var isViewAttached = false
        private set

    fun viewAttached(view: View) {
        this.view = view
        isViewAttached = true
        onViewAttached()
    }

    fun viewDetached() {
        isViewAttached = false
        onViewDetached()
    }

    /*
     * Implement this method to perform initialisation, subscribe to any reactive
     * streams/observables etc. when the view is attached.
     */
    protected abstract fun onViewAttached()

    /*
     * Implement this method to unsubscribe from any reactive streams/observables when the
     * view is detached.
     */
    protected abstract fun onViewDetached()
}
{'fraction_non_alphanumeric': 0.06389214536928488, 'fraction_numerical': 0.0, 'mean_word_length': 2.702819956616052, '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': '6440044', 'n_tokens_mistral': 459, 'n_tokens_neox': 438, 'n_words': 146}