<commit_before>'use strict';

angular.module('websiteApp')
    .factory('Skiclubs', function($http, Server) {
        var skiclubs = [{
            id: 1,
            title: 'Les Diablerets',
            latitude: 46.3514,
            longitude: 7.1581,
        }, {
            id: 2,
            title: 'Villars',
            latitude: 46.3000,
            longitude: 7.0500,
        }, {
            id: 3,
            title: 'Leysin',
            latitude: 46.3333,
            longitude: 7.0000,
        }, ];

        return {
            get: function(callback) {
                callback(skiclubs);
            },
        };
    });<commit_msg>Added skiclubs connection to API.<commit_after>'use strict';

angular.module('websiteApp')
    .factory('Skiclubs', function($http, Server) {
        var scApi = Server.Url + 'apiv1/skiclubs/';

        return {
            get: function(callback) {
                $http.get(scApi)
                    .then(function(res) {
                        callback(res.data);
                    }, Server.errorHandler);
            },
        };
    });
{'fraction_non_alphanumeric': 0.13193812556869883, 'fraction_numerical': 0.03366696997270246, 'mean_word_length': 1.2964509394572026, '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': '5427349', 'n_tokens_mistral': 353, 'n_tokens_neox': 314, 'n_words': 58}