<commit_before>(function () {
    angular
        .module('dpSearchResults')
        .factory('uriStripper', uriStripperFactory);

    uriStripperFactory.$inject = ['sharedConfig'];

    function uriStripperFactory (sharedConfig) {
        return {
            stripUri
        };

        function stripUri (uri) {
            // remove first occurrence of API_ROOT
            if (uri) {
                return uri.replace(sharedConfig.API_ROOT, '');
            }
            return uri;
        }
    }
})();<commit_msg>URI stripper always expecting string<commit_after>(function () {
    angular
        .module('dpSearchResults')
        .factory('uriStripper', uriStripperFactory);

    uriStripperFactory.$inject = ['sharedConfig'];

    function uriStripperFactory (sharedConfig) {
        return {
            stripUri
        };

        function stripUri (uri) {
            // remove first occurrence of API_ROOT
            return uri.replace(sharedConfig.API_ROOT, '');
        }
    }
})();
{'fraction_non_alphanumeric': 0.110337972166998, 'fraction_numerical': 0.0, 'mean_word_length': 1.9881305637982196, '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': '532032', 'n_tokens_mistral': 264, 'n_tokens_neox': 262, 'n_words': 52}