<commit_before>(function() {
  'use strict';

  /**
   * @ngdoc     controller
   * @name      app.controller:DisplayController
   * @constructs app.controller:DisplayController
   * @requires  {object}  vehicles  The vehicles service
   * @description
   *   The Display Controller.
   **/
  angular
    .module('app')
    .controller('DisplayController', DisplayController);

  DisplayController.$inject = ['$scope', '$interval', 'widget', 'feed', 'user', 'settings'];

  function DisplayController ($scope, $interval, widget, feed, user, settings) {

    // View Model.
    var display = this;

    display.title = 'Display';
    display.widget = widget;
    display.feed = feed;
    display.user = user;
    display.pod = settings.pod;

    var filler = [
      { display : 'filler' },
      { display : 'filler' },
      { display : 'filler' }
    ];
    var displayList = [].concat(widget.displayList.get(), filler);

    display.getWidgets = function () {
      console.log('getWidgets');
      return displayList;
    };

    $scope.$on('$routeChangeSuccess', function (event) {
      console.log('display $routeChangeSuccess');
    });

    $scope.$on('$viewContentLoaded', function (event) {
      console.log('display $viewContentLoaded');
    });
  }
})();<commit_msg>added widgets to scope of display view<commit_after>(function() {
  'use strict';

  /**
   * @ngdoc     controller
   * @name      app.controller:DisplayController
   * @constructs app.controller:DisplayController
   * @requires  {object}  vehicles  The vehicles service
   * @description
   *   The Display Controller.
   **/
  angular
    .module('app')
    .controller('DisplayController', DisplayController);

  DisplayController.$inject = ['$scope', '$interval', 'widget', 'feed', 'user', 'settings', 'api'];

  function DisplayController ($scope, $interval, widget, feed, user, settings, api) {

    // View Model.
    var
      display = this,
      displayList;

    display.title = 'Display';
    display.widget = widget;
    display.feed = feed;
    display.user = user;
    display.pod = settings.pod;


    displayList = widget.displayList.getWithFiller();



    $scope.$on('$routeChangeSuccess', function (event) {
      console.log('display $routeChangeSuccess');
    });

    $scope.$on('$viewContentLoaded', function (event) {
      console.log('display $viewContentLoaded');
    });

    function getWidgets () {
      console.log('getWidgets');
      return displayList;
    }

  }
})();
{'fraction_non_alphanumeric': 0.14997989545637314, 'fraction_numerical': 0.0, 'mean_word_length': 3.098846787479407, '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': '4429731', 'n_tokens_mistral': 730, 'n_tokens_neox': 705, 'n_words': 159}