<commit_before>package com.ternaryop.photoshelf.activity;

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

import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.Toast;

import com.ternaryop.photoshelf.AppSupport;
import com.ternaryop.photoshelf.AppSupport.AppSupportCallback;
import com.ternaryop.photoshelf.Constants;
import com.ternaryop.photoshelf.R;
import com.ternaryop.photoshelf.adapter.BlogSpinnerAdapter;
import com.ternaryop.photoshelf.adapter.DrawerAdapter;
import com.ternaryop.photoshelf.adapter.DrawerItem;
import com.ternaryop.photoshelf.counter.BirthdaysCountRetriever;
import com.ternaryop.photoshelf.counter.CountChangedListener;
import com.ternaryop.photoshelf.counter.CountProvider;
import com.ternaryop.photoshelf.counter.CountRetriever;
import com.ternaryop.photoshelf.counter.DraftCountRetriever;
import com.ternaryop.photoshelf.counter.QueueCountRetriever;
import com.ternaryop.photoshelf.fragment.BestOfFragment;
import com.ternaryop.photoshelf.fragment.BirthdaysFragment;
import com.ternaryop.photoshelf.fragment.BirthdaysPublisherFragment;
import com.ternaryop.photoshelf.fragment.DraftListFragment;
import com.ternaryop.photoshelf.fragment.FragmentActivityStatus;
import com.ternaryop.photoshelf.fragment.ImagePickerFragment;
import com.ternaryop.photoshelf.fragment.PublishedPostsListFragment;
import com.ternaryop.photoshelf.fragment.ScheduledListFragment;
import com.ternaryop.photoshelf.fragment.TagListFragment;
import com.ternaryop.photoshelf.fragment.TagPhotoBrowserFragment;
import com.ternaryop.tumblr.AuthenticationCallback;
import com.ternaryop.tumblr.Blog;
import com.ternaryop.tumblr.Callback;
import com.ternaryop.tumblr.Tumblr;
import com.ternaryop.utils.DialogUtils;

public class MainActivity extends Activity implements AuthenticationCallback, FragmentActivityStatus {
    private static final String LOADER_PREFIX_AVATAR = "avatar";
    private AppSupport appSupport;

    private DrawerLayout drawerLayout;
    private ActionBarDrawerToggle drawerToggle;
    private LinearLayout drawerLinearLayout;
    private ListView drawerList;

    private DrawerAdapter adapter;

    // nav drawer title
    private CharSequence drawerTitle;

    // used to store app title
    private CharSequence title;
    
    private Spinner blogList;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        appSupport = new AppSupport(this);
        
        setContentView(R.layout.activity_main);

        title = drawerTitle = getTitle();

        drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);

        drawerLinearLayout = (LinearLayout) findViewById(R.id.drawer_frame);
        <commit_msg>removed duplicated call<commit_after>package com.ternaryop.photoshelf.activity;

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

import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.Toast;

import com.ternaryop.photoshelf.AppSupport;
import com.ternaryop.photoshelf.AppSupport.AppSupportCallback;
import com.ternaryop.photoshelf.Constants;
import com.ternaryop.photoshelf.R;
import com.ternaryop.photoshelf.adapter.BlogSpinnerAdapter;
import com.ternaryop.photoshelf.adapter.DrawerAdapter;
import com.ternaryop.photoshelf.adapter.DrawerItem;
import com.ternaryop.photoshelf.counter.BirthdaysCountRetriever;
import com.ternaryop.photoshelf.counter.CountChangedListener;
import com.ternaryop.photoshelf.counter.CountProvider;
import com.ternaryop.photoshelf.counter.CountRetriever;
import com.ternaryop.photoshelf.counter.DraftCountRetriever;
import com.ternaryop.photoshelf.counter.QueueCountRetriever;
import com.ternaryop.photoshelf.fragment.BestOfFragment;
import com.ternaryop.photoshelf.fragment.BirthdaysFragment;
import com.ternaryop.photoshelf.fragment.BirthdaysPublisherFragment;
import com.ternaryop.photoshelf.fragment.DraftListFragment;
import com.ternaryop.photoshelf.fragment.FragmentActivityStatus;
import com.ternaryop.photoshelf.fragment.ImagePickerFragment;
import com.ternaryop.photoshelf.fragment.PublishedPostsListFragment;
import com.ternaryop.photoshelf.fragment.ScheduledListFragment;
import com.ternaryop.photoshelf.fragment.TagListFragment;
import com.ternaryop.photoshelf.fragment.TagPhotoBrowserFragment;
import com.ternaryop.tumblr.AuthenticationCallback;
import com.ternaryop.tumblr.Blog;
import com.ternaryop.tumblr.Callback;
import com.ternaryop.tumblr.Tumblr;
import com.ternaryop.utils.DialogUtils;

public class MainActivity extends Activity implements AuthenticationCallback, FragmentActivityStatus {
    private static final String LOADER_PREFIX_AVATAR = "avatar";
    private AppSupport appSupport;

    private DrawerLayout drawerLayout;
    private ActionBarDrawerToggle drawerToggle;
    private LinearLayout drawerLinearLayout;
    private ListView drawerList;

    private DrawerAdapter adapter;

    // nav drawer title
    private CharSequence drawerTitle;

    // used to store app title
    private CharSequence title;
    
    private Spinner blogList;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        appSupport = new AppSupport(this);
        
        title = drawerTitle = getTitle();

        drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);

        drawerLinearLayout = (LinearLayout) findViewById(R.id.drawer_frame);
        
{'fraction_non_alphanumeric': 0.0796242106884337, 'fraction_numerical': 0.0006160480517480363, 'mean_word_length': 5.8, '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': '825799', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1807, 'n_words': 327}