<commit_before>
var player = function(youtubeService_p) {
    var youtubeService = youtubeService_p;
    var songList = []; //new playList();
    var playOrderList = [];//new Arrays();
    var currentPlayIndex = 0;
    var repeat = ["NONE", "ONE", "ALL"];
    var currentRepeatIndex = 0;
    var shuffle = false;

    this.isStopped = function() {
        return youtubeService.bStopped;
    }

    this.getRepeatState = function() {
        return repeat[currentRepeatIndex];
    }

    this.isShuffled = function() {
        return shuffle;
    }

    this.increasePlayIndex = function() {
        if (currentPlayIndex < songList.length-1)
            currentPlayIndex++;
    }<commit_msg>bugfix/repeat all doesn't work properly<commit_after>
var player = function(youtubeService_p) {
    var youtubeService = youtubeService_p;
    var songList = []; //new playList();
    var playOrderList = [];//new Arrays();
    var currentPlayIndex = 0;
    var repeat = ["NONE", "ONE", "ALL"];
    var currentRepeatIndex = 0;
    var shuffle = false;

    this.isStopped = function() {
        return youtubeService.bStopped;
    }

    this.getRepeatState = function() {
        return repeat[currentRepeatIndex];
    }

    this.isShuffled = function() {
        return shuffle;
    }

    this.increasePlayIndex = function() {
        if (currentPlayIndex < songList.length)
            currentPlayIndex++;
    }
{'fraction_non_alphanumeric': 0.11877667140825035, 'fraction_numerical': 0.0035561877667140826, 'mean_word_length': 2.6929133858267718, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3345202', 'n_tokens_mistral': 438, 'n_tokens_neox': 405, 'n_words': 98}