<commit_before>package de.mrapp.android.preference.view;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;

public class SeekBar extends android.widget.SeekBar {

	private Drawable thumb;

	public SeekBar(Context context) {
		super(context);
	}

	public SeekBar(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public SeekBar(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@TargetApi(Build.VERSION_CODES.LOLLIPOP)
	public SeekBar(Context context, AttributeSet attrs, int defStyle,
			int defStyleRes) {
		super(context, attrs, defStyle, defStyleRes);
	}

	@Override
	public void setThumb(Drawable thumb) {
		super.setThumb(thumb);
		this.thumb = thumb;
	}

	public Drawable getThumbDrawable() {
		return thumb;
	}

}<commit_msg>Added comments.<commit_after>/*
 * AndroidMaterialPreferences Copyright 2014 <NAME>
 *
 * This program is free software: you can redistribute it and/or modify 
 * it under the terms of the GNU Lesser General Public License as published 
 * by the Free Software Foundation, either version 3 of the License, or 
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
 * General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/>. 
 */
package de.mrapp.android.preference.view;

import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;

/**
 * A custom view, which is extended from the view {@link android.widget.SeekBar}
 * in order to provide a getter method, which allows to retrieve the seek bar's
 * thumb on API versions less than 16.
 * 
 * @author <NAME>
 *
 * @since 1.0.0
 */
public class SeekBar extends android.widget.SeekBar {

	/**
	 * The drawable, which is used to visualize the seek bar's thumb.
	 */
	private Drawable thumb;

	/**
	 * Creates a new seek bar.
	 * 
	 * @param context
	 *            The context, which should be used by the seek bar, as an
	 *            instance of the class {@link Context}
	 */
	public SeekBar(final Context context) {
		super(context);
	}

	/**
	 * Creates a new seek bar.
	 * 
	 * @param context
	 *            The context, which should be used by the seek bar, as an
	 *            instance of the class {@link Context}
	 * @param attributeSet
	 *            The attributes of the XML tag that is inflating the view, as
	 *            an instance of the type {@link AttributeSet}
	 */
	public SeekBar(final Context context, final AttributeSet attributeSet) {
		super(context, attributeSet);
	}

	/**
	 * Creates a new seek bar.
	 * 
	 * @param context
	 *            The context, which should be used by the seek bar, as an
	 *            instance of the class {@link Context}
	 * @param attributeSet
	 *            The attributes of the XML tag that is inflating the view, as
	 *            an instance of the type {@link AttributeSet}
	 * @param defaultStyle
	 *            The default style to apply to this preference. If 0, no style
	 *            will be applied (beyond what is included in the theme). This
	 *            may either be an attribute resource, whose value will be
	 *            retrieved from the current theme, or an explicit style
	 *            resource
	 */
	public SeekBar(final Context context, final AttributeSet attributeSet,
			final int defaultStyle) {
		super(context, attributeSet, defaultStyle);
	}

	/**
	 * Creates a new seek bar.
	 * 
	 * @param context
	 *            The context, which should be used by the seek bar, as an
	 *            instance of the class {@link Context}
	 * @param attributeSet
	 *            The attributes of the XML tag that is inflating the view, as
	 *            an instance of the type {@link AttributeSet}
	 * @param defaultStyle
	 *            The default style to apply to this preference. If 0, no style
	 *            will be applied (beyond what is included in the theme). This
	 *            may either be an attribute resource, whose value will be
	 *            retrieved from the current theme, or an explicit style
	 *            resource
	 * @param defaultStyleResource
	 *            A resource identifier of a style resource that supplies
	 *            default values for the view, used only if defStyleAttr is 0 or
	 *            can not be found in the theme. Can be 0 to not look for
	 *            defaults
	 */
	@TargetApi(Build.VERSION_CODES.LOLLIPOP)
	public SeekBar(final Context context, final AttributeSet attributeSet,
			final int defaultStyle, final int defaultStyleResource) {
		super(context, attributeSet, defaultStyle, defaultStyleResource);
	}

	/**
	 * Returns the drawable, which is used to visualize the seek bar's thumb.
	 * 
	 * @return The drawable, which is used to visualize the seek bar's thumb, as
	 *         an instance of the class {@link Drawable}
	 */
	public final Drawable getThumbDrawable() {
		return thumb;
	}

	@Override
	public final void setThumb(final Drawable thumb) {
		super.setThumb(thumb);
		this.thumb = thumb;
	}

}
{'fraction_non_alphanumeric': 0.0750778245742538, 'fraction_numerical': 0.0025636330342428126, 'mean_word_length': 2.9238505747126435, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2645088', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1440, 'n_words': 626}