<commit_before>
package org.a0z.mpd;

import android.content.Context;
import android.util.Log;

import org.a0z.mpd.exception.MPDClientException;
import org.a0z.mpd.exception.MPDConnectionException;
import org.a0z.mpd.exception.MPDServerException;

import java.net.InetAddress;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * MPD Server controller.
 * 
 * @version $Id: MPD.java 2716 2004-11-20 17:37:20Z galmeida $
 */
public class MPD {

    static public void setShowAlbumTrackCount(boolean v) {
        showAlbumTrackCount = v;
    }
    protected MPDConnection mpdConnection;
    protected MPDConnection mpdIdleConnection;

    protected MPDConnection mpdStatusConnection;
    protected MPDStatus mpdStatus;
    protected MPDPlaylist playlist;

    protected Directory rootDirectory;
    static protected boolean sortByTrackNumber = true;
    static protected boolean sortAlbumsByYear = false;
    static protected boolean showArtistAlbumCount = false;

    static protected boolean showAlbumTrackCount = true;

    static protected Context applicationContext = null;

    static public Context getApplicationContext() {
        return applicationContext;
    }

    static public void setApplicationContext(Context context) {
        applicationContext = context;
    }

    static public void setShowArtistAlbumCount(boolean v) {
        showArtistAlbumCount = v;<commit_msg>Small sorting issue<commit_after>
package org.a0z.mpd;

import android.content.Context;
import android.util.Log;

import org.a0z.mpd.exception.MPDClientException;
import org.a0z.mpd.exception.MPDConnectionException;
import org.a0z.mpd.exception.MPDServerException;

import java.net.InetAddress;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * MPD Server controller.
 * 
 * @version $Id: MPD.java 2716 2004-11-20 17:37:20Z galmeida $
 */
public class MPD {

    protected MPDConnection mpdConnection;
    protected MPDConnection mpdIdleConnection;

    protected MPDConnection mpdStatusConnection;
    protected MPDStatus mpdStatus;
    protected MPDPlaylist playlist;

    protected Directory rootDirectory;
    static protected boolean sortByTrackNumber = true;
    static protected boolean sortAlbumsByYear = false;
    static protected boolean showArtistAlbumCount = false;

    static protected boolean showAlbumTrackCount = true;

    static protected Context applicationContext = null;

    static public Context getApplicationContext() {
        return applicationContext;
    }
    static public void setApplicationContext(Context context) {
        applicationContext = context;
    }

    static public void setShowAlbumTrackCount(boolean v) {
        showAlbumTrackCount = v;
    }

    static public void setShowArtistAlbumCount(boolean v) {
        showArtistAlbumCount = v;
{'fraction_non_alphanumeric': 0.07083599234205488, 'fraction_numerical': 0.014039566049776643, 'mean_word_length': 4.233722871452421, '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': '4990157', 'n_tokens_mistral': 928, 'n_tokens_neox': 867, 'n_words': 229}