<commit_before>﻿(function() {

    function asNormalPromise($q, httpPromise) {
        var deferred = $q.defer();
        httpPromise
            .success(function (data) {
                deferred.resolve(data);
            }).error(function (data, status, headers) {
                deferred.reject({status: status, headers: headers, data: data});
            });
        return deferred.promise;
    }

    angular.module('catalinker.vocabulary', [])
        .constant('ontologyUri', 'http://192.168.50.12:8005/ontology')
        .factory('ontologyFactory', ['$q', '$http', 'ontologyUri', function($q, $http, ontologyUri) {<commit_msg>Move function to reduce scope.<commit_after>﻿(function() {

    angular.module('catalinker.vocabulary', [])
        .constant('ontologyUri', 'http://192.168.50.12:8005/ontology')
        .factory('ontologyFactory', ['$q', '$http', 'ontologyUri', function($q, $http, ontologyUri) {
            function asNormalPromise($q, httpPromise) {
                var deferred = $q.defer();
                httpPromise
                    .success(function (data) {
                        deferred.resolve(data);
                    }).error(function (data, status, headers) {
                        deferred.reject({status: status, headers: headers, data: data});
                    });
                return deferred.promise;
            }

{'fraction_non_alphanumeric': 0.15076474872541878, 'fraction_numerical': 0.02039329934450109, 'mean_word_length': 2.0945945945945947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1919674', 'n_tokens_mistral': 403, 'n_tokens_neox': 363, 'n_words': 70}