<commit_before>'use strict';

angular
  .module('mapProjectApp.widgets.mapRecord', [ 'adf.provider' ])
  .config(function(dashboardProvider) {

    dashboardProvider.widget('mapRecord', {
      title : 'Map Record',
      description : 'Edit module for a map record',
      templateUrl : 'js/widgets/mapRecord/mapRecord.html',
      controller : 'mapRecordWidgetCtrl',
      resolve : {},
      edit : {}
    });
  })

  .controller(
    'mapRecordWidgetCtrl',
    [
      '$scope',
      '$window',
      '$rootScope',
      '$http',
      '$routeParams',
      '$location',
      '$sce',
      '$uibModal',
      'localStorageService',
      'utilService',
      function($scope, $window, $rootScope, $http, $routeParams, $location, $sce, $uibModal,
        localStorageService, utilService) {

        // Attach an onbeforeunload function
        $window.onbeforeunload = function() {
          return "If you leave this page data may be lost!";
        }

        // ///////////////////////////////////
        // Map Record Controller Functions //
        // ///////////////////////////////////

        // this controller handles a potentially 'dirty' page
        // $rootScope.currentPageDirty = true;

        // initialize scope variables
        $scope.record = null;
        $scope.project = localStorageService.get('focusProject');
        $scope.concept = null;
        $scope.groups = null;
        $scope.entries = null;
        $scope.user = localStorageService.get('currentUser');
        $scope.role = localStorageService.get('currentRole');
        $scope.userToken = localStorageService.get('userToken');
        $scope.conversation = null;
        $scope.mapLeads = $scope.project.mapLead;
        organizeUsers($scope.mapLeads);

        $scope.returnRecipients = new Array();
        $scope.multiSelectSettings = {
          displayProp : 'name',
          scrollableHeight : '50px',
          scrollable : true,
          showCheckAll : false,
          showUncheckAll : false<commit_msg>Small fix to avoid "leave window" warning from popping up over and over.<commit_after>'use strict';

angular
  .module('mapProjectApp.widgets.mapRecord', [ 'adf.provider' ])
  .config(function(dashboardProvider) {

    dashboardProvider.widget('mapRecord', {
      title : 'Map Record',
      description : 'Edit module for a map record',
      templateUrl : 'js/widgets/mapRecord/mapRecord.html',
      controller : 'mapRecordWidgetCtrl',
      resolve : {},
      edit : {}
    });
  })

  .controller(
    'mapRecordWidgetCtrl',
    [
      '$scope',
      '$window',
      '$rootScope',
      '$http',
      '$routeParams',
      '$location',
      '$sce',
      '$uibModal',
      'localStorageService',
      'utilService',
      function($scope, $window, $rootScope, $http, $routeParams, $location, $sce, $uibModal,
        localStorageService, utilService) {

        // Attach an onbeforeunload function
        $window.onbeforeunload = function() {
          $window.onbeforeunload = null;
          return "If you leave this page data may be lost!";
        }

        // ///////////////////////////////////
        // Map Record Controller Functions //
        // ///////////////////////////////////

        // this controller handles a potentially 'dirty' page
        // $rootScope.currentPageDirty = true;

        // initialize scope variables
        $scope.record = null;
        $scope.project = localStorageService.get('focusProject');
        $scope.concept = null;
        $scope.groups = null;
        $scope.entries = null;
        $scope.user = localStorageService.get('currentUser');
        $scope.role = localStorageService.get('currentRole');
        $scope.userToken = localStorageService.get('userToken');
        $scope.conversation = null;
        $scope.mapLeads = $scope.project.mapLead;
        organizeUsers($scope.mapLeads);

        $scope.returnRecipients = new Array();
        $scope.multiSelectSettings = {
          displayProp : 'name',
          scrollableHeight : '50px',
          scrollable : true,
          showCheckAll : false,
          showUncheckAll : false
{'fraction_non_alphanumeric': 0.1568104701890451, 'fraction_numerical': 0.0009694619486185168, 'mean_word_length': 2.084454409566517, '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': '528285', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1094, 'n_words': 237}