<commit_before>/*
 * Copyright 2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

define([
    'find/app/configuration'
], function(configuration) {
    "use strict";
    
    return {
        addSpecialUrlPrefix: function (contentType, url) {
            //noinspection JSUnresolvedVariable
            const uiCustomization = configuration().uiCustomization;

            var prefix = '';
            //noinspection JSUnresolvedVariable
            if (uiCustomization && uiCustomization.specialUrlPrefixes && contentType) {
                //noinspection JSUnresolvedVariable
                prefix = uiCustomization.specialUrlPrefixes[contentType];
            }
            
            return prefix + url;<commit_msg>FIND-287 As a user I expect to be able to open a result directly into the application even if they are MS Office files :: remove const as not yet supported by our ui tests [minor]<commit_after>/*
 * Copyright 2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

define([
    'find/app/configuration'
], function(configuration) {
    "use strict";
    
    return {
        addSpecialUrlPrefix: function (contentType, url) {
            //noinspection JSUnresolvedVariable
            var uiCustomization = configuration().uiCustomization;

            var prefix = '';
            //noinspection JSUnresolvedVariable
            if (uiCustomization && uiCustomization.specialUrlPrefixes && contentType) {
                //noinspection JSUnresolvedVariable
                prefix = uiCustomization.specialUrlPrefixes[contentType];
            }
            
            return prefix + url;
{'fraction_non_alphanumeric': 0.07854821235102925, 'fraction_numerical': 0.005958829902491874, 'mean_word_length': 2.4783427495291903, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6986631', 'n_tokens_mistral': 453, 'n_tokens_neox': 432, 'n_words': 145}