<commit_before>// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('starter', [
    'ionic',
    'ionic.service.core',
    'ionic.service.analytics',
    'starter.controllers',
    'starter.services',
    'controller.purchase',
    'service.twads',
    'service.push',
    'ionic-timepicker',
    'ngCordova'
])
    .run(function($ionicPlatform, $ionicAnalytics, Util, $rootScope, $location) {
        $ionicPlatform.ready(function() {

            if (navigator.splashscreen) {
                navigator.splashscreen.hide();
            }

            if (Util.isDebug()) {
                Util.ga.debugMode();
            } else {
                $ionicAnalytics.register();
            }

            if (ionic.Platform.isIOS()) {
                Util.ga.startTrackerWithId('[GOOGLE_ANALYTICS_IOS_KEY]');
                if (window.applewatch) {
                    applewatch.init(function () {
                        console.log('Succeeded to initialize for apple-watch');
                    }, function (err) {
                        console.log('Failed to initialize apple-watch', err);
                    }, 'group.net.wizardfactory.todayweather');
                }
            } else if (ionic.Platform.isAndroid()) {
                Util.ga.startTrackerWithId('[GOOGLE_ANALYTICS_ANDROID_KEY]');
            }

            // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
            // for form inputs)
            if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
                cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
                cordova.plugins.Keyboard.disableScroll(true);

            }
            if (window.StatusBar) {
                StatusBar.overlaysWebView(false);
                StatusBar.backgroundColorByHexString('#0288D1');
            }
        });

        $rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState) {
            if (fromState.name === '' && toState.name === 'tab.forecast') {
                if(typeof(Storage) !== 'undefined') {
                    var guideVersion = localStorage.getItem('guideVersion');
                    if (guideVersion === null || Util.guideVersion > Number(guideVersion)) {
                        $location.path('/guide');
                    }
                }
            }
        });
    })

    .config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider, $compileProvider, ionicTimePickerProvider) {

        //$compileProvider.debugInfoEnabled(Util.isDebug());
        $compileProvider.debugInfoEnabled(false);

        //add chrome-extension for chrome extension
        $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|ftp|mailto|chrome-extension|blob:chrome-extension):/);
        $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|file|ftp|mailto|chrome-extension|blob:chrome-extension):/);

        $compileProvider.directive('ngShortChart', function() {
            return {
                restrict: 'A',
                transclude: true,
                link: function (scope, iElement) {<commit_msg>set overlay web view of status bar to true<commit_after>// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
angular.module('starter', [
    'ionic',
    'ionic.service.core',
    'ionic.service.analytics',
    'starter.controllers',
    'starter.services',
    'controller.purchase',
    'service.twads',
    'service.push',
    'ionic-timepicker',
    'ngCordova'
])
    .run(function($ionicPlatform, $ionicAnalytics, Util, $rootScope, $location) {
        $ionicPlatform.ready(function() {

            if (navigator.splashscreen) {
                navigator.splashscreen.hide();
            }

            if (Util.isDebug()) {
                Util.ga.debugMode();
            } else {
                $ionicAnalytics.register();
            }

            if (ionic.Platform.isIOS()) {
                Util.ga.startTrackerWithId('[GOOGLE_ANALYTICS_IOS_KEY]');
                if (window.applewatch) {
                    applewatch.init(function () {
                        console.log('Succeeded to initialize for apple-watch');
                    }, function (err) {
                        console.log('Failed to initialize apple-watch', err);
                    }, 'group.net.wizardfactory.todayweather');
                }
            } else if (ionic.Platform.isAndroid()) {
                Util.ga.startTrackerWithId('[GOOGLE_ANALYTICS_ANDROID_KEY]');
            }

            // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
            // for form inputs)
            if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
                cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
                cordova.plugins.Keyboard.disableScroll(true);

            }
            if (window.StatusBar) {
                StatusBar.backgroundColorByHexString('#0288D1');
            }
        });

        $rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState) {
            if (fromState.name === '' && toState.name === 'tab.forecast') {
                if(typeof(Storage) !== 'undefined') {
                    var guideVersion = localStorage.getItem('guideVersion');
                    if (guideVersion === null || Util.guideVersion > Number(guideVersion)) {
                        $location.path('/guide');
                    }
                }
            }
        });
    })

    .config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider, $compileProvider, ionicTimePickerProvider) {

        //$compileProvider.debugInfoEnabled(Util.isDebug());
        $compileProvider.debugInfoEnabled(false);

        //add chrome-extension for chrome extension
        $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|file|ftp|mailto|chrome-extension|blob:chrome-extension):/);
        $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|file|ftp|mailto|chrome-extension|blob:chrome-extension):/);

        $compileProvider.directive('ngShortChart', function() {
            return {
                restrict: 'A',
                transclude: true,
                link: function (scope, iElement) {
{'fraction_non_alphanumeric': 0.12213740458015267, 'fraction_numerical': 0.0017283594987757454, 'mean_word_length': 2.0903426791277258, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6159474', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1793, 'n_words': 353}