<commit_before>package com.monstarlab.servicedroid.activity;

import com.monstarlab.servicedroid.R;
import com.monstarlab.servicedroid.service.ReminderService;
import com.monstarlab.servicedroid.util.Changelog;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class ServiceDroidActivity extends TabActivity implements TabHost.OnTabChangeListener {
    
	private TabHost mTabHost;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        mTabHost = getTabHost();
        mTabHost.setOnTabChangedListener(this);
        
        setupTimeActivity();
        setupReturnVisitsActivity();
        setupStatisticsActivity();
        
        showWhatsNew();
        
        //setup reminders
        setupReminderService();
    }

	public void setupTimeActivity() {
		Intent intent = new Intent(this, TimeActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("time")
                .setIndicator(getString(R.string.time), getResources().getDrawable(R.drawable.clock))
                .setContent(intent));
	}
	
	public void setupReturnVisitsActivity() {
		Intent intent = new Intent(this, ReturnVisitsActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("rvs")
                .setIndicator(getString(R.string.rv), getResources().getDrawable(R.drawable.home))
                .setContent(intent));
	}
	
	public void setupStatisticsActivity() {
		Intent intent = new Intent(this, StatisticsActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("stats")
                .setIndicator(getString(R.string.stats), getResources().getDrawable(R.drawable.calendar))<commit_msg>using new Call Book name for tab<commit_after>package com.monstarlab.servicedroid.activity;

import com.monstarlab.servicedroid.R;
import com.monstarlab.servicedroid.service.ReminderService;
import com.monstarlab.servicedroid.util.Changelog;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class ServiceDroidActivity extends TabActivity implements TabHost.OnTabChangeListener {
    
	private TabHost mTabHost;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        mTabHost = getTabHost();
        mTabHost.setOnTabChangedListener(this);
        
        setupTimeActivity();
        setupReturnVisitsActivity();
        setupStatisticsActivity();
        
        showWhatsNew();
        
        //setup reminders
        setupReminderService();
    }

	public void setupTimeActivity() {
		Intent intent = new Intent(this, TimeActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("time")
                .setIndicator(getString(R.string.time), getResources().getDrawable(R.drawable.clock))
                .setContent(intent));
	}
	
	public void setupReturnVisitsActivity() {
		Intent intent = new Intent(this, ReturnVisitsActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("rvs")
                .setIndicator(getString(R.string.callbook), getResources().getDrawable(R.drawable.home))
                .setContent(intent));
	}
	
	public void setupStatisticsActivity() {
		Intent intent = new Intent(this, StatisticsActivity.class);
        mTabHost.addTab(mTabHost.newTabSpec("stats")
                .setIndicator(getString(R.string.stats), getResources().getDrawable(R.drawable.calendar))
{'fraction_non_alphanumeric': 0.10029980921231943, 'fraction_numerical': 0.0, 'mean_word_length': 3.4163658243080626, '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': '3109551', 'n_tokens_mistral': 1042, 'n_tokens_neox': 1011, 'n_words': 177}