<commit_before>$(function () { 
    // load building layouts
    $('#cp3level1').css("min-height",$('#cp3level1').width());
    $('#cp3level1').svg({loadURL: 'CP3level1.svg', onLoad: mapCallback});
    $('#cp3level1').css("min-height",20);
    var svg1 = $('#cp3level1').svg('get');
    $('#cp3level2').css("min-height",$('#cp3level2').width())
    $('#cp3level2').svg({loadURL: 'CP3level2.svg', onLoad: mapCallback});
    $('#cp3level2').css("min-height",20);
    var svg2 = $('#cp3level2').svg('get');
    $('#cp3level3').css("min-height",$('#cp3level3').width())
    $('#cp3level3').svg({loadURL: 'CP3level3.svg', onLoad: mapCallback});
    $('#cp3level3').css("min-height",20);
    var svg3 = $('#cp3level3').svg('get');
    //populate the form (combo box and list for search
    $.getJSON( "../data/towerE.json","salt="+makeid(), prepareForm );
    //register handlers for the form
    $('#sel1').on('change',function(){
           // handler for the event
           console.log($("#sel1").val());
           highlightRoom($("#sel1").val());
    });<commit_msg>Better size guess for the map<commit_after>$(function () { 
    // load building layouts
    var size = window.innerHeight < $('#cp3level1').width() ? window.innerHeight : $('#cp3level1').width();
    $('#cp3level1').css("min-height",size);
    $('#cp3level1').svg({loadURL: 'CP3level1.svg', onLoad: mapCallback});
    $('#cp3level1').css("min-height",20);
    var svg1 = $('#cp3level1').svg('get');
    size = window.innerHeight < $('#cp3level2').width() ? window.innerHeight : $('#cp3level2').width();
    $('#cp3level2').css("min-height",size)
    $('#cp3level2').svg({loadURL: 'CP3level2.svg', onLoad: mapCallback});
    $('#cp3level2').css("min-height",20);
    var svg2 = $('#cp3level2').svg('get');
    size = window.innerHeight < $('#cp3level3').width() ? window.innerHeight : $('#cp3level3').width();
    $('#cp3level3').css("min-height",size)
    $('#cp3level3').svg({loadURL: 'CP3level3.svg', onLoad: mapCallback});
    $('#cp3level3').css("min-height",20);
    var svg3 = $('#cp3level3').svg('get');
    //populate the form (combo box and list for search
    $.getJSON( "../data/towerE.json","salt="+makeid(), prepareForm );
    //register handlers for the form
    $('#sel1').on('change',function(){
           // handler for the event
           console.log($("#sel1").val());
           highlightRoom($("#sel1").val());
    });
{'fraction_non_alphanumeric': 0.253217102532171, 'fraction_numerical': 0.04234122042341221, 'mean_word_length': 4.052410901467505, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4571747', 'n_tokens_mistral': 807, 'n_tokens_neox': 816, 'n_words': 131}