<commit_before>function DGAuroraPlayer(player, DGPlayer) {
    this.player = player;
    this.ui = DGPlayer;

    DGPlayer.seekTime = 0;
    DGPlayer.duration = 0;
    DGPlayer.bufferProgress = 0;

    var onplay, onpause, onvolume, onformat, onbuffer, onprogress, onduration, onmetadata;

    DGPlayer.on('play', onplay = function() {
        player.play();
        DGPlayer.state = 'playing';
    });

    DGPlayer.on('pause', onpause = function() {
        player.pause();
        DGPlayer.state = 'paused';
    });

    DGPlayer.on('volume', onvolume = function(value) {
        player.volume = value;
    });

    player.on('buffer', onbuffer = function(percent) {
        DGPlayer.bufferProgress = percent;
    });

    player.on('progress', onprogress = function(time) {<commit_msg>Added seeking support for flacs to player ui<commit_after>function DGAuroraPlayer(player, DGPlayer) {
    this.player = player;
    this.ui = DGPlayer;

    DGPlayer.seekTime = 0;
    DGPlayer.duration = 0;
    DGPlayer.bufferProgress = 0;

    var onplay, onpause, onvolume, onseek, onformat, onbuffer, onprogress, onduration, onmetadata;

    DGPlayer.on('play', onplay = function() {
        player.play();
        DGPlayer.state = 'playing';
    });

    DGPlayer.on('pause', onpause = function() {
        player.pause();
        DGPlayer.state = 'paused';
    });

    DGPlayer.on('volume', onvolume = function(value) {
        player.volume = value;
    });
    
    DGPlayer.on('seek', onseek = function(value) {
        if (value <= ((DGPlayer.bufferProgress * DGPlayer.duration) / 100) - 10000) {
            player.seek(value);
        }
    });

    player.on('buffer', onbuffer = function(percent) {
        DGPlayer.bufferProgress = percent;
    });

    player.on('progress', onprogress = function(time) {
{'fraction_non_alphanumeric': 0.1404090657822001, 'fraction_numerical': 0.007739082365948038, 'mean_word_length': 2.7945492662473796, 'pattern_counts': {'":': 0, '<': 4, '<?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': '900847', 'n_tokens_mistral': 599, 'n_tokens_neox': 541, 'n_words': 112}