<commit_before>angular.module('zeus', [
  'zeus.landing',
  'zeus.results',
  'zeus.details',
  'zeus.services',
  'zeus.user',
  'auth0.lock',
  'angular-jwt',
  'ngRoute'
])
.controller('zeusController', function($scope, $location, authService, $http, User) {
  $scope.searchQuery = '';
  $scope.loggedIn = false;
  $scope.search = function(search) {
    if (search.length < 1) {
      return;
    }
    $location.path('/results/' + search + '/1');
    $scope.searchQuery = '';
  };

  $scope.login = authService.login;
  $scope.logout = function(){
    authService.logout();
    $scope.loggedIn = false;
  };



    //Gets user profile when logged in.
  authService.getProfileDeferred().then(function (profile) {
    console.log(profile);
    $scope.profile = profile;
    if(profile){
      User.checkUser(profile);
      $scope.loggedIn = true;
    }
  });
})

.config(function($routeProvider, $locationProvider, lockProvider, jwtOptionsProvider) {
  $routeProvider
    .when('/', {
      templateUrl: 'app/landing/landing.html',
      controller: 'LandingController'
    })
    .when('/results/:search/:page', {
      templateUrl: 'app/results/results.html',
      controller: 'ResultsController'
    })
    .when('/:type/:id', {
      templateUrl: 'app/details/details.html',
      controller: 'DetailsController'
    })
    .when('/user', {
      templateUrl: 'app/user/user.html',
      controller: 'UserController'
    })
    .otherwise('/');

  //Auth 0 account info
  lockProvider.init({
    clientID: 'GaWAS7TybB6Fqwa9uBw2SDVMPRGSAVDK',
    domain: 'hughes89.auth0.com'<commit_msg>- Adds zeus.account dependency to app.js<commit_after>angular.module('zeus', [
  'zeus.landing',
  'zeus.results',
  'zeus.details',
  'zeus.services',
  'zeus.user',
  'zeus.account',
  'auth0.lock',
  'angular-jwt',
  'ngRoute'
])
.controller('zeusController', function($scope, $location, authService, $http, User) {
  $scope.searchQuery = '';
  $scope.loggedIn = false;
  $scope.search = function(search) {
    if (search.length < 1) {
      return;
    }
    $location.path('/results/' + search + '/1');
    $scope.searchQuery = '';
  };

  $scope.login = authService.login;
  $scope.logout = function(){
    authService.logout();
    $scope.loggedIn = false;
  };



    //Gets user profile when logged in.
  authService.getProfileDeferred().then(function (profile) {
    console.log(profile);
    $scope.profile = profile;
    if (profile) {
      User.checkUser(profile);
      $scope.loggedIn = true;
    }
  });
})

.config(function($routeProvider, $locationProvider, lockProvider, jwtOptionsProvider) {
  $routeProvider
    .when('/', {
      templateUrl: 'app/landing/landing.html',
      controller: 'LandingController'
    })
    .when('/results/:search/:page', {
      templateUrl: 'app/results/results.html',
      controller: 'ResultsController'
    })
    .when('/:type/:id', {
      templateUrl: 'app/details/details.html',
      controller: 'DetailsController'
    })
    .when('/user', {
      templateUrl: 'app/user/user.html',
      controller: 'UserController'
    })
    .otherwise('/');

  //Auth 0 account info
  lockProvider.init({
    clientID: 'GaWAS7TybB6Fqwa9uBw2SDVMPRGSAVDK',
    domain: 'hughes89.auth0.com'
{'fraction_non_alphanumeric': 0.17094281298299846, 'fraction_numerical': 0.0068006182380216385, 'mean_word_length': 3.154043645699615, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6565773', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1103, 'n_words': 176}