<commit_before>package com.philliphsu.bottomsheetpickers.view;

import android.content.Context;
import android.support.annotation.IdRes;
import android.support.v7.widget.GridLayout;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.TextSwitcher;
import android.widget.TextView;
import android.widget.ViewSwitcher;

import com.philliphsu.bottomsheetpickers.R;

import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;

/**
 * View to pick an hour (00 - 23) from a 4 x 3 grid.
 */
// TODO: Make package private after you're done testing in TextSwitcherActivity. Then delete the usage in its layout.
public final class TwentyFourHourPickerView extends GridLayout {
    private static final String TAG = TwentyFourHourPickerView.class.getSimpleName();

    private static final @IdRes int[] TEXT_SWITCHER_IDS = {
            R.id.switcher0,  R.id.switcher1,   R.id.switcher2,
            R.id.switcher3,  R.id.switcher4,   R.id.switcher5,
            R.id.switcher6,  R.id.switcher7,   R.id.switcher8,
            R.id.switcher9,  R.id.switcher10,  R.id.switcher11,
    };

    private static final int NUM_TEXT_SWITCHERS = TEXT_SWITCHER_IDS.length;

    private static final TextSwitcher[] TEXT_SWITCHERS = new TextSwitcher[NUM_TEXT_SWITCHERS];

    private static final String[] HOURS_TEXTS_00_11 = new String[12];
    private static final String[] HOURS_TEXTS_12_23 = new String[12];

    static {
        for (int i = 0; i < 12; i++) {
            HOURS_TEXTS_00_11[i] = String.format("%02d", i);
            HOURS_TEXTS_12_23[i] = String.format("%02d", i + 12);
        }
    }
<commit_msg>Change array of TextSwitchers to be non-static.<commit_after>package com.philliphsu.bottomsheetpickers.view;

import android.content.Context;
import android.support.annotation.IdRes;
import android.support.v7.widget.GridLayout;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.TextSwitcher;
import android.widget.TextView;
import android.widget.ViewSwitcher;

import com.philliphsu.bottomsheetpickers.R;

import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;

/**
 * View to pick an hour (00 - 23) from a 4 x 3 grid.
 */
// TODO: Make package private after you're done testing in TextSwitcherActivity. Then delete the usage in its layout.
public final class TwentyFourHourPickerView extends GridLayout {
    private static final String TAG = TwentyFourHourPickerView.class.getSimpleName();

    private static final @IdRes int[] TEXT_SWITCHER_IDS = {
            R.id.switcher0,  R.id.switcher1,   R.id.switcher2,
            R.id.switcher3,  R.id.switcher4,   R.id.switcher5,
            R.id.switcher6,  R.id.switcher7,   R.id.switcher8,
            R.id.switcher9,  R.id.switcher10,  R.id.switcher11,
    };

    private static final int NUM_TEXT_SWITCHERS = TEXT_SWITCHER_IDS.length;

    private static final String[] HOURS_TEXTS_00_11 = new String[12];
    private static final String[] HOURS_TEXTS_12_23 = new String[12];

    static {
        for (int i = 0; i < 12; i++) {
            HOURS_TEXTS_00_11[i] = String.format("%02d", i);
            HOURS_TEXTS_12_23[i] = String.format("%02d", i + 12);
        }
    }

    private final TextSwitcher[] TEXT_SWITCHERS = new TextSwitcher[NUM_TEXT_SWITCHERS];

{'fraction_non_alphanumeric': 0.10104633781763826, 'fraction_numerical': 0.029895366218236172, 'mean_word_length': 3.546195652173913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6005224', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1138, 'n_words': 259}