<commit_before>package com.reactnativenavigation.layout.bottomtabs;

import android.app.Activity;
import android.view.View;
import android.widget.RelativeLayout;

import java.util.ArrayList;
import java.util.List;

public class BottomTabsContainer extends RelativeLayout implements BottomTabs.BottomTabsSelectionListener {

    private List<View> tabsContent;
    private BottomTabs bottomTabs;
    private int currentTab;

    public BottomTabsContainer(Activity activity, BottomTabs bottomTabs) {
        super(activity);
        initBottomTabs(bottomTabs);
    }

    public void addTabContent(String label, View tabContent) {
        if (tabsContent.size() > 5) {
            throw new TooManyTabsException();
        }
        bottomTabs.add(label);
        attachTabContent(tabContent);
        tabsContent.add(tabContent);

        if (tabsContent.size() > 1) {
            tabContent.setVisibility(View.GONE);
        }
    }

    @Override
    public void onTabSelected(int index) {<commit_msg>fix failing test<commit_after>package com.reactnativenavigation.layout.bottomtabs;

import android.app.Activity;
import android.view.View;
import android.widget.RelativeLayout;

import java.util.ArrayList;
import java.util.List;

public class BottomTabsContainer extends RelativeLayout implements BottomTabs.BottomTabsSelectionListener {

    private List<View> tabsContent;
    private BottomTabs bottomTabs;
    private int currentTab;

    public BottomTabsContainer(Activity activity, BottomTabs bottomTabs) {
        super(activity);
        initBottomTabs(bottomTabs);
    }

    public void addTabContent(String label, View tabContent) {
        if (tabsContent.size() == 5) {
            throw new TooManyTabsException();
        }
        bottomTabs.add(label);
        attachTabContent(tabContent);
        tabsContent.add(tabContent);

        if (tabsContent.size() > 1) {
            tabContent.setVisibility(View.GONE);
        }
    }

    @Override
    public void onTabSelected(int index) {
{'fraction_non_alphanumeric': 0.08407960199004975, 'fraction_numerical': 0.001990049751243781, 'mean_word_length': 3.3434125269978403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4269064', 'n_tokens_mistral': 577, 'n_tokens_neox': 546, 'n_words': 120}