<commit_before>'use strict';

/**
 * @ngdoc function
 * @name ubirchAdminCrudApp.controller:DevicesListCtrl
 * @description
 * # DevicesListCtrl
 * Controller of the ubirchAdminCrudApp
 */
var app = angular.module('ubirchAdminCrudApp');

app.run(function(editableOptions) {
  editableOptions.theme = 'bs3';
});

app.controller('DevicesListCtrl', [ '$scope', '$rootScope', '$location', 'Device', '$translate', '$window', '$document', '$timeout', '$filter', '$log', 'toaster', 'DeviceTypes', 'constants', 'settings', 'deviceTypesList',
  function ($scope, $rootScope, $location, Device, $translate, $window, $document, $timeout, $filter, $log, toaster, DeviceTypes, constants, settings, deviceTypesList) {

    $scope.deviceTypes = deviceTypesList;

    var listPromise;

    (function refreshData() {
      // Assign to scope within callback to avoid data flickering on screen
      Device.getDevicesList(function (data) {
        $scope.devices = data;
        listPromise = $timeout(refreshData, constants.POLLING_INTERVAL);
      },
        function (error) {
          $log.warn("On loading device list an error uccurred: "+error);<commit_msg>UBI-211: started<commit_after>'use strict';

/**
 * @ngdoc function
 * @name ubirchAdminCrudApp.controller:DevicesListCtrl
 * @description
 * # DevicesListCtrl
 * Controller of the ubirchAdminCrudApp
 */
var app = angular.module('ubirchAdminCrudApp');

app.run(function(editableOptions) {
  editableOptions.theme = 'bs3';
});

app.controller('DevicesListCtrl', [ '$scope', '$rootScope', '$location', 'Device', '$translate', '$window', '$document', '$timeout', '$filter', '$log', 'toaster', 'DeviceTypes', 'constants', 'settings', 'deviceTypesList',
  function ($scope, $rootScope, $location, Device, $translate, $window, $document, $timeout, $filter, $log, toaster, DeviceTypes, constants, settings, deviceTypesList) {

    $scope.deviceTypes = deviceTypesList;

    $scope.search = {};

    var listPromise;

    (function refreshData() {
      // Assign to scope within callback to avoid data flickering on screen
      Device.getDevicesList(function (data) {
        $scope.devices = data;
        listPromise = $timeout(refreshData, constants.POLLING_INTERVAL);
      },
        function (error) {
          $log.warn("On loading device list an error uccurred: "+error);
{'fraction_non_alphanumeric': 0.14913793103448275, 'fraction_numerical': 0.0021551724137931034, 'mean_word_length': 4.660975609756098, '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': '2124498', 'n_tokens_mistral': 687, 'n_tokens_neox': 675, 'n_words': 169}