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

    /**
     * Module that provides geocoding through OSM Nominatim
     *
     * @type {module}
     */
    var module = angular.module('veganaut.geocode', []);

    var BASE_URL = 'http://nominatim.openstreetmap.org';

    /**
     * Represents a geocoding results
     * @param {{}} data JSON returned by the geocoding service
     * @constructor
     */
    var GeocodeResult = function(data) {
        this.address = data.address || {};
        this.type = data.type;

        // Parse latitude
        if (angular.isString(data.lat)) {
            this.lat = parseFloat(data.lat);
        }

        // Longitude is given as 'lon'
        if (angular.isString(data.lon)) {
            this.lng = parseFloat(data.lon);
        }<commit_msg>Making Nominatim base URL protocol agnostic. Refs #51<commit_after>(function() {
    'use strict';

    /**
     * Module that provides geocoding through OSM Nominatim
     *
     * @type {module}
     */
    var module = angular.module('veganaut.geocode', []);

    var BASE_URL = '//nominatim.openstreetmap.org';

    /**
     * Represents a geocoding results
     * @param {{}} data JSON returned by the geocoding service
     * @constructor
     */
    var GeocodeResult = function(data) {
        this.address = data.address || {};
        this.type = data.type;

        // Parse latitude
        if (angular.isString(data.lat)) {
            this.lat = parseFloat(data.lat);
        }

        // Longitude is given as 'lon'
        if (angular.isString(data.lon)) {
            this.lng = parseFloat(data.lon);
        }
{'fraction_non_alphanumeric': 0.13016656384947564, 'fraction_numerical': 0.0012338062924120913, 'mean_word_length': 2.02048417132216, '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': '1862169', 'n_tokens_mistral': 509, 'n_tokens_neox': 490, 'n_words': 113}