<commit_before>$(document).ready(function(){

    // Initialize the tooltip
    $( ".osrstooltip" ).osrstooltip({
        track:true,
        open: function( event, ui ) {
              var item_id = this.id;
              var base_url = "https://www.osrsbox.com/osrsbox-db/items-json/"
              var fname = base_url + item_id + ".json"
              
              $.ajax({
                  type:'get',
                  url:fname,
                  dataType:'json',
                  success: successFunction,
                  error: errorFunction
              });
        }
    });

    $(".osrstooltip").mouseout(function(){
        // re-initializing tooltip
        $(this).attr('title','Please wait...');
        $(this).osrstooltip();
        $('.ui-osrstooltip').hide();
    });   
});

function successFunction(data) {
    var theContent = ""

    // Reusable variables
    var left = "<span class='item_left'>";
    var right = "<span class='item_right'>";
    var endSpan = "</span>";
    var aBreak = "<br/>";
    var clear = "<div class='osrstooltip-clear'></div>";

    // Construct tooltip header (item image and name)
    var id = data["id"].toString()
    var img_url = "https://www.osrsbox.com/osrsbox-db/items-icons/" + data["id"] + ".png";
    var name = data['name'];<commit_msg>Removed a couple of un-used variables in additions.js.<commit_after>$(document).ready(function(){

    // Initialize the tooltip
    $( ".osrstooltip" ).osrstooltip({
        track:true,
        open: function( event, ui ) {
              var item_id = this.id;
              var base_url = "https://www.osrsbox.com/osrsbox-db/items-json/"
              var fname = base_url + item_id + ".json"
              
              $.ajax({
                  type:'get',
                  url:fname,
                  dataType:'json',
                  success: successFunction,
                  error: errorFunction
              });
        }
    });

    $(".osrstooltip").mouseout(function(){
        // re-initializing tooltip
        $(this).attr('title','Please wait...');
        $(this).osrstooltip();
        $('.ui-osrstooltip').hide();
    });   
});

function successFunction(data) {
    var theContent = ""

    // Reusable variables
    var clear = "<div class='osrstooltip-clear'></div>";

    // Construct tooltip header (item image and name)
    var id = data["id"].toString()
    var img_url = "https://www.osrsbox.com/osrsbox-db/items-icons/" + data["id"] + ".png";
    var name = data['name'];
{'fraction_non_alphanumeric': 0.1649443561208267, 'fraction_numerical': 0.0, 'mean_word_length': 1.812290502793296, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '1727744', 'n_tokens_mistral': 763, 'n_tokens_neox': 729, 'n_words': 150}