<commit_before>package io.doist.recyclerviewext.click_listeners;

import android.view.View;

public class ClickableFocusableViewHolder extends ClickableViewHolder {
    public ClickableFocusableViewHolder(View itemView, OnItemClickListener onItemClickListener) {
        super(itemView, onItemClickListener, null);

        setFocusable(onItemClickListener, null);
    }

    public ClickableFocusableViewHolder(View itemView, OnItemClickListener onItemClickListener,
                                        OnItemLongClickListener onItemLongClickListener) {
        super(itemView, onItemClickListener, onItemLongClickListener);

        setFocusable(onItemClickListener, onItemLongClickListener);
    }

    private void setFocusable(OnItemClickListener onItemClickListener,
                              OnItemLongClickListener onItemLongClickListener) {
        itemView.setFocusable(onItemClickListener != null || onItemLongClickListener != null);
    }
}<commit_msg>Remove duplicated code<commit_after>package io.doist.recyclerviewext.click_listeners;

import android.view.View;

public class ClickableFocusableViewHolder extends ClickableViewHolder {
    public ClickableFocusableViewHolder(View itemView, OnItemClickListener onItemClickListener) {
        this(itemView, onItemClickListener, null);
    }

    public ClickableFocusableViewHolder(View itemView, OnItemClickListener onItemClickListener,
                                        OnItemLongClickListener onItemLongClickListener) {
        super(itemView, onItemClickListener, onItemLongClickListener);

        setFocusable(onItemClickListener, onItemLongClickListener);
    }

    private void setFocusable(OnItemClickListener onItemClickListener,
                              OnItemLongClickListener onItemLongClickListener) {
        itemView.setFocusable(onItemClickListener != null || onItemLongClickListener != null);
    }
}
{'fraction_non_alphanumeric': 0.056782334384858045, 'fraction_numerical': 0.0, 'mean_word_length': 3.930051813471503, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '685569', 'n_tokens_mistral': 443, 'n_tokens_neox': 425, 'n_words': 82}