<commit_before>package com.soctec.soctec.core;

/**
 * Created by Jeppe on 2015-10-07.
 */
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.soctec.soctec.R;
import com.soctec.soctec.utils.FileHandler;
import java.util.ArrayList;

public class AchievementsAdapter extends ArrayAdapter
{

    private final Activity context;
    ArrayList<String> itemNames;


    public AchievementsAdapter(Activity context, ArrayList<String> itemNames)
    {
        super(context, R.layout.row_achievements, itemNames);
        // TODO Auto-generated constructor stub (why is this TODO?)
        this.itemNames = itemNames;
        this.context=context;
    }

    public View getView(int position,View view,ViewGroup parent)
    {
        LayoutInflater inflater=context.getLayoutInflater();
        View rowView=inflater.inflate(R.layout.row_achievements, parent, false);

        TextView titleText = (TextView) rowView.findViewById(R.id.item);
        ImageView imageView = (ImageView) rowView.findViewById(R.id.icon);
        TextView flavorText = (TextView) rowView.findViewById(R.id.context);

        String fullString = itemNames.get(position);
        String [] strings = fullString.split(",");

        titleText.setText(strings[0]);
        flavorText.setText(strings[1]);
        FileHandler fh = FileHandler.getInstance();
        imageView.setImageResource(fh.getResourceID(strings[1], "drawable"));

        return rowView;
    }
}<commit_msg>Minor fix, pictures now showing correctly<commit_after>package com.soctec.soctec.core;

/**
 * Created by Jeppe on 2015-10-07.
 */
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.soctec.soctec.R;
import com.soctec.soctec.utils.FileHandler;
import java.util.ArrayList;

public class AchievementsAdapter extends ArrayAdapter
{

    private final Activity context;
    ArrayList<String> itemNames;


    public AchievementsAdapter(Activity context, ArrayList<String> itemNames)
    {
        super(context, R.layout.row_achievements, itemNames);
        // TODO Auto-generated constructor stub (why is this TODO?)
        this.itemNames = itemNames;
        this.context=context;
    }

    public View getView(int position,View view,ViewGroup parent)
    {
        LayoutInflater inflater=context.getLayoutInflater();
        View rowView=inflater.inflate(R.layout.row_achievements, parent, false);

        TextView titleText = (TextView) rowView.findViewById(R.id.item);
        ImageView imageView = (ImageView) rowView.findViewById(R.id.icon);
        TextView flavorText = (TextView) rowView.findViewById(R.id.context);

        String fullString = itemNames.get(position);
        String [] strings = fullString.split(",");

        titleText.setText(strings[0]);
        //flavorText.setText(strings[1]);
        FileHandler fh = FileHandler.getInstance();
        imageView.setImageResource(fh.getResourceID(strings[2], "drawable"));

        return rowView;
    }
}
{'fraction_non_alphanumeric': 0.10620815581253804, 'fraction_numerical': 0.006695069993913573, 'mean_word_length': 3.7363112391930837, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6960640', 'n_tokens_mistral': 982, 'n_tokens_neox': 919, 'n_words': 197}