<commit_before>// unblock when ajax activity stops 
     //$(document).ajaxStop($.unblockUI); 


     function test() {
         $.ajax({ url: 'wait.php', cache: false });
     }
     function Display_RDS() {
         var rds = $.ajax({
             url: "EPV3/AJAX/components/RDS_Episode.php",
             cache: false
         });
         rds.done(function (msg) {
             $("#current_song").html(msg);
         });
         rds.fail(function (jqXHR, textStatus) {
             $("#current_song").html("Request failed: " + textStatus);
         });
     }

     function update_playback(target) {

     }
     
     function process_foobar(np_data){
         fb2k_data = JSON.parse(np_data);
         var volume_percentage = eval(100 + (fb2k_data.volume / 35 * 100));
         var playback_percentage = eval(100 - (fb2k_data.playback_time / fb2k_data.length *100));
          var html_info="<div id='notice' class='ui-state-highlight' style='width:1350px;'>" +
            "<form action='p2insert.php' method='post'>" +
            "<div class=\"grid\">" +
            "<div class='col-1-8'><img src=\"../images/foobar2000.png\" width=\"50px;\" alt=\"foobar2000\" title=\"" +
            fb2k_data.version +
            "\"/></div>" +
            "<div class='col-1-8'><p>Volume</p><progress value=\"" +
            volume_percentage +
            "\" max=\"100\" id=\"volume\">"+volume_percentage +"&perc;</progress><span style=\"float:left\">Playback:</span>";
            if(fb2k_data.status=="playing"){
                html_info += "<span style=\"float:left\" title=\"Playing...\"class='ui-icon ui-icon-play'></span>";
            }
            else if(fb2k_data.status=="paused"){
                html_info += "<span style=\"float:left\" title=\"Paused...\" class='ui-icon ui-icon-pause'></span>";
            }
            else if(fb2k_data.status=="stopped"){
                html_info += "<span style=\"float:left\" title=\"Stopped...\" class='ui-icon ui-icon-stop'></span>";
            }
            else{
                html_info += "<span style=\"float:left\" class='ui-icon ui-icon-alert'></span><span style=\"float:left\">error:"+fb2k_data.status+"</span>";
            }
            html_info += "<progress value=\"" +
            playback_percentage +
            "\" max=\"100\" id=\"volume\">"+playback_percentage +"&perc;</progress>"+
            /*"<p>Status:</p>"+
            fb2k_data.status +*/
            "</div>" +
            "<div class='col-1-8'><p>Title</p><input type='text' readonly name='title_read' id='title003' value='" + fb2k_data.title + "' /></div>" +
            "<div class='col-1-8'><p>Artist</p><input type='text' readonly name='artist_read' id='artist003' value='";
          if (fb2k_data.track_artist != undefined) {
              html_info += fb2k_data.artist;
          }
          else {
              html_info += fb2k_data.album_artist;
          }
            html_info += "' /></div>" +
            "<div class='col-1-8'><p>Album</p><input type='text' readonly name='title' id='album003' value='" + fb2k_data.artist + "' /></div>" +
            "</span></div></div></form>";

          $("#info_player").html(html_info);
     }
     
        // EPV3/Switch.php
        // generate web workers to handle updating diapla
     function Display_Switch() {
        if(typeof(Worker) !== "undefined") {
            if(typeof(switch_worker) == "undefined") {
                switch_worker = new Worker("../TPSBIN/JS/Episode/switch_worker.js");<commit_msg>missed one<commit_after>// unblock when ajax activity stops 
     //$(document).ajaxStop($.unblockUI); 


     function test() {
         $.ajax({ url: 'wait.php', cache: false });
     }
     function Display_RDS() {
         var rds = $.ajax({
             url: "EPV3/AJAX/components/RDS_Episode.php",
             cache: false
         });
         rds.done(function (msg) {
             $("#current_song").html(msg);
         });
         rds.fail(function (jqXHR, textStatus) {
             $("#current_song").html("Request failed: " + textStatus);
         });
     }

     function update_playback(target) {

     }
     
     function process_foobar(np_data){
         fb2k_data = JSON.parse(np_data);
         var volume_percentage = eval(100 + (fb2k_data.volume / 35 * 100));
         var playback_percentage = eval(100 - (fb2k_data.playback_time / fb2k_data.length *100));
          var html_info="<div id='notice' class='ui-state-highlight' style='width:1350px;'>" +
            "<form action='p2insert.php' method='post'>" +
            "<div class=\"grid\">" +
            "<div class='col-1-8'><img src=\"../images/foobar2000.png\" width=\"50px;\" alt=\"foobar2000\" title=\"" +
            fb2k_data.version +
            "\"/></div>" +
            "<div class='col-1-8'><p>Volume</p><progress value=\"" +
            volume_percentage +
            "\" max=\"100\" id=\"volume\">"+volume_percentage +"&perc;</progress><span style=\"float:left\">Playback:</span>";
            if(fb2k_data.status=="playing"){
                html_info += "<span style=\"float:left\" title=\"Playing...\"class='ui-icon ui-icon-play'></span>";
            }
            else if(fb2k_data.status=="paused"){
                html_info += "<span style=\"float:left\" title=\"Paused...\" class='ui-icon ui-icon-pause'></span>";
            }
            else if(fb2k_data.status=="stopped"){
                html_info += "<span style=\"float:left\" title=\"Stopped...\" class='ui-icon ui-icon-stop'></span>";
            }
            else{
                html_info += "<span style=\"float:left\" class='ui-icon ui-icon-alert'></span><span style=\"float:left\">error:"+fb2k_data.status+"</span>";
            }
            html_info += "<progress value=\"" +
            playback_percentage +
            "\" max=\"100\" id=\"volume\">"+playback_percentage +"&perc;</progress>"+
            /*"<p>Status:</p>"+
            fb2k_data.status +*/
            "</div>" +
            "<div class='col-1-8'><p>Title</p><input type='text' readonly name='title_read' id='title003' value='" + fb2k_data.title + "' /></div>" +
            "<div class='col-1-8'><p>Artist</p><input type='text' readonly name='artist_read' id='artist003' value='";
          if (fb2k_data.track_artist != undefined) {
              html_info += fb2k_data.artist;
          }
          else {
              html_info += fb2k_data.album_artist;
          }
            html_info += "' /></div>" +
            "<div class='col-1-8'><p>Album</p><input type='text' readonly name='album_read' id='album003' value='" + fb2k_data.artist + "' /></div>" +
            "</span></div></div></form>";

          $("#info_player").html(html_info);
     }
     
        // EPV3/Switch.php
        // generate web workers to handle updating diapla
     function Display_Switch() {
        if(typeof(Worker) !== "undefined") {
            if(typeof(switch_worker) == "undefined") {
                switch_worker = new Worker("../TPSBIN/JS/Episode/switch_worker.js");
{'fraction_non_alphanumeric': 0.19493454752418896, 'fraction_numerical': 0.020204894706886738, 'mean_word_length': 2.0910290237467017, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3072101', 'n_tokens_mistral': 2307, 'n_tokens_neox': 2196, 'n_words': 338}