<commit_before>var AuthDep = [
  '$q',
  'Server',
  function($q, Server) {
    var deferred = $q.defer();
    Server.auth().then(function() {
      deferred.resolve({
        token: Server.app.get('token'),
        user: Server.app.get('user')
      });
    }, function() {
      console.log(err);
      deferred.reject('not logged in');
    });
    return deferred.promise;
  }
];

angular.module('domegis')
.config([
  '$stateProvider',
  '$urlRouterProvider',
  '$locationProvider',
  '$httpProvider',
  function($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {

    $locationProvider.html5Mode({
      enabled: false,
      requireBase: false
    });
    $locationProvider.hashPrefix('!');

    $stateProvider
    .state('home', {
      url: '/',
      controller: 'QueryCtrl',
      templateUrl: '/views/query.html',
      resolve: {
        Content: [
          'esriService',
          function(Esri) {
            return Esri.getContent(
              '',
              {
                type: 'Feature Service',
              },
              {
                sortField: 'modified',
                sortOrder: 'desc'
              }
            );
          }
        ],
        Synced: [
          'Server',
          function(Server) {
            return Server.find(Server.service('contents'), {
              query: {
                $limit: 100
              }
            });
          }
        ],
        Derived: [
          'Server',
          function(Server) {
            return Server.find(Server.service('layers'), {
              query: {
                type: 'derived',
                $limit: 100
              }
            });
          }
        ]
      }
    })
    .state('login', {
      url: '/login/',
      templateUrl: '/views/login.html'
    })
    .state('users', {
      url: '/users/',
      templateUrl: '/views/user/index.html',
      controller: 'UserCtrl',
      resolve: {
        Auth: AuthDep,
        Users: [
          'Auth',
          'Server',
          function(Auth, Server) {
            return Server.find(Server.service('users'));
          }
        ]
      }
    })
    .state('usersEdit', {
      url: '/users/edit/?id',
      templateUrl: '/views/user/edit.html',
      controller: 'UserEditCtrl',<commit_msg>fix user limit<commit_after>var AuthDep = [
  '$q',
  'Server',
  function($q, Server) {
    var deferred = $q.defer();
    Server.auth().then(function() {
      deferred.resolve({
        token: Server.app.get('token'),
        user: Server.app.get('user')
      });
    }, function() {
      console.log(err);
      deferred.reject('not logged in');
    });
    return deferred.promise;
  }
];

angular.module('domegis')
.config([
  '$stateProvider',
  '$urlRouterProvider',
  '$locationProvider',
  '$httpProvider',
  function($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {

    $locationProvider.html5Mode({
      enabled: false,
      requireBase: false
    });
    $locationProvider.hashPrefix('!');

    $stateProvider
    .state('home', {
      url: '/',
      controller: 'QueryCtrl',
      templateUrl: '/views/query.html',
      resolve: {
        Content: [
          'esriService',
          function(Esri) {
            return Esri.getContent(
              '',
              {
                type: 'Feature Service',
              },
              {
                sortField: 'modified',
                sortOrder: 'desc'
              }
            );
          }
        ],
        Synced: [
          'Server',
          function(Server) {
            return Server.find(Server.service('contents'), {
              query: {
                $limit: 100
              }
            });
          }
        ],
        Derived: [
          'Server',
          function(Server) {
            return Server.find(Server.service('layers'), {
              query: {
                type: 'derived',
                $limit: 100
              }
            });
          }
        ]
      }
    })
    .state('login', {
      url: '/login/',
      templateUrl: '/views/login.html'
    })
    .state('users', {
      url: '/users/',
      templateUrl: '/views/user/index.html',
      controller: 'UserCtrl',
      resolve: {
        Auth: AuthDep,
        Users: [
          'Auth',
          'Server',
          function(Auth, Server) {
            return Server.find(Server.service('users'), {
              query: {
                $limit: 100
              }
            });
          }
        ]
      }
    })
    .state('usersEdit', {
      url: '/users/edit/?id',
      templateUrl: '/views/user/edit.html',
      controller: 'UserEditCtrl',
{'fraction_non_alphanumeric': 0.15045949989313956, 'fraction_numerical': 0.0036332549690104724, 'mean_word_length': 1.4, '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': '3056151', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1304, 'n_words': 214}