<commit_before>angular.module('flixview', [
  'flixview.landing',
  'flixview.results',
  'flixview.details',
  'flixview.services',
  'flixview.user',
  'angular-jwt',
  'auth0.lock',
  'ngRoute'
])
.controller('flixviewController', 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) {
      $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('/');

    // Auth0 account info
    lockProvider.init({
      clientID: 'kTgg4bCwSm5p7eDUiqLpc1AVrEG3hcM3',
      domain: 'jkennedy31613.auth0.com'
    });
    // removes # from url
    $locationProvider.html5Mode(true);

    jwtOptionsProvider.config({
      tokenGetter: ['options', function(options) {
        if (options && options.url.substr(options.url.length - 5) == '.html') {
          return null;
        }
        return localStorage.getItem('id_token');
      }],
      whiteListDomains: ['localhost'],
      unauuthenticatedRedirectPath: '/login'<commit_msg>(fix) errors, with authenticating<commit_after>angular.module('flixview', [
  'flixview.landing',
  'flixview.results',
  'flixview.details',
  'flixview.services',
  'flixview.user',
  'angular-jwt',
  'auth0.lock',
  'ngRoute'
])
.controller('flixviewController', 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) {
      $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('/');

    // Auth0 account info
    lockProvider.init({
      clientID: 'kTgg4bCwSm5p7eDUiqLpc1AVrEG3hcM3',
      domain: 'jkennedy31613.<EMAIL>'
    });
    // removes # from url
    $locationProvider.html5Mode(true);

    jwtOptionsProvider.config({
      tokenGetter: ['options', function(options) {
        if (options && options.url.substr(options.url.length - 5) == '.html') {
          return null;
        }
        return localStorage.getItem('id_token');
      }],
      whiteListDomains: ['localhost'],
      unauthenticatedRedirectPath: '/login'
{'fraction_non_alphanumeric': 0.16140865737344093, 'fraction_numerical': 0.008559550012227928, 'mean_word_length': 2.9516908212560384, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '2593376', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1314, 'n_words': 212}