<commit_before><commit_msg>Added allosphere specific script.<commit_after>// Allosphere integration code.

if(IV.getQuery("allosphere") == "true") {

$("body").addClass("allosphere");
window.isAllosphere = true;

$(window).load(function() {
    IV.set("visible-guide", false);
    IV.set("visible-grid", false);
    IV.set("tools:current", "Move");
    window.hostCall('{"f":"load", "id": 1 }');
});

IV.allosphere = { };
IV.allosphere.F = { };

IV.allosphere.F['echo'] = function(params) {
    return { "content" : params.content };
};

IV.allosphere.F['initialize'] = function() {
};

IV.allosphere.F['load'] = function(params) {
    IV.loadVisualizationById(params.id);
};

window.hostCall = function(params) {
    params = JSON.parse(params);
    return JSON.stringify(IV.allosphere.F[params.f](params));
};

}
{'fraction_non_alphanumeric': 0.21253071253071254, 'fraction_numerical': 0.0012285012285012285, 'mean_word_length': 4.73943661971831, 'pattern_counts': {'":': 2, '<': 3, '<?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': '5264716', 'n_tokens_mistral': 289, 'n_tokens_neox': 275, 'n_words': 40}