<commit_before>package yuku.alkitab.base.widget;

import android.content.ClipData;
import android.content.ClipDescription;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.v4.graphics.ColorUtils;
import android.text.Layout;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.DragEvent;
import android.view.accessibility.AccessibilityEvent;
import android.widget.Checkable;
import android.widget.RelativeLayout;
import android.widget.TextView;
import yuku.afw.storage.Preferences;
import yuku.alkitab.base.App;
import yuku.alkitab.base.IsiActivity;
import yuku.alkitab.base.S;
import yuku.alkitab.debug.R;
import yuku.alkitab.model.ProgressMark;

import java.util.Date;

public class VerseItem extends RelativeLayout implements Checkable {
	public static final String PROGRESS_MARK_DRAG_MIME_TYPE = "application/vnd.yuku.alkitab.progress_mark.drag";

	private static final float ATTENTION_DURATION = 2000L;

	private boolean checked;
	private static Paint checkedPaintSolid;
	private boolean collapsed;
	private boolean dragHover;
	private Drawable dragHoverBg;

	public VerseTextView lText;
	public TextView lVerseNumber;
	public AttributeView attributeView;

	/** the ari of the verse represented by this view. If this is 0, this is a pericope or something else. */
	private int ari;

	/**
	 * Whether we briefly "color" this verse resulting from navigation from other parts of the app (e.g. verse navigation, search results).
	 * If the value is 0, it means do not color. If nonzero, it is the starting time when the animation starts.
	 */
	private long attentionStart;
	private static Paint attentionPaint;

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

	@Override
	protected void onFinishInflate() {
		super.onFinishInflate();

		lText = findViewById(R.id.lText);
		lVerseNumber = findViewById(R.id.lVerseNumber);
		attributeView = findViewById(R.id.attributeView);
	}<commit_msg>Add comment to explain what collapsed means<commit_after>package yuku.alkitab.base.widget;

import android.content.ClipData;
import android.content.ClipDescription;
import android.content.Context;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.v4.graphics.ColorUtils;
import android.text.Layout;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.DragEvent;
import android.view.accessibility.AccessibilityEvent;
import android.widget.Checkable;
import android.widget.RelativeLayout;
import android.widget.TextView;
import yuku.afw.storage.Preferences;
import yuku.alkitab.base.App;
import yuku.alkitab.base.IsiActivity;
import yuku.alkitab.base.S;
import yuku.alkitab.debug.R;
import yuku.alkitab.model.ProgressMark;

import java.util.Date;

public class VerseItem extends RelativeLayout implements Checkable {
	public static final String PROGRESS_MARK_DRAG_MIME_TYPE = "application/vnd.yuku.alkitab.progress_mark.drag";

	private static final float ATTENTION_DURATION = 2000L;

	private boolean checked;
	private static Paint checkedPaintSolid;
	/** Whether to set the measured height of this view to zero (i.e. verses without text) */
	private boolean collapsed;
	private boolean dragHover;
	private Drawable dragHoverBg;

	public VerseTextView lText;
	public TextView lVerseNumber;
	public AttributeView attributeView;

	/** the ari of the verse represented by this view. If this is 0, this is a pericope or something else. */
	private int ari;

	/**
	 * Whether we briefly "color" this verse resulting from navigation from other parts of the app (e.g. verse navigation, search results).
	 * If the value is 0, it means do not color. If nonzero, it is the starting time when the animation starts.
	 */
	private long attentionStart;
	private static Paint attentionPaint;

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

	@Override
	protected void onFinishInflate() {
		super.onFinishInflate();

		lText = findViewById(R.id.lText);
		lVerseNumber = findViewById(R.id.lVerseNumber);
		attributeView = findViewById(R.id.attributeView);
	}
{'fraction_non_alphanumeric': 0.08209467184998856, 'fraction_numerical': 0.003201463526183398, 'mean_word_length': 5.366812227074236, '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': '5525669', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1259, 'n_words': 387}