<commit_before>package com.tjerkw.slideexpandable.library;

import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListAdapter;
import android.widget.WrapperListAdapter;

/**
 * Implementation of a WrapperListAdapter interface
 * in which method delegates to the wrapped adapter.
 *
 * Extend this class if you only want to change a
 * few methods of the wrapped adapter.
 *
 * The wrapped adapter is available to subclasses as the "wrapped" field.
 *
 * @author tjerk
 * @date 6/9/12 4:41 PM
 */
public abstract class WrapperListAdapterImpl implements WrapperListAdapter {
	protected ListAdapter wrapped;

	public WrapperListAdapterImpl(ListAdapter wrapped) {
		this.wrapped = wrapped;
	}

	@Override
	public ListAdapter getWrappedAdapter() {
		return wrapped;
	}

	@Override
	public boolean areAllItemsEnabled() {
		return wrapped.areAllItemsEnabled();<commit_msg>Fix ClassCastException on no BaseAdapter<commit_after>package com.tjerkw.slideexpandable.library;

import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListAdapter;
import android.widget.WrapperListAdapter;

/**
 * Implementation of a WrapperListAdapter interface
 * in which method delegates to the wrapped adapter.
 *
 * Extend this class if you only want to change a
 * few methods of the wrapped adapter.
 *
 * The wrapped adapter is available to subclasses as the "wrapped" field.
 *
 * @author tjerk
 * @date 6/9/12 4:41 PM
 */
public abstract class WrapperListAdapterImpl extends BaseAdapter implements WrapperListAdapter {
	protected ListAdapter wrapped;

	public WrapperListAdapterImpl(ListAdapter wrapped) {
		this.wrapped = wrapped;
	}

	@Override
	public ListAdapter getWrappedAdapter() {
		return wrapped;
	}

	@Override
	public boolean areAllItemsEnabled() {
		return wrapped.areAllItemsEnabled();
{'fraction_non_alphanumeric': 0.073559670781893, 'fraction_numerical': 0.00720164609053498, 'mean_word_length': 5.09717868338558, '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': '4672273', 'n_tokens_mistral': 554, 'n_tokens_neox': 531, 'n_words': 175}