<commit_before>/**
 * Angular service factory method for Templates.
 *
 * @author <NAME>
 */
angular.module('EscreeningDashboardApp.services.template', ['restangular'])
    .factory('TemplateService', ['Restangular', 'TemplateType', function (Restangular, TemplateType){
        "use strict";

        var job = Restangular.service("services/templateTypes");
        //var job = Restangular.all('services/templateTypes');

        Restangular.extendModel("services/templateTypes", function(model) {
            return angular.extend(model, TemplateType);
        });
        
        // Expose the public TemplateService API to the rest of the application.
        return job;
    }]);
        <commit_msg>#642 - Implemented the Restangular framework for the Templates editor; but still need to handle error message.<commit_after>/**
 * Angular service factory method for Templates.
 *
 * @author <NAME>
 */
angular.module('EscreeningDashboardApp.services.template', ['restangular'])
    .factory('TemplateService', ['Restangular', 'TemplateType', function (Restangular, TemplateType){
        "use strict";

        var service = Restangular.service("services/templateTypes");

        Restangular.extendModel("services/templateTypes", function(model) {
            return angular.extend(model, TemplateType);
        });
        
        // Expose the public TemplateService API to the rest of the application.
        return service;
    }]);
        
{'fraction_non_alphanumeric': 0.11829436038514443, 'fraction_numerical': 0.0020632737276478678, 'mean_word_length': 3.217391304347826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4828101', 'n_tokens_mistral': 362, 'n_tokens_neox': 355, 'n_words': 98}