<commit_before>'use strict';

angular.module('myApp.view1', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/view1', {
    templateUrl: 'view1/view1.html',
    controller: 'View1Ctrl'
  });
}])

.controller('View1Ctrl', ['$scope','$http', function($scope, $http, myUserService) {
    $scope.title = 'Список юзеров';
    $http.get('./api/users.json').success(function (data, status, headers, config) {
        $scope.users = data;
    });
}]);<commit_msg>service template<commit_after>'use strict';

angular.module('myApp.view1', ['ngRoute'])

.config(['$routeProvider', function($routeProvider) {
  $routeProvider.when('/view1', {
    templateUrl: 'view1/view1.html',
    controller: 'View1Ctrl'
  });
}])

.service('myUserService', function () {
    let self = this;
    this.myText = '';
    this.getLength = function () {
        return self.myText.length;
    }
})

.controller('View1Ctrl', ['$scope','$http', 'myUserService', function($scope, $http, myUserService) {
    $scope.title = 'Список юзеров';
    $http.get('./api/users.json').success(function (data, status, headers, config) {
        $scope.users = data;
    });
    console.log(myUserService);
}]);
{'fraction_non_alphanumeric': 0.20430107526881722, 'fraction_numerical': 0.009925558312655087, 'mean_word_length': 4.238095238095238, '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': '4181501', 'n_tokens_mistral': 405, 'n_tokens_neox': 408, 'n_words': 65}