<commit_before>;(function( _, async, $, App ){

    /// Variables: -------------------------------------------------------------

    var $view;
    var last =          App.Db.last;
    var stationList =   App.StationList();

    /// Exports: ---------------------------------------------------------------

    App.LastPlayed = {
        updateView:     updateView,
        listStations:   listStations,
        updateStation:  updateStation,
    };

    /// Init: ------------------------------------------------------------------

    $( init );

    /// Functions: -------------------------------------------------------------

    function init() {

        $view = $( "#last > .tabpanel" );
        $view.html( "" ).append( stationList.getView() );

        updateView( switchToSearch );

        function switchToSearch( err, results ) {
            console.log( "switchToSearch", err, results && results.length );
            $view.removeClass( "app-loading" );
            ( err || !results || !results.length ) && App.Explorer.show( "search" );<commit_msg>Turned on autoplay of last played station.<commit_after>;(function( _, async, $, App ){

    /// Variables: -------------------------------------------------------------

    var $view;
    var last =          App.Db.last;
    var stationList =   App.StationList();

    /// Exports: ---------------------------------------------------------------

    App.LastPlayed = {
        updateView:     updateView,
        listStations:   listStations,
        updateStation:  updateStation,
    };

    /// Init: ------------------------------------------------------------------

    $( init );

    /// Functions: -------------------------------------------------------------

    function init() {

        $view = $( "#last > .tabpanel" );
        $view.html( "" ).append( stationList.getView() );

        updateView( onLoad );

        function onLoad( err, results ) {
            App.debug( "switchToSearch", err, results && results.length );

            $view.removeClass( "app-loading" );
            if ( err || !results || !results.length ) {
                App.Explorer.show( "search" );
            } else {
                App.AppController.playStation( App.Station.fromInfo( results[0] ));
            }
{'fraction_non_alphanumeric': 0.33581762384918895, 'fraction_numerical': 0.00043840420868040335, 'mean_word_length': 1.0123456790123457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5065958', 'n_tokens_mistral': 541, 'n_tokens_neox': 511, 'n_words': 109}