<commit_before>package com.mick88.dittimetable.timetable_activity;

import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.StyleSpan;

import com.mick88.dittimetable.timetable.Timetable;

/**
 * This class handles pages in the main screen.
 *
 */
public class TimetablePageAdapter extends FragmentPagerAdapter
{	
	public TimetablePageAdapter(FragmentManager fm)
	{
		super(fm);
	}

	@Override
	public Fragment getItem(int arg0)
	{
		DayFragment fragment = new DayFragment();
		Bundle args = new Bundle();
		args.putSerializable(DayFragment.EXTRA_DAY_ID, arg0);
		fragment.setArguments(args);
		return fragment;
	}
	
	@Override
	public int getItemPosition(Object object)
	{
		return POSITION_NONE;
	}
	
	@Override
	public CharSequence getPageTitle(int position)
	{
		
		SpannableString spannableString = new SpannableString(Timetable.DAY_NAMES[position]);
		if (Timetable.getTodayId(false) == position) 
		{
			spannableString.setSpan(new StyleSpan(Typeface.BOLD), 0, spannableString.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		}
		return spannableString;
	}
	
	@Override
	public int getCount()
	{
		return 5;<commit_msg>Don't override getElementPos in page adapter<commit_after>package com.mick88.dittimetable.timetable_activity;

import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.StyleSpan;

import com.mick88.dittimetable.timetable.Timetable;

/**
 * This class handles pages in the main screen.
 *
 */
public class TimetablePageAdapter extends FragmentPagerAdapter
{	
	public TimetablePageAdapter(FragmentManager fm)
	{
		super(fm);
	}

	@Override
	public Fragment getItem(int arg0)
	{
		DayFragment fragment = new DayFragment();
		Bundle args = new Bundle();
		args.putSerializable(DayFragment.EXTRA_DAY_ID, arg0);
		fragment.setArguments(args);
		return fragment;
	}
	
	@Override
	public CharSequence getPageTitle(int position)
	{
		
		SpannableString spannableString = new SpannableString(Timetable.DAY_NAMES[position]);
		if (Timetable.getTodayId(false) == position) 
		{
			spannableString.setSpan(new StyleSpan(Typeface.BOLD), 0, spannableString.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
		}
		return spannableString;
	}
	
	@Override
	public int getCount()
	{
		return 5;
{'fraction_non_alphanumeric': 0.09575666541494555, 'fraction_numerical': 0.008261359369132557, 'mean_word_length': 5.419277108433735, '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': '1920296', 'n_tokens_mistral': 943, 'n_tokens_neox': 854, 'n_words': 171}