<commit_before>controller = new BasicController({
    supports: {
        playpause: true,
        next: true,
        previous: true,
        favorite: true
    },
    playPauseSelector: '.player-controls__btn_play',
    previousSelector: '.player-controls__btn_prev',
    nextSelector: '.player-controls__btn_next',
    titleSelector: '.player-controls .track__title',
    artistSelector: '.player-controls .track__artists',
    playStateSelector: '.player-controls__btn_play',
    playStateClass: 'player-controls__btn_pause',
    artworkImageSelector: '.player-controls .album-cover',
    favoriteSelector: '.player-controls .like',
    isFavoriteSelector: '.player-controls .like_on'
});
 
controller.override('getAlbumArt', function() {
    var img = document.querySelector(this.artworkImageSelector);
    if (img) {
        return img.src.replace('40x40', '150x150');
    }
    return undefined
});<commit_msg>Add support for thumbs down in radio mode on Yandex.Music<commit_after>controller = new BasicController({
    supports: {
        playpause: true,
        next: true,
        previous: true,
        favorite: true,
        thumbsDown: false  // Changes dynamically
    },
    playPauseSelector: '.player-controls__btn_play',
    previousSelector: '.player-controls__btn_prev',
    nextSelector: '.player-controls__btn_next',
    titleSelector: '.player-controls .track__title',
    artistSelector: '.player-controls .track__artists',
    playStateSelector: '.player-controls__btn_play',
    playStateClass: 'player-controls__btn_pause',
    artworkImageSelector: '.player-controls .album-cover',
    favoriteSelector: '.player-controls .like',
    isFavoriteSelector: '.player-controls .like_on',
    thumbsDownSelector: '.player-controls__btn_dislike'
});
 
controller.override('getAlbumArt', function() {
    var img = document.querySelector(this.artworkImageSelector);
    if (img) {
        return img.src.replace('40x40', '150x150');
    }
    return undefined
});

controller.override('isPlaying', function(_super) {
    this.supports.thumbsDown = window.getComputedStyle(document.querySelector(this.thumbsDownSelector)).display != 'none'
    return _super()
});
{'fraction_non_alphanumeric': 0.12311212814645309, 'fraction_numerical': 0.009153318077803204, 'mean_word_length': 3.8794642857142856, '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': '3856948', 'n_tokens_mistral': 632, 'n_tokens_neox': 625, 'n_words': 120}