<commit_before>package com.duosoft.duosoftticketingsystem.adaptors;

import android.content.Context;
import android.os.Build;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.duosoft.duosoftticketingsystem.R;
import com.duosoft.duosoftticketingsystem.rest_api.pojo.TicketListResponse;

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

/**
 * Created by Tharkana on 6/25/2017.
 */
public class TicketListAdaptor extends RecyclerView.Adapter<TicketListAdaptor.TicketViewHolder> {

    private final LayoutInflater inflator;
    private final Context context;
    List<TicketListResponse.Ticket> data = Collections.emptyList();

    public TicketListAdaptor(Context context, List<TicketListResponse.Ticket> data) {
        inflator = LayoutInflater.from(context);
        this.data = data;
        this.context = context;
    }

    public void updateDataSet(List<TicketListResponse.Ticket> list) {
        this.data = list;
        notifyDataSetChanged();
    }

    @Override
    public TicketListAdaptor.TicketViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflator.inflate(R.layout.ticket_list_view, parent, false);

        TicketViewHolder myViewHolder = new TicketViewHolder(view);
        return myViewHolder;

    }

    @Override
    public void onBindViewHolder(TicketListAdaptor.TicketViewHolder holder, int position) {
        TicketListResponse.Ticket ticket = data.get(position);
        Log.d("TK", ticket.toString() );
        holder.textViewPriority.setText(ticket.getPriority());
        holder.textViewStatus.setText( ticket.getStatus());
        holder.textViewSubject.setText( ticket.getSubject());
        holder.textViewType.setText( ticket.getType());

        switch (ticket.getPriority()){
            case "urgent": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityUrgent, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityUrgent));
                }
                break;
            }
            case "high": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityHigh, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityHigh));
                }
                break;
            }
            case "normal": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal));
                }
                break;
            }
            default: {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal));
                }
            }
        }
    }

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

    class TicketViewHolder extends RecyclerView.ViewHolder {

//        @Bind(R.id.textViewPriority)  TextView textViewPriority;
//        @Bind(R.id.textViewStatus)  TextView textViewStatus;
//        @Bind(R.id.textViewSubject)  TextView textViewSubject;
//        @Bind(R.id.textViewType)  TextView textViewType;

        AppCompatTextView textViewPriority;
        AppCompatTextView textViewStatus;
        AppCompatTextView textViewSubject;
        AppCompatTextView textViewType;
        View viewSeperator;

        public TicketViewHolder(View itemView) {
            super(itemView);
//            ButterKnife.bind(itemView);
            textViewPriority = (AppCompatTextView) itemView.findViewById(R.id.textViewPriority);
            textViewStatus = (AppCompatTextView) itemView.findViewById(R.id.textViewStatus);
            textViewSubject = (AppCompatTextView) itemView.findViewById(R.id.textViewSubject);
            textViewType = (AppCompatTextView) itemView.findViewById(R.id.textViewType);
            viewSeperator = (View) itemView.findViewById(R.id.priorityStrip);
        }
    }


}<commit_msg>Change to sentence case all the attributes<commit_after>package com.duosoft.duosoftticketingsystem.adaptors;

import android.content.Context;
import android.os.Build;
import android.support.v7.widget.AppCompatTextView;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.RelativeLayout;

import com.duosoft.duosoftticketingsystem.R;
import com.duosoft.duosoftticketingsystem.rest_api.pojo.TicketListResponse;

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

/**
 * Created by Tharkana on 6/25/2017.
 */
public class TicketListAdaptor extends RecyclerView.Adapter<TicketListAdaptor.TicketViewHolder> {

    private final LayoutInflater inflator;
    private final Context context;
    List<TicketListResponse.Ticket> data = Collections.emptyList();

    public TicketListAdaptor(Context context, List<TicketListResponse.Ticket> data) {
        inflator = LayoutInflater.from(context);
        this.data = data;
        this.context = context;
    }

    public void updateDataSet(List<TicketListResponse.Ticket> list) {
        this.data = list;
        notifyDataSetChanged();
    }

    @Override
    public TicketListAdaptor.TicketViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflator.inflate(R.layout.ticket_list_view, parent, false);

        TicketViewHolder myViewHolder = new TicketViewHolder(view);
        return myViewHolder;

    }

    @Override
    public void onBindViewHolder( TicketListAdaptor.TicketViewHolder holder, int position) {
        TicketListResponse.Ticket ticket = data.get(position);
        Log.d("TK", ticket.toString() );
        holder.textViewPriority.setText(ticket.getPriority().substring(0,1).toUpperCase() + ticket.getPriority().substring(1) );
        holder.textViewStatus.setText( ticket.getStatus().substring(0,1).toUpperCase() + ticket.getStatus().substring(1) );
        holder.textViewType.setText( ticket.getType().substring(0,1).toUpperCase() + ticket.getType().substring(1) );
//        holder.textViewPriority.setText(ticket.getPriority() );
//        holder.textViewStatus.setText( ticket.getStatus());
//        holder.textViewType.setText( ticket.getType());
        holder.textViewSubject.setText( ticket.getSubject());

        switch (ticket.getPriority()){
            case "urgent": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityUrgent, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityUrgent));
                }
                break;
            }
            case "high": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityHigh, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityHigh));
                }
                break;
            }
            case "normal": {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal));
                }
                break;
            }
            default: {
                if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal, null));
                } else{
                    holder.viewSeperator.setBackgroundColor(context.getResources().getColor(R.color.priorityNormal));
                }
            }
        }
    }

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

    class TicketViewHolder extends RecyclerView.ViewHolder {

//        @Bind(R.id.textViewPriority)  TextView textViewPriority;
//        @Bind(R.id.textViewStatus)  TextView textViewStatus;
//        @Bind(R.id.textViewSubject)  TextView textViewSubject;
//        @Bind(R.id.textViewType)  TextView textViewType;

        AppCompatTextView textViewPriority;
        AppCompatTextView textViewStatus;
        AppCompatTextView textViewSubject;
        AppCompatTextView textViewType;
        View viewSeperator;
        RelativeLayout relativeLayoutListView;

        public TicketViewHolder(View itemView) {
            super(itemView);
//            ButterKnife.bind(itemView);
            textViewPriority = (AppCompatTextView) itemView.findViewById(R.id.textViewPriority);
            textViewStatus = (AppCompatTextView) itemView.findViewById(R.id.textViewStatus);
            textViewSubject = (AppCompatTextView) itemView.findViewById(R.id.textViewSubject);
            textViewType = (AppCompatTextView) itemView.findViewById(R.id.textViewType);
            viewSeperator = (View) itemView.findViewById(R.id.priorityStrip);
            relativeLayoutListView = (RelativeLayout) itemView.findViewById(R.id.relativeLayoutListView);
        }
    }


}
{'fraction_non_alphanumeric': 0.10222092910483949, 'fraction_numerical': 0.002618562700029095, 'mean_word_length': 2.7267799060354174, 'pattern_counts': {'":': 6, '<': 11, '<?xml version=': 0, '>': 19, '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': '3960504', 'n_tokens_mistral': 2919, 'n_tokens_neox': 2791, 'n_words': 412}