<commit_before>package org.musicpd.android.tools;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import org.musicpd.android.R;

public class LibraryTabsUtil {

	public static final String TAB_ARTISTS = "artists";
	public static final String TAB_ALBUMS = "albums";
	public static final String TAB_PLAYLISTS = "playlists";
	public static final String TAB_STREAMS = "streams";
	public static final String TAB_FILES = "files";
	public static final String TAB_GENRES = "genres";

	public static final HashMap<String, Integer> TABS = new HashMap<String, Integer>();
	static {
		TABS.put(TAB_ARTISTS, R.string.artists);
		TABS.put(TAB_ALBUMS, R.string.albums);
		TABS.put(TAB_PLAYLISTS, R.string.playlists);
		TABS.put(TAB_STREAMS, R.string.streams);
		TABS.put(TAB_FILES, R.string.files);
		TABS.put(TAB_GENRES, R.string.genres);
	}

	private static final String LIBRARY_TABS_SETTINGS_KEY = "currentLibraryTabs";

	private static final String LIBRARY_TABS_DELIMITER = "|";

	private static String DEFAULT_LIBRARY_TABS = TAB_ARTISTS
			+ LIBRARY_TABS_DELIMITER + TAB_ALBUMS
			+ LIBRARY_TABS_DELIMITER + TAB_PLAYLISTS
			+ LIBRARY_TABS_DELIMITER + TAB_STREAMS
			+ LIBRARY_TABS_DELIMITER + TAB_FILES
			+ LIBRARY_TABS_DELIMITER + TAB_GENRES;

	public static ArrayList<String> getAllLibraryTabs() {
		String CurrentSettings = DEFAULT_LIBRARY_TABS;<commit_msg>Default library tab order suited to large collections<commit_after>package org.musicpd.android.tools;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import org.musicpd.android.R;

public class LibraryTabsUtil {

	public static final String TAB_ARTISTS = "artists";
	public static final String TAB_ALBUMS = "albums";
	public static final String TAB_PLAYLISTS = "playlists";
	public static final String TAB_STREAMS = "streams";
	public static final String TAB_FILES = "files";
	public static final String TAB_GENRES = "genres";

	public static final HashMap<String, Integer> TABS = new HashMap<String, Integer>();
	static {
		TABS.put(TAB_ARTISTS, R.string.artists);
		TABS.put(TAB_FILES, R.string.files);
		TABS.put(TAB_PLAYLISTS, R.string.playlists);
		TABS.put(TAB_STREAMS, R.string.streams);
		TABS.put(TAB_GENRES, R.string.genres);
		TABS.put(TAB_ALBUMS, R.string.albums);
	}

	private static final String LIBRARY_TABS_SETTINGS_KEY = "currentLibraryTabs";

	private static final String LIBRARY_TABS_DELIMITER = "|";

	private static String DEFAULT_LIBRARY_TABS = TAB_ARTISTS
			+ LIBRARY_TABS_DELIMITER + TAB_FILES
			+ LIBRARY_TABS_DELIMITER + TAB_PLAYLISTS
			+ LIBRARY_TABS_DELIMITER + TAB_STREAMS
			+ LIBRARY_TABS_DELIMITER + TAB_GENRES
			+ LIBRARY_TABS_DELIMITER + TAB_ALBUMS;

	public static ArrayList<String> getAllLibraryTabs() {
		String CurrentSettings = DEFAULT_LIBRARY_TABS;
{'fraction_non_alphanumeric': 0.08918032786885247, 'fraction_numerical': 0.0, 'mean_word_length': 5.720264317180617, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4623397', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1032, 'n_words': 226}