<commit_before>'use strict';

angular.module('core').controller('ModalController', ['$scope','$modal' ,'$http', '$log','$window','$location',
  function ($scope, $modal, $http, $log, $window, $location) {

  $scope.animationsEnabled = true;

    $scope.open = function (size, id) {
      var modalInstance = $modal.open({
        animation: $scope.animationsEnabled,
        templateUrl: id,
        controller: function ($scope, $modalInstance) {
          $scope.cancel = function () {
            console.log("canceling");
            $modalInstance.dismiss('cancel');
          };

          $scope.sendMail = function(isValid) {
            $scope.error = null;

            if (!isValid) {
              $scope.$broadcast('show-errors-check-validity', 'userForm');
              return false;
            }
            var link = "mailto:<EMAIL>"
                     + "?subject=" + $scope.message.user + " is concerned!"
                     + "&body=" + $scope.message.text;
            window.location.href = link;
          };
        },
        size: size
      });
    };
  }
]);<commit_msg>Removed new lines that caused warnings when running grunt<commit_after>'use strict';

angular.module('core').controller('ModalController', ['$scope','$modal' ,'$http', '$log','$window','$location',
  function ($scope, $modal, $http, $log, $window, $location) {

  $scope.animationsEnabled = true;

    $scope.open = function (size, id) {
      var modalInstance = $modal.open({
        animation: $scope.animationsEnabled,
        templateUrl: id,
        controller: function ($scope, $modalInstance) {
          $scope.cancel = function () {
            console.log("canceling");
            $modalInstance.dismiss('cancel');
          };

          $scope.sendMail = function(isValid) {
            $scope.error = null;

            if (!isValid) {
              $scope.$broadcast('show-errors-check-validity', 'userForm');
              return false;
            }
            var link = "mailto:<EMAIL>" + "?subject=" + $scope.message.user + " is concerned!" + "&body=" + $scope.message.text;
            window.location.href = link;
          };
        },
        size: size
      });
    };
  }
]);
{'fraction_non_alphanumeric': 0.16470588235294117, 'fraction_numerical': 0.0, 'mean_word_length': 2.1184767277856134, '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': '3314759', 'n_tokens_mistral': 623, 'n_tokens_neox': 616, 'n_words': 122}