<commit_before>package cz.uruba.ets2mpcompanion.adapters;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;

import java.util.List;

import cz.uruba.ets2mpcompanion.R;
import cz.uruba.ets2mpcompanion.views.ColourRectangleView;

public class ColourChooserAdapter extends BaseAdapter {
    private GridView colourGrid;

    private Context context;
    private List<Integer> themeList;

    public ColourChooserAdapter(Context context, List<Integer> themeList, GridView colourGrid) {
        this.context = context;
        this.themeList = themeList;
        this.colourGrid = colourGrid;
    }

    @Override
    public int getCount() {
        return themeList.size();
    }

    @Override
    public Object getItem(int position) {
        return themeList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }<commit_msg>– added a final modifier where applicable<commit_after>package cz.uruba.ets2mpcompanion.adapters;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;

import java.util.List;

import cz.uruba.ets2mpcompanion.R;
import cz.uruba.ets2mpcompanion.views.ColourRectangleView;

public class ColourChooserAdapter extends BaseAdapter {
    private final GridView colourGrid;

    private final Context context;
    private final List<Integer> themeList;

    public ColourChooserAdapter(Context context, List<Integer> themeList, GridView colourGrid) {
        this.context = context;
        this.themeList = themeList;
        this.colourGrid = colourGrid;
    }

    @Override
    public int getCount() {
        return themeList.size();
    }

    @Override
    public Object getItem(int position) {
        return themeList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }
{'fraction_non_alphanumeric': 0.0829555757026292, 'fraction_numerical': 0.0027198549410698096, 'mean_word_length': 3.715811965811966, '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': '4743171', 'n_tokens_mistral': 651, 'n_tokens_neox': 624, 'n_words': 151}