<commit_before>(function () {
    'use strict';

    angular
      .module('password.data')
      .factory('dataService', dataService);

    function dataService($http, DATA_API_BASE_URL) {
        var service = {
            get: get,
            put: put,
            post: post,
            delete: remove,
            baseUrl: baseUrl
        };

        activate();

        return service;

        //////////////////////////////////////////////////////////////////

        function activate() {
        }

        function get(url, config) {
            return $http.get(buildFullyQualifiedUrl(url), config);
        }

        function put(url, data) {
            return $http.put(buildFullyQualifiedUrl(url),
                             data);
        }

        function post(url, data) {
            return $http.post(buildFullyQualifiedUrl(url),
                              data);
        }

        function remove(url) {
            return $http.delete(buildFullyQualifiedUrl(url));
        }

        function baseUrl() {
            return DATA_API_BASE_URL;
        }

        function buildFullyQualifiedUrl(url) {
            if (isNotFullyQualifiedAlready(url)) {
                return DATA_API_BASE_URL + url;
            }

            return url;
        }

        function isNotFullyQualifiedAlready(url) {
            return url.indexOf('//') === -1;
        }
    }
})();<commit_msg>going with wider line lengths now for readability<commit_after>(function () {
    'use strict';

    angular
      .module('password.data')
      .factory('dataService', dataService);

    function dataService($http, DATA_API_BASE_URL) {
        var service = {
            get: get,
            put: put,
            post: post,
            delete: remove,
            baseUrl: baseUrl
        };

        activate();

        return service;

        //////////////////////////////////////////////////////////////////

        function activate() {
        }

        function get(url, config) {
            return $http.get(buildFullyQualifiedUrl(url), config);
        }

        function put(url, data) {
            return $http.put(buildFullyQualifiedUrl(url), data);
        }

        function post(url, data) {
            return $http.post(buildFullyQualifiedUrl(url), data);
        }

        function remove(url) {
            return $http.delete(buildFullyQualifiedUrl(url));
        }

        function baseUrl() {
            return DATA_API_BASE_URL;
        }

        function buildFullyQualifiedUrl(url) {
            return isNotFullyQualifiedAlready(url) ? DATA_API_BASE_URL + url : url;
        }

        function isNotFullyQualifiedAlready(url) {
            return url.indexOf('//') === -1;
        }
    }
})();
{'fraction_non_alphanumeric': 0.14773139745916516, 'fraction_numerical': 0.0007259528130671506, 'mean_word_length': 1.3840830449826989, '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': '6309780', 'n_tokens_mistral': 739, 'n_tokens_neox': 706, 'n_words': 139}