<commit_before>package com.andreamontanari.placeholder.adapter;

/**
 * Created by andreamontanari on 08/07/16.
 */

        import android.graphics.Color;
        import android.support.v7.widget.CardView;
        import android.support.v7.widget.RecyclerView;
        import android.view.LayoutInflater;
        import android.view.View;
        import android.view.ViewGroup;
        import android.widget.ImageView;
        import android.widget.TextView;


        import com.andreamontanari.placeholder.Place;
        import com.andreamontanari.placeholder.R;
        import com.google.android.gms.vision.text.Text;

        import java.util.List;

/**
 * Created by andreamontanari on 18/11/15.
 */
public class RVAdapter extends RecyclerView.Adapter<RVAdapter.ScheduledSmsViewHolder>{

    public static class ScheduledSmsViewHolder extends RecyclerView.ViewHolder {
        CardView cv;
        TextView streetName;
        TextView latlng;
        TextView savedDate;
        TextView comments;
        ImageView icon;

        ScheduledSmsViewHolder(View itemView) {
            super(itemView);
            cv = (CardView)itemView.findViewById(R.id.cv);
            streetName = (TextView)itemView.findViewById(R.id.streetname);
            latlng = (TextView)itemView.findViewById(R.id.latlng);
            //savedDate = (TextView)itemView.findViewById(R.id.saved_date);
            comments = (TextView)itemView.findViewById(R.id.comments);
            icon = (ImageView)itemView.findViewById(R.id.icon);
        }
    }

    List<Place> places;

    public RVAdapter(List<Place> places) {
        this.places = places;
    }
    RVAdapter() { }

    @Override
    public ScheduledSmsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.place_item, parent, false);
        ScheduledSmsViewHolder svh = new ScheduledSmsViewHolder(v);
        return svh;
    }

    @Override
    public void onBindViewHolder(ScheduledSmsViewHolder holder, int position) {
        holder.streetName.setText(places.get(position).getStreetName());
        holder.latlng.setText(places.get(position).getLatLng());
        if (places.get(position).getPlaceComment() == "" || places.get(position).getPlaceComment() == null) {<commit_msg>added realm adapter extension<commit_after>package com.andreamontanari.placeholder.adapter;

/**
 * Created by andreamontanari on 08/07/16.
 */

        import android.graphics.Color;
        import android.support.v7.widget.CardView;
        import android.support.v7.widget.RecyclerView;
        import android.view.LayoutInflater;
        import android.view.View;
        import android.view.ViewGroup;
        import android.widget.ImageView;
        import android.widget.TextView;


        import com.andreamontanari.placeholder.Place;
        import com.andreamontanari.placeholder.R;
        import com.google.android.gms.vision.text.Text;

        import java.util.List;

/**
 * Created by andreamontanari on 18/11/15.
 */
 

public class RVAdapter extendsRealmRecyclerViewAdapter<TimeStamp, RVAdapter.PlacesViewHolder> {
                                        
    public static class PlacesViewHolder extends RecyclerView.ViewHolder {
        CardView cv;
        TextView streetName;
        TextView latlng;
        TextView savedDate;
        TextView comments;
        ImageView icon;

        PlacesViewHolder(View itemView) {
            super(itemView);
            cv = (CardView)itemView.findViewById(R.id.cv);
            streetName = (TextView)itemView.findViewById(R.id.streetname);
            latlng = (TextView)itemView.findViewById(R.id.latlng);
            //savedDate = (TextView)itemView.findViewById(R.id.saved_date);
            comments = (TextView)itemView.findViewById(R.id.comments);
            icon = (ImageView)itemView.findViewById(R.id.icon);
        }
    }

    List<Place> places;

    public RVAdapter(RecyclerViewExampleActivity activity, OrderedRealmCollection<TimeStamp> data) {
        super(activity ,data, true);
        this.activity = activity;
    }

    RVAdapter() { }

    @Override
    public PlacesViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.place_item, parent, false);
        PlacesViewHolder svh = new PlacesViewHolder(v);
        return svh;
    }

    @Override
    public void onBindViewHolder(PlacesViewHolder holder, int position) {
        holder.streetName.setText(places.get(position).getStreetName());
        holder.latlng.setText(places.get(position).getLatLng());
        if (places.get(position).getPlaceComment() == "" || places.get(position).getPlaceComment() == null) {
{'fraction_non_alphanumeric': 0.1021437578814628, 'fraction_numerical': 0.0058848255569567045, 'mean_word_length': 2.82864038616251, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '144037', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1316, 'n_words': 234}