<commit_before>package com.joshclemm.android.tabs;

import android.view.View;
import android.widget.TabHost;
import android.widget.TextView;

public class CustomTabActivity extends android.app.Activity {

	private TabHost mTabHost;

	@Override
	public void onCreate(android.os.Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		mTabHost = (TabHost) findViewById(R.id.mytabhost);
		mTabHost.setup();
		mTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider);

		for (String TabName : new String[]{"Tab 1", "Tab 2", "Tab 3"})
		  {
			setupTab(new TextView(this), TabName);
		  } /*for*/
	}

	private void setupTab(final View contentview, final String tag) {
		View indicatorview = android.view.LayoutInflater.from(this).inflate(R.layout.tabs_bg, null);
		((TextView)indicatorview.findViewById(R.id.tabsText)).setText(tag);
		android.widget.TabHost.TabSpec setContent =
			mTabHost.newTabSpec(tag)
				.setIndicator(indicatorview)
				.setContent
				  (
					new android.widget.TabHost.TabContentFactory()
					  {
						public View createTabContent(String tag)
						  {
							return contentview;
						  } /*createTabContent*/
					  } /*TabContentFactory*/
				  );
		mTabHost.addTab(setContent);
	}
}<commit_msg>absorb another level of routine call<commit_after>package com.joshclemm.android.tabs;

import android.view.View;
import android.widget.TabHost;
import android.widget.TextView;

public class CustomTabActivity extends android.app.Activity {

	private TabHost mTabHost;

	@Override
	public void onCreate(android.os.Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		mTabHost = (TabHost) findViewById(R.id.mytabhost);
		mTabHost.setup();
		mTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider);

		for (String TabName : new String[]{"Tab 1", "Tab 2", "Tab 3"})
		  {
			final View contentview = new TextView(this);
			View indicatorview =
				android.view.LayoutInflater.from(this).inflate(R.layout.tabs_bg, null);
			((TextView)indicatorview.findViewById(R.id.tabsText)).setText(TabName);
			android.widget.TabHost.TabSpec setContent =
				mTabHost.newTabSpec(TabName)
					.setIndicator(indicatorview)
					.setContent
					  (
						new android.widget.TabHost.TabContentFactory()
						  {
							public View createTabContent(String tag)
							  {
								return contentview;
							  } /*createTabContent*/
						  } /*TabContentFactory*/
					  );
			mTabHost.addTab(setContent);
		  } /*for*/
	}
}
{'fraction_non_alphanumeric': 0.11831761006289308, 'fraction_numerical': 0.0023584905660377358, 'mean_word_length': 3.894230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2614361', 'n_tokens_mistral': 974, 'n_tokens_neox': 788, 'n_words': 141}