<commit_before>
var uriMatches = window.location.search.match("[?&]?app-uri\=(.*)\&?");
var pathMatches = window.location.search.match("[?&]?app-path\=(.*)\&?");
if (!uriMatches && !pathMatches) {
     throw Error("You must specify an application URI or path (same server) using the app-uri or app-path query parameters, like '...?app-uri=http://myserver.com/myapp/rest/' or '...?app-path=/myapp/rest/'.");
}
var applicationUrl = uriMatches ? uriMatches[1] : (window.location.origin + pathMatches[1]);

var toAppTypeName = function(property) {
    if (property.typeRef.kind === 'Primitive') {
	    switch (property.typeRef.typeName) {
	        case 'String' : return 'string';
	        case 'Memo' : return 'text';
	        case 'Integer' : return 'number';
	        case 'Double' : return 'number';
	        case 'Date' : return 'date';
	        case 'Boolean' : return 'boolean';
	    }<commit_msg>normalizing app URL<commit_after>
var uriMatches = window.location.search.match("[?&]?app-uri\=(.*)\&?");
var pathMatches = window.location.search.match("[?&]?app-path\=(.*)\&?");
if (!uriMatches && !pathMatches) {
     throw Error("You must specify an application URI or path (same server) using the app-uri or app-path query parameters, like '...?app-uri=http://myserver.com/myapp/rest/' or '...?app-path=/myapp/rest/'.");
}
var applicationUrl = uriMatches ? uriMatches[1] : (window.location.origin + pathMatches[1]);
if (!applicationUrl.endsWith('/')) applicationUrl = applicationUrl + '/';

var toAppTypeName = function(property) {
    if (property.typeRef.kind === 'Primitive') {
	    switch (property.typeRef.typeName) {
	        case 'String' : return 'string';
	        case 'Memo' : return 'text';
	        case 'Integer' : return 'number';
	        case 'Double' : return 'number';
	        case 'Date' : return 'date';
	        case 'Boolean' : return 'boolean';
	    }
{'fraction_non_alphanumeric': 0.18351063829787234, 'fraction_numerical': 0.002127659574468085, 'mean_word_length': 3.467933491686461, 'pattern_counts': {'":': 0, '<': 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': '320213', 'n_tokens_mistral': 608, 'n_tokens_neox': 590, 'n_words': 146}