<commit_before>function isSilverlightInstalled(){
 var isSilverlightInstalled = false;
    try{
     //check on IE
     try{
         var slControl = new ActiveXObject('AgControl.AgControl');
         isSilverlightInstalled = true;
     }
     catch (e){
         //either not installed or not IE. Check Firefox
         if ( navigator.plugins["Silverlight Plug-In"] ){
             isSilverlightInstalled = true;
         }
     }
 }
 catch (e){
     //we don’t want to leak exceptions. However, you may want
     //to add exception tracking code here.
 }
 return isSilverlightInstalled;
}
window.onload = function() {
    if (isSilverlightInstalled() == false){
      var ebs = document.getElementsByClassName('slchk');
      var no_silverlight_msg = 'Please note that your browser currently is not compatible with SPARKE (EBS Reports); therefore if you would like to make use of the EBS link you will need to ensure you are using the Staff Pages with Internet Explorer (IE).\n\nWe are currently investigating compatibility for your browser with SPARKE for future developments.';
        for (var i = 0; i < ebs.length; ++i) {
            ebs[i].setAttribute('readonly', 'readonly');
            ebs[i].onclick=function(){
              alert(no_silverlight_msg);
              return false;
            }
        }
    }
}<commit_msg>removed staff pages reference<commit_after>function isSilverlightInstalled(){
 var isSilverlightInstalled = false;
    try{
     //check on IE
     try{
         var slControl = new ActiveXObject('AgControl.AgControl');
         isSilverlightInstalled = true;
     }
     catch (e){
         //either not installed or not IE. Check Firefox
         if ( navigator.plugins["Silverlight Plug-In"] ){
             isSilverlightInstalled = true;
         }
     }
 }
 catch (e){
     //we don’t want to leak exceptions. However, you may want
     //to add exception tracking code here.
 }
 return isSilverlightInstalled;
}
;
window.onload = function() {
    if (isSilverlightInstalled() == false){
      var ebs = document.getElementsByClassName('slchk');
      var no_silverlight_msg = 'Please note that your browser currently is not compatible with SPARKE (EBS Reports); therefore if you would like to make use of the EBS link you will need to ensure you are using Leap with Internet Explorer (IE).\n\nWe are currently investigating compatibility for your browser with SPARKE for future developments.';
        for (var i = 0; i < ebs.length; ++i) {
            ebs[i].setAttribute('readonly', 'readonly');
            ebs[i].onclick=function(){
              alert(no_silverlight_msg);
              return false;
            }
        }
    }
}
;
{'fraction_non_alphanumeric': 0.09317927692881103, 'fraction_numerical': 0.0007454342154304882, 'mean_word_length': 2.5691489361702127, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3375256', 'n_tokens_mistral': 756, 'n_tokens_neox': 724, 'n_words': 253}