<commit_before>'use strict';

(function (angular,buildfire) {
  angular
    .module('googleAppsPresentationWidget')
    .controller('WidgetHomeCtrl', ['$scope', 'Buildfire', 'DataStore', 'TAG_NAMES', '$rootScope', 'STATUS_CODE',
      function ($scope, Buildfire, DataStore, TAG_NAMES, $rootScope, STATUS_CODE) {
        var WidgetHome = this;
        var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
        var aspect = window.screen.width / window.screen.height
        var iPhoneXandIphone11 = isIOS && aspect.toFixed(3) === "0.462";
        var oneTime=false;
        //var homeBar=Number(getComputedStyle(document.documentElement).getPropertyValue("--sab").split('px')[0]);
        //var isAndroid = /(android)/i.test(navigator.userAgent);
        //var frame,fullScreen,listeners=false,isInFullScreen=false;;
        //var innitOffsetTop=0,innitOffsetLeft=0,innitialLoad=false,isItFailed=false;
        /*
         * Fetch user's data from datastore
         */
        

        WidgetHome.init = function () {
          WidgetHome.success = function (result) {
            if(result.data && result.id) {
              WidgetHome.data = result.data;
              if (!WidgetHome.data.content)
                WidgetHome.data.content = {};
              if (WidgetHome.data.content.mode && WidgetHome.data.content.url && WidgetHome.data.content.mode == 'preview'){
                WidgetHome.data.content.url = WidgetHome.data.content.url.replace('/edit', '/preview');
              }<commit_msg>rotate on beginning<commit_after>'use strict';

(function (angular,buildfire) {
  angular
    .module('googleAppsPresentationWidget')
    .controller('WidgetHomeCtrl', ['$scope', 'Buildfire', 'DataStore', 'TAG_NAMES', '$rootScope', 'STATUS_CODE',
      function ($scope, Buildfire, DataStore, TAG_NAMES, $rootScope, STATUS_CODE) {
        var WidgetHome = this;
        var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
        var aspect = window.screen.width / window.screen.height
        var iPhoneXandIphone11 = isIOS && aspect.toFixed(3) === "0.462";
        var oneTime=false;
        //var homeBar=Number(getComputedStyle(document.documentElement).getPropertyValue("--sab").split('px')[0]);
        //var isAndroid = /(android)/i.test(navigator.userAgent);
        //var frame,fullScreen,listeners=false,isInFullScreen=false;;
        //var innitOffsetTop=0,innitOffsetLeft=0,innitialLoad=false,isItFailed=false;
        /*
         * Fetch user's data from datastore
         */
        

        WidgetHome.init = function () {
          WidgetHome.initRotate();
          WidgetHome.success = function (result) {
            WidgetHome.initRotate();
            if(result.data && result.id) {
              WidgetHome.data = result.data;
              if (!WidgetHome.data.content)
                WidgetHome.data.content = {};
              if (WidgetHome.data.content.mode && WidgetHome.data.content.url && WidgetHome.data.content.mode == 'preview'){
                WidgetHome.data.content.url = WidgetHome.data.content.url.replace('/edit', '/preview');
              }
{'fraction_non_alphanumeric': 0.14249363867684478, 'fraction_numerical': 0.006361323155216285, 'mean_word_length': 2.7574671445639187, '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': '3008101', 'n_tokens_mistral': 935, 'n_tokens_neox': 925, 'n_words': 148}