<commit_before>nrj("soundmanager2/script/soundmanager2-nodebug-jsmin.js", true);

function ddg_spice_forvo (api_result) {
    "use strict";

    if (api_result.attributes.total < 1) return;

    // Display the Spice plug-in.
    Spice.render({
        data             : api_result,
        header1          : "Pronunciations (Forvo)",
        source_url       : "http://www.forvo.com/",
        source_name      : "Forvo",
        spice_name       : "forvo",
        template_frame   : "list",
        template_options : {
            items         : api_result.items, //list,
            template_item : "forvo",
            show          : 3,
            max           : 5,
            type          : "ul",
	    use_alternate_template: false
        },
        force_big_header : true,
        force_no_fold    : true
    });



    // This gets called when the sound is finished playing
    // or when another player is playing. It basically just resets the look of the player.
    var clearPlayer = function() {
        var li = $(".spice2list_item");
        li.removeClass("sm2_playing");
        li.removeClass("sm2_paused");
        li.addClass("sm2_stopped");
        soundManager.stopAll();
    };

    // Loads and plays the audio file.
    var isFailed = false;
    var playSound = function(anchor) {
        soundManager.stopAll();

        if(isFailed) {
            setTimeout(function() {
                clearPlayer();
            }, 1000);
        } else {
            var sound = soundManager.createSound({
                id: anchor.attr("id"),
                url: anchor.data("stream"),<commit_msg>Forvo - more at now links to search on forvo<commit_after>nrj("soundmanager2/script/soundmanager2-nodebug-jsmin.js", true);

function ddg_spice_forvo (api_result) {
    "use strict";

    if (api_result.attributes.total < 1) return;

    var script = $('[src*="/js/spice/forvo/"]')[0];
    var source = $(script).attr("src");
    var query = source.match(/forvo\/([^\/]+)\/\w+/)[1];

    // Display the Spice plug-in.
    Spice.render({
        data             : api_result,
        header1          : "Pronunciations (Forvo)",
        source_url       : "http://www.forvo.com/search/" + query,
        source_name      : "Forvo",
        spice_name       : "forvo",
        template_frame   : "list",
        template_options : {
            items         : api_result.items, //list,
            template_item : "forvo",
            show          : 3,
            max           : 5,
            type          : "ul",
            use_alternate_template: false
        },
        force_big_header : true,
        force_no_fold    : true
    });

    // This gets called when the sound is finished playing
    // or when another player is playing. It basically just resets the look of the player.
    var clearPlayer = function() {
        var li = $(".spice2list_item");
        li.removeClass("sm2_playing");
        li.removeClass("sm2_paused");
        li.addClass("sm2_stopped");
        soundManager.stopAll();
    };

    // Loads and plays the audio file.
    var isFailed = false;
    var playSound = function(anchor) {
        soundManager.stopAll();

        if(isFailed) {
            setTimeout(function() {
                clearPlayer();
            }, 1000);
        } else {
            var sound = soundManager.createSound({
                id: anchor.attr("id"),
                url: anchor.data("stream"),
{'fraction_non_alphanumeric': 0.12104499274310596, 'fraction_numerical': 0.008708272859216255, 'mean_word_length': 1.7069913589945012, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5752532', 'n_tokens_mistral': 1022, 'n_tokens_neox': 986, 'n_words': 229}