<commit_before>// data/adapter/json/factory.js
(function() {

    var XML3DJSONFormatHandler = function() {
        XML3D.base.JSONFormatHandler.call(this);
    }
    XML3D.createClass(XML3DJSONFormatHandler, XML3D.base.JSONFormatHandler);
    var xml3dJsonFormatHandler = new XML3DJSONFormatHandler();
    XML3D.base.registerFormat(xml3dJsonFormatHandler);


    var empty = function() {};
<commit_msg>Added support check for XML3D JSON Format.<commit_after>// data/adapter/json/factory.js
(function() {

    var XML3DJSONFormatHandler = function() {
        XML3D.base.JSONFormatHandler.call(this);
    }
    XML3D.createClass(XML3DJSONFormatHandler, XML3D.base.JSONFormatHandler);

    XML3DJSONFormatHandler.prototype.isFormatSupported = function(response, responseType, mimetype) {
        return mimetype === "application/json" && response.format == "xml3d-json" && response.version == "0.4.0";
    }

    var xml3dJsonFormatHandler = new XML3DJSONFormatHandler();
    XML3D.base.registerFormat(xml3dJsonFormatHandler);


    var empty = function() {};

{'fraction_non_alphanumeric': 0.11898016997167139, 'fraction_numerical': 0.0226628895184136, 'mean_word_length': 4.326633165829146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '5428258', 'n_tokens_mistral': 335, 'n_tokens_neox': 324, 'n_words': 51}