<commit_before>(function () {
'use strict';

  angular.module('hutmap.controllers').

  controller('HutFormCtrl', 
    ['$scope', '$modal', '$cookies', '$log',
    function($scope, $modal, $cookies, $log) {

    $scope.suggestHut = function() {

      var modal = $modal.open({
        templateUrl: 'hut_modal.html',
        controller: 'HutFormInstanceCtrl',
        keyboard: false,
        resolve: {
          hutFormUrl: function() {
            return '/forms/hut/new/';
          },
          header: function() {
            return 'Suggest new hut';
          }
        }
      });

      modal.result.then(function (hut) {
        $scope.addAlert('success', "Successfully submitted suggestion for " + hut.name + "!");
      }, function (reason) {
        $log.info(reason, 'suggestion dismissed at: ' + new Date());
      });
    };

    $scope.editHut = function (hut) {

      var modal = $modal.open({
        templateUrl: 'hut_modal.html',
        controller: 'HutFormInstanceCtrl',
        keyboard: false,
        resolve: {
          hutFormUrl: function() {
            return '/forms/hut/' + hut.id + '/';
          },
          header: function() {
            return 'Edit ' + hut.name;
          }
        }
      });

      modal.result.then(function (hut) {
        $scope.addAlert('success', "Successfully submitted edit for " + hut.name + "!");
      }, function (reason) {
        $log.info(reason, 'edit dismissed at: ' + new Date());
      });
    };

  }]);

})();<commit_msg>Cleaned up logging message.<commit_after>(function () {
'use strict';

  angular.module('hutmap.controllers').

  controller('HutFormCtrl', 
    ['$scope', '$modal', '$cookies', '$log',
    function($scope, $modal, $cookies, $log) {

    $scope.suggestHut = function() {

      var modal = $modal.open({
        templateUrl: 'hut_modal.html',
        controller: 'HutFormInstanceCtrl',
        keyboard: false,
        resolve: {
          hutFormUrl: function() {
            return '/forms/hut/new/';
          },
          header: function() {
            return 'Suggest new hut';
          }
        }
      });

      modal.result.then(function (hut) {
        $scope.addAlert('success', "Successfully submitted suggestion for " + hut.name + "!");
      }, function (reason) {
        $log.info('suggestion dismissed, reason: ', reason);
      });
    };

    $scope.editHut = function (hut) {

      var modal = $modal.open({
        templateUrl: 'hut_modal.html',
        controller: 'HutFormInstanceCtrl',
        keyboard: false,
        resolve: {
          hutFormUrl: function() {
            return '/forms/hut/' + hut.id + '/';
          },
          header: function() {
            return 'Edit ' + hut.name;
          }
        }
      });

      modal.result.then(function (hut) {
        $scope.addAlert('success', "Successfully submitted edit for " + hut.name + "!");
      }, function (reason) {
        $log.info('edit dismissed, reason: ', reason);
      });
    };

  }]);

})();
{'fraction_non_alphanumeric': 0.16511627906976745, 'fraction_numerical': 0.0, 'mean_word_length': 1.949069539666993, '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': '5661882', 'n_tokens_mistral': 921, 'n_tokens_neox': 888, 'n_words': 179}