<commit_before>//
// Blogga LiveJournal client
//

angular.module('blogga', ['ionic', 'ngMessages', 'ngLiveJournal',
    'MainRoute', 'AppFilters',
    'AppCtrl', 'PostCtrl', 'JournalCtrl', 'GroupsCtrl', 'FriendsCtrl',
    'BookmarksCtrl', 'EditPostCtrl', 'EditCommentCtrl',
    'AvatarSrvc', 'AuthSrvc', 'StorageSrvc',
    'BookmarksSrvc', 'FriendsSrvc', 'GroupsSrvc', 'TextSrvc'])

.run(function($ionicPlatform, ngLJService) {
    $ionicPlatform.ready(function() {
        // Check if Cordova is presented
        ngLJService.set_config(!ionic.Platform.isWebView());

        // 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.Keyboard) {
            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        }
        if (window.StatusBar) {
            // org.apache.cordova.statusbar required
            StatusBar.styleDefault();
        }
    });
});<commit_msg>Check Cordova<commit_after>//
// Blogga LiveJournal client
//

angular.module('blogga', ['ionic', 'ngMessages', 'ngLiveJournal',
    'MainRoute', 'AppFilters',
    'AppCtrl', 'PostCtrl', 'JournalCtrl', 'GroupsCtrl', 'FriendsCtrl',
    'BookmarksCtrl', 'EditPostCtrl', 'EditCommentCtrl',
    'AvatarSrvc', 'AuthSrvc', 'StorageSrvc',
    'BookmarksSrvc', 'FriendsSrvc', 'GroupsSrvc', 'TextSrvc'])

.run(function($ionicPlatform, ngLJService) {
    $ionicPlatform.ready(function() {
        // Check if Cordova is presented
        ngLJService.set_config(window.cordova);

        // 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.Keyboard) {
            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        }
        if (window.StatusBar) {
            // org.apache.cordova.statusbar required
            StatusBar.styleDefault();
        }
    });
});
{'fraction_non_alphanumeric': 0.14077425842131724, 'fraction_numerical': 0.0, 'mean_word_length': 3.154488517745303, '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': '1595429', 'n_tokens_mistral': 611, 'n_tokens_neox': 589, 'n_words': 125}