<commit_before>/*!
* LinnDS-jukebox
*
* Copyright (c) 2011 <NAME>, http://tolbøl.dk
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/

$(function() {
    $('.play,body,div.ui-dialog,ul.presets').delegate("a.onepreset", "click", function() {
            var preset = $(this).data("musik").preset;
            var playfunction = $(this).data("musik").playfunction;
            //alert("click " +preset);
            //jQuery.get("http://192.168.0.105/cgi-bin/musik.cgi/=/jukebox/play_now/"+preset);
            jQuery.get("PlayNow.php", { playfunction: playfunction, preset: preset } , function (data) {
                //alert('Load OK' + data);
            });
            //$('.ui-dialog').dialog('close');
            return true;
            });

    /*
    $('a.onepreset').live("click", function() {
            var preset = $(this).data("musik").preset;<commit_msg>in beta 1 we need to use vclick instead of click?<commit_after>/*!
* LinnDS-jukebox
*
* Copyright (c) 2011 <NAME>, http://tolbøl.dk
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*/

$(function() {
    $('.play,body,div.ui-dialog,ul.presets').delegate("a.onepreset", "vclick", function() {
            var preset = $(this).data("musik").preset;
            var playfunction = $(this).data("musik").playfunction;
            //alert("click " +preset);
            //jQuery.get("http://192.168.0.105/cgi-bin/musik.cgi/=/jukebox/play_now/"+preset);
            jQuery.get("PlayNow.php", { playfunction: playfunction, preset: preset } , function (data) {
                //alert('Load OK' + data);
            });
            //$('.ui-dialog').dialog('close');
            return true;
            });

    /*
    $('a.onepreset').live("click", function() {
            var preset = $(this).data("musik").preset;
{'fraction_non_alphanumeric': 0.20343531937734835, 'fraction_numerical': 0.015566290928609769, 'mean_word_length': 2.3707052441229655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '162342', 'n_tokens_mistral': 631, 'n_tokens_neox': 598, 'n_words': 97}