<commit_before>/* Show tasks from server */

if(Loader){Loader.toLoad("html/big_player.html","BigPlayerPanel");}

var BigPlayerPanel = {
    div:null,
    playerDiv:null,
    time:800,
    defaultTime:800,
    lastBegin:0,
    ease:'',
    visible:false,
    timeField : null,
    currentSong:0,
    init:function(){
        this.div = $('#idBigPlayer');
        this.playerDiv = $('.big-player',this.div);
        this.timeField = $('.field-time',this.div);
    },
    _showPlaying:function(){
        if(MusicPlayer.isPause()){
            this._showPause();
        }else{
            this._showPlay();
        }
    },
    open:function(){
        if(!PlaylistPanel.isVisible()){
            return;
        }
        PlaylistPanel.getOne();
        this.visible = true;
        var musics = PlaylistPanel.getNSongs(3);
        this.currentSong = PlaylistPanel.current;
        for(var pos in musics){
            this._loadCoverAt(musics[pos],$('.posN' + pos));
            $('.posN' + pos + ' .title-song').html(musics[pos].title);
            $('.posN' + pos + ' .album-song').html(musics[pos].artist + " - " + musics[pos].album);
        }
        this._loadCover(musics[0]);
        this._showPlaying();
        var _self = this;
        $(document).unbind('playing_event.big').bind('playing_event.big',function(){
           _self._showPlaying();<commit_msg>Correct big player bug<commit_after>/* Show tasks from server */

if(Loader){Loader.toLoad("html/big_player.html","BigPlayerPanel");}

var BigPlayerPanel = {
    div:null,
    playerDiv:null,
    time:800,
    defaultTime:800,
    lastBegin:0,
    ease:'',
    visible:false,
    timeField : null,
    currentSong:0,
    init:function(){
        this.div = $('#idBigPlayer');
        this.playerDiv = $('.big-player',this.div);
        this.timeField = $('.field-time',this.div);
    },
    _showPlaying:function(){
        if(MusicPlayer.isPause()){
            this._showPause();
        }else{
            this._showPlay();
        }
    },
    open:function(){
        if(!PlaylistPanel.isVisible()){
            return;
        }
        PlaylistPanel.getOne();
        this.visible = true;
        var musics = PlaylistPanel.getNSongs(3);
        this.currentSong = PlaylistPanel.current;
        $('.title-song,.album-song').empty();
        for(var pos in musics){
            this._loadCoverAt(musics[pos],$('.posN' + pos));
            $('.posN' + pos + ' .title-song').html(musics[pos].title);
            $('.posN' + pos + ' .album-song').html(musics[pos].artist + " - " + musics[pos].album);
        }
        this._loadCover(musics[0]);
        this._showPlaying();
        var _self = this;
        $(document).unbind('playing_event.big').bind('playing_event.big',function(){
           _self._showPlaying();
{'fraction_non_alphanumeric': 0.17198136868505912, 'fraction_numerical': 0.007165890361877463, 'mean_word_length': 2.276995305164319, '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': '893750', 'n_tokens_mistral': 911, 'n_tokens_neox': 875, 'n_words': 125}