<commit_before>/************************************************
 * AUTHOR:         <NAME>             *
 * CREATION_DATE:  21/11/16                      *
 * EMAIL:          <EMAIL>   *
 * LICENSE:        Apache 2.0                   *
 ***********************************************/

var app = angular.module('facilitation');
app.service('CatalogueDataProvider', function ($http) {

    delete $http.defaults.headers.common['X-Requested-With'];
    this.getWorkshops = function(callbackFunc) {
        $http({
            method: 'GET',
            url: 'http://localhost:3000/api/v1/catalogue'
        }).success(function(data){
            // With the data succesfully returned, call our callback
            callbackFunc(data);
        }).error(function(){
            alert("error : echec de la récupération du catalogue !");
        });
    };


    delete $http.defaults.headers.common['X-Requested-With'];
    this.getWorkshop = function(idWorkshop, callbackFunc) {
        $http({
            method: 'GET',
            url: 'http://localhost:3000/api/v1/catalogue/'+idWorkshop
        }).success(function(data) {
            callbackFunc(data)
        }).error(function() {
            alert("error : workshop inexistant !")
        })
    };
});
<commit_msg>[FIX] Path générique pour heroku<commit_after>/************************************************
 * AUTHOR:         <NAME>             *
 * CREATION_DATE:  21/11/16                      *
 * EMAIL:          <EMAIL>   *
 * LICENSE:        Apache 2.0                   *
 ***********************************************/

var app = angular.module('facilitation');
app.service('CatalogueDataProvider', function ($http) {

    delete $http.defaults.headers.common['X-Requested-With'];
    this.getWorkshops = function(callbackFunc) {
        $http({
            method: 'GET',
            url: '/api/v1/catalogue'
        }).success(function(data){
            // With the data succesfully returned, call our callback
            callbackFunc(data);
        }).error(function(){
            alert("error : echec de la récupération du catalogue !");
        });
    };


    delete $http.defaults.headers.common['X-Requested-With'];
    this.getWorkshop = function(idWorkshop, callbackFunc) {
        $http({
            method: 'GET',
            url: '/api/v1/catalogue/'+idWorkshop
        }).success(function(data) {
            callbackFunc(data)
        }).error(function() {
            alert("error : workshop inexistant !")
        })
    };
});

{'fraction_non_alphanumeric': 0.20785402618008728, 'fraction_numerical': 0.011106703689012296, 'mean_word_length': 2.1097410604192355, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '126906', 'n_tokens_mistral': 700, 'n_tokens_neox': 669, 'n_words': 122}