<commit_before>package com.lovejjfg.powerrecycle;

import android.support.annotation.IntDef;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;

/**
 * Created by Joe on 2016-07-26
 * Email: <EMAIL>
 */
public interface AdapterLoader<T> {

    @IntDef(flag = true, value = {
            SingleMode,
            MultipleMode
    })
    @Retention(RetentionPolicy.SOURCE)
    @interface ChoiceMode {
    }

    /**
     * state about load more..
     */
    int STATE_LOADING = 1;
    int STATE_LASTED = 2;
    int STATE_ERROR = 3;

    int TYPE_BOTTOM = 400;

    int SingleMode = 1;
    int MultipleMode = 2;

    /**
     * This method should be called  when you load more !
     *
     * @param holder    the current holder.
     * @param loadState the current state.
     */

    void onBottomViewHolderBind(RecyclerView.ViewHolder holder, int loadState);

    /**
     * If you want to create the specified bottom layout,you must call this method to add your specified layout !
     *
     * @param view the specified bottom layout<commit_msg>change TYPE_BOTTOM to MinValue to avoid conflict with customer design..<commit_after>package com.lovejjfg.powerrecycle;

import android.support.annotation.IntDef;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;

/**
 * Created by Joe on 2016-07-26
 * Email: <EMAIL>
 */
public interface AdapterLoader<T> {

    @IntDef(flag = true, value = {
            SingleMode,
            MultipleMode
    })
    @Retention(RetentionPolicy.SOURCE)
    @interface ChoiceMode {
    }

    /**
     * state about load more..
     */
    int STATE_LOADING = 1;
    int STATE_LASTED = 2;
    int STATE_ERROR = 3;

    int TYPE_BOTTOM = 0x80000000;

    int SingleMode = 1;
    int MultipleMode = 2;

    /**
     * This method should be called  when you load more !
     *
     * @param holder    the current holder.
     * @param loadState the current state.
     */

    void onBottomViewHolderBind(RecyclerView.ViewHolder holder, int loadState);

    /**
     * If you want to create the specified bottom layout,you must call this method to add your specified layout !
     *
     * @param view the specified bottom layout
{'fraction_non_alphanumeric': 0.09028617492946392, 'fraction_numerical': 0.016122531237404272, 'mean_word_length': 2.783536585365854, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '1220475', 'n_tokens_mistral': 783, 'n_tokens_neox': 722, 'n_words': 216}