<commit_before>package com.wsfmn.model;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import com.wsfmn.view.R;

import java.util.ArrayList;

/**
 * Created by Fredric on 2017-11-30.
 */

public class LeaderBoardAdapter extends ArrayAdapter<ProfileName> {

    private ArrayList<ProfileName> objects;  // declaring our ArrayList of items

    // Constructor for the CounterAdapter.
    public LeaderBoardAdapter(Context context, int textViewResourceId, ArrayList<ProfileName> objects) {
        super(context, textViewResourceId, objects);
        this.objects = objects;
    }

    // Override the getView method, and make the look of each item on the list.
    public View getView(int position, View convertView, ViewGroup parent) {

        View v = convertView; // assign view to a variable v

        // if view is null, then show view with inflate.
        if (v == null) {
            LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            v = inflater.inflate(R.layout.listleader_item, null);
        }

        ProfileName i = objects.get(position); // custom item object and get it's position in list

        if (i != null) {
            // obtain a reference to the TextViews.
            TextView nameScore = (TextView) v.findViewById(R.id.nameScore);
            TextView scoreScore = (TextView) v.findViewById(R.id.scoreScore);

            // check to see if each individual textview is null.
            // if not, assign some text
            if (nameScore != null) {
                nameScore.setText(i.getName() + "      ");
            }
            if (scoreScore != null) {
                scoreScore.setText(String.valueOf(i.getScore())); // set the name
            }

            // view is returned to activity

        }
        return v;
    }
}
<commit_msg>updated text list item text formatting in LeaderBoardAdapter<commit_after>package com.wsfmn.model;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import com.wsfmn.view.R;

import java.util.ArrayList;

/**
 * Created by Fredric on 2017-11-30.
 */

public class LeaderBoardAdapter extends ArrayAdapter<ProfileName> {

    private ArrayList<ProfileName> objects;  // declaring our ArrayList of items

    // Constructor for the CounterAdapter.
    public LeaderBoardAdapter(Context context, int textViewResourceId, ArrayList<ProfileName> objects) {
        super(context, textViewResourceId, objects);
        this.objects = objects;
    }

    // Override the getView method, and make the look of each item on the list.
    public View getView(int position, View convertView, ViewGroup parent) {

        View v = convertView; // assign view to a variable v

        // if view is null, then show view with inflate.
        if (v == null) {
            LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            v = inflater.inflate(R.layout.listleader_item, null);
        }

        ProfileName i = objects.get(position); // custom item object and get it's position in list

        if (i != null) {
            // obtain a reference to the TextViews.
            TextView nameScore = (TextView) v.findViewById(R.id.nameScore);
            TextView scoreScore = (TextView) v.findViewById(R.id.scoreScore);

            // check to see if each individual textview is null.
            // if not, assign some text
            if (nameScore != null) {
                nameScore.setText("Friend:  " + i.getName() + "      ");
            }
            if (scoreScore != null) {
                scoreScore.setText("Score: " + String.valueOf(i.getScore()) + "%"); // set the score
            }

            // view is returned to activity

        }
        return v;
    }
}

{'fraction_non_alphanumeric': 0.09514467876410004, 'fraction_numerical': 0.00392349190779794, 'mean_word_length': 2.4597116200169635, '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': '253516', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1063, 'n_words': 335}