<commit_before>package com.hzp.pedometer.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.hzp.pedometer.R;

import java.util.Collections;
import java.util.List;

/**
 * @author 何志鹏 on 2016/2/16.
 * @email <EMAIL>
 */
public class DailyListAdapter extends RecyclerView.Adapter<DailyListAdapter.PlanCardHolder>
        implements ItemTouchHelperAdapter {

    private List<Object> dataList;
    private Context context;

    public DailyListAdapter(Context context) {
        this.context = context;
    }

    @Override
    public PlanCardHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context)
                .inflate(R.layout.list_item_plan_card
                        , parent
                        , false);
        return new PlanCardHolder(view);
    }

    @Override
    public void onBindViewHolder(PlanCardHolder holder, final int position) {
    }

    @Override
    public int getItemCount() {
        return dataList.size();
    }

    @Override
    public void onItemMove(int fromPosition, int toPosition) {
        Collections.swap(dataList, fromPosition, toPosition);
        notifyItemMoved(fromPosition, toPosition);
    }

    @Override
    public void onItemDismiss(int position) {
        dataList.remove(position);
        notifyItemRemoved(position);
    }

    class PlanCardHolder extends RecyclerView.ViewHolder {

        public PlanCardHolder(View itemView) {
            super(itemView);
        }
    }<commit_msg>更新holder名<commit_after>package com.hzp.pedometer.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.hzp.pedometer.R;

import java.util.Collections;
import java.util.List;

/**
 * @author 何志鹏 on 2016/2/16.
 * @email <EMAIL>
 */
public class DailyListAdapter extends RecyclerView.Adapter<DailyListAdapter.DailyDataHolder>
        implements ItemTouchHelperAdapter {

    private List<Object> dataList;
    private Context context;

    public DailyListAdapter(Context context) {
        this.context = context;
    }

    @Override
    public DailyDataHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context)
                .inflate(R.layout.list_item_plan_card
                        , parent
                        , false);
        return new DailyDataHolder(view);
    }

    @Override
    public void onBindViewHolder(DailyDataHolder holder, final int position) {
    }

    @Override
    public int getItemCount() {
        return dataList.size();
    }

    @Override
    public void onItemMove(int fromPosition, int toPosition) {
        Collections.swap(dataList, fromPosition, toPosition);
        notifyItemMoved(fromPosition, toPosition);
    }

    @Override
    public void onItemDismiss(int position) {
        dataList.remove(position);
        notifyItemRemoved(position);
    }

    class DailyDataHolder extends RecyclerView.ViewHolder {

        public DailyDataHolder(View itemView) {
            super(itemView);
        }
    }
{'fraction_non_alphanumeric': 0.08389057750759879, 'fraction_numerical': 0.004863221884498481, 'mean_word_length': 2.867215041128085, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '532340', 'n_tokens_mistral': 960, 'n_tokens_neox': 912, 'n_words': 198}