<commit_before>/**
 * Radio Player Script
 */

var volume = 55,
    is_playing = false,
    player,
    $player;

$(function() {

    // Check webstorage for existing volume preference.
    if (store.enabled && store.get('player_volume') !== undefined)
        volume = store.get('player_volume', volume);

    $('.btn-audio').on('click', function(e) {
        e.preventDefault();
        handlePlayClick($(this).data('url'));
        return false;
    });

    // Create audio element.
    player = document.createElement('audio');
    $player = $(player);

    setVolume(volume/100);

    var can_play_mp3 = !!(player.canPlayType && player.canPlayType('audio/mpeg;').replace(/no/, ''));
    if (!can_play_mp3)
        console.error('This browser cannot play MP3 files directly.');

    // Handle events.
    $player.on('play', function(e) {<commit_msg>Closes #150 -- Remove MP3 playability check on radio player.<commit_after>/**
 * Radio Player Script
 */

var volume = 55,
    is_playing = false,
    player,
    $player;

$(function() {

    // Check webstorage for existing volume preference.
    if (store.enabled && store.get('player_volume') !== undefined)
        volume = store.get('player_volume', volume);

    $('.btn-audio').on('click', function(e) {
        e.preventDefault();
        handlePlayClick($(this).data('url'));
        return false;
    });

    // Create audio element.
    player = document.createElement('audio');
    $player = $(player);

    setVolume(volume/100);

    // Handle events.
    $player.on('play', function(e) {
{'fraction_non_alphanumeric': 0.1668806161745828, 'fraction_numerical': 0.010911424903722721, 'mean_word_length': 2.8975, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '201089', 'n_tokens_mistral': 475, 'n_tokens_neox': 454, 'n_words': 108}