<commit_before>'use strict';
angular.module('Trendicity')

.controller('IntroCtrl', function($scope, $state, $ionicSlideBoxDelegate, $ionicSideMenuDelegate, $ionicHistory, localStorageService, GeolocationService) {

    //** Settings some default scope variables.
    $scope.fetchingPosition = false;
    $scope.noPosition = false;

  // Clear history since this might have been a forced redirect
  $ionicHistory.clearHistory();

  $scope.$on('$ionicView.beforeEnter', function() {
    $ionicSlideBoxDelegate.refresh();
  });

  // Mark intro as seen
  localStorageService.set('seenIntro', true);

  // Called to navigate to the main app
  $scope.startApp = function() {
    $state.go('app.home.map');
  };<commit_msg>correct issue with using wrong function to update slide box<commit_after>'use strict';
angular.module('Trendicity')

.controller('IntroCtrl', function($scope, $state, $timeout, $ionicSlideBoxDelegate, $ionicSideMenuDelegate,
                                  $ionicHistory, localStorageService, GeolocationService) {

    //** Settings some default scope variables.
    $scope.fetchingPosition = false;
    $scope.noPosition = false;

  $scope.$on('$ionicView.beforeEnter', function() {
    // Clear history since this might have been a forced redirect
    $ionicHistory.clearHistory();
    // Fix issue when coming from map
    $ionicSlideBoxDelegate.update();
  });

  // Mark intro as seen
  localStorageService.set('seenIntro', true);

  // Called to navigate to the main app
  $scope.startApp = function() {
    $state.go('app.home.map');
  };
{'fraction_non_alphanumeric': 0.1277139208173691, 'fraction_numerical': 0.0, 'mean_word_length': 3.9746031746031747, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6690624', 'n_tokens_mistral': 459, 'n_tokens_neox': 434, 'n_words': 116}