<commit_before><commit_msg>Create array adapter that applies Roboto font to items<commit_after>package com.mick88.dittimetable;

import java.util.List;

import com.mick88.dittimetable.utils.FontApplicator;

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

public class RobotoArrayAdapter<T> extends ArrayAdapter<T>
{
	final FontApplicator fontApplicator;
	
	public RobotoArrayAdapter(Context context, int resource,
			int textViewResourceId, List<T> objects) {
		super(context, resource, textViewResourceId, objects);
		
		fontApplicator = new FontApplicator(context.getAssets(), "Roboto-Light.ttf");
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent)
	{
		View result = super.getView(position, convertView, parent);
		
		fontApplicator.applyFont(result);
		
		return result;
	}

}

{'fraction_non_alphanumeric': 0.09172259507829977, 'fraction_numerical': 0.0044742729306487695, 'mean_word_length': 5.8320610687022905, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1080854', 'n_tokens_mistral': 295, 'n_tokens_neox': 273, 'n_words': 64}