<commit_before>/**
 * Created by Martin on 2015-11-19.
 */
(function () {
    'use strict';

    angular
        .module('app.Tobbe2')
        .controller('Tobbe2Controller', Tobbe2Controller);

    Tobbe2Controller.$inject = ['$scope', 'dashboardService', 'eventService', 'spServicesService', 'operationControlService'];
    /* @ngInject */
    function Tobbe2Controller($scope, dashboardService, eventService, spServicesService, operationControlService) {
        var vm = this;
        vm.widget = $scope.$parent.$parent.$parent.vm.widget; //lol what
        var service = {
            connected: false,
            controlServiceID: '',
            state: [],
            resourceTree: [],
            latestMess: {},
            connect: connect,
            sendRawDB: sendRawDB
        };
        vm.hej = 'null'
        vm.control = operationControlService;

        //functions¨
        vm.adressToRaw = adressToRaw;
        vm.parseColour = parseColour;
        vm.sendOrder = sendOrder;
        vm.sendRawDB = sendRawDB;
        activate();
        vm.placeyplaceholder = 'Chose operation'
        vm.myFunction = myFunction;
        vm.changeColor = changeColor;
        vm.activate2 = activate2;
        vm.value = 1;
        vm.debug14 = 0;
        vm.parseColourTrueFalse = parseColourTrueFalse;
        vm.searchObj = searchObj;
        vm.reset = reset;
        vm.data = {
            resMult: [
                {
                    name: 'Robot 2',
                    resource: [
                        {id: '126 18 0', set: '1', action: 'Set at position 1', value: '#FFFFFF'},
                        {id: '126 18 0', set: '2', action: 'Set at position 2', value: '#FFFFFF'},
                        {id: '126 18 0', set: '3', action: 'Set at position 3', value: '#FFFFFF'},
                        {id: '126 18 0', set: '4', action: 'Set at position 4', value: '#FFFFFF'},
                        {id: '126 18 0', set: '5', action: 'Set at position 5', value: '#FFFFFF'}
                    ],
                    currVal: 'Choose operation',
                    currID: 'null',
                    image: 'images/Industry-Robot-icon.png'
                }
            ],
            resSel: [
                {
                    name: 'Elevator 2',
                    resource: [
                        {id: '135 0 0', action: 'Up', value: '#FFFFFF'},
                        {id: '135 0 1', action: 'Down', value: '#FFFFFF'}
                    ],
                    image: 'images/elevator-icon.png'
                },
                {
                    name: 'Elevator 3',
                    resource: [
                        {id: '140 0 0', action: 'Up', value: '#FFFFFF'},
                        {id: '140 0 1', action: 'Down', value: '#FFFFFF'}
                    ],
                    image: 'images/elevator-icon.png'

                },
                {
                    name: 'Flexlink',
                    resource: [
                        {id: '138 16 0', action: 'Start', value: '#FFFFFF'},
                        {id: '138 16 1', action: 'Stop', value: '#FFFFFF'}
                    ],
                    image: 'images/conveyor-icon2.png'
                },
                {
                    name: 'Robot 4',
                    resource: [
                        {id: '128 0 2', action: 'Home', value: '#FFFFFF'},
                        {id: '128 0 3', action: 'Dodge', value: '#FFFFFF'}
                    ],
                    image: 'images/Industry-Robot-icon.png'

                },
                {
                    name: 'Robot 5',
                    resource: [
                        {id: '132 0 2', action: 'Home', value: '#FFFFFF'},
                        {id: '132 0 3', action: 'Dodge', value: '#FFFFFF'}
                    ],
        image: 'images/Industry-Robot-icon.png'
                },
                {
                    name: 'Reset PLC',
                    resource: [
                        {id: '141 0 0', action: 'Set', value: '#FFFFFF'},
                        {id: '141 0 1', action: 'Mode', value: '#FFFFFF'}
                    ],
        image: 'images/plc-icon2.png'
                },
                {
                    name: 'Robot 2',
                    resource: [
                        {id: '126 0 5', action: 'Pick at position', value: '#FFFFFF'},
                        {id: '126 0 4', action: 'Place at position', value: '#FFFFFF'},
                        {id: '126 0 2', action: 'Place at elevator 2', value: '#FFFFFF'},
                        {id: '126 0 6', action: 'Place at table', value: '#FFFFFF'}
                    ],
        image: 'images/Industry-Robot-icon.png'

                }<commit_msg>changed names in resetgui<commit_after>/**
 * Created by Martin on 2015-11-19.
 */
(function () {
    'use strict';

    angular
        .module('app.Tobbe2')
        .controller('Tobbe2Controller', Tobbe2Controller);

    Tobbe2Controller.$inject = ['$scope', 'dashboardService', 'eventService', 'spServicesService', 'operationControlService'];
    /* @ngInject */
    function Tobbe2Controller($scope, dashboardService, eventService, spServicesService, operationControlService) {
        var vm = this;
        vm.widget = $scope.$parent.$parent.$parent.vm.widget; //lol what
        var service = {
            connected: false,
            controlServiceID: '',
            state: [],
            resourceTree: [],
            latestMess: {},
            connect: connect,
            sendRawDB: sendRawDB
        };
        vm.hej = 'null'
        vm.control = operationControlService;

        //functions¨
        vm.adressToRaw = adressToRaw;
        vm.parseColour = parseColour;
        vm.sendOrder = sendOrder;
        vm.sendRawDB = sendRawDB;
        activate();
        vm.placeyplaceholder = 'Chose operation'
        vm.myFunction = myFunction;
        vm.changeColor = changeColor;
        vm.activate2 = activate2;
        vm.value = 1;
        vm.debug14 = 0;
        vm.parseColourTrueFalse = parseColourTrueFalse;
        vm.searchObj = searchObj;
        vm.reset = reset;
        vm.data = {
            resMult: [
                {
                    name: 'Robot 2',
                    resource: [
                        {id: '126 18 0', set: '1', action: 'Set at position 1', value: '#FFFFFF'},
                        {id: '126 18 0', set: '2', action: 'Set at position 2', value: '#FFFFFF'},
                        {id: '126 18 0', set: '3', action: 'Set at position 3', value: '#FFFFFF'},
                        {id: '126 18 0', set: '4', action: 'Set at position 4', value: '#FFFFFF'},
                        {id: '126 18 0', set: '5', action: 'Set at position 5', value: '#FFFFFF'}
                    ],
                    currVal: 'Choose operation',
                    currID: 'null',
                    image: 'images/Industry-Robot-icon.png'
                }
            ],
            resSel: [
                {
                    name: 'Elevator 2',
                    resource: [
                        {id: '135 0 0', action: 'Up', value: '#FFFFFF'},
                        {id: '135 0 1', action: 'Down', value: '#FFFFFF'}
                    ],
                    image: 'images/elevator-icon.png'
                },
                {
                    name: 'Elevator 3',
                    resource: [
                        {id: '140 0 0', action: 'Up', value: '#FFFFFF'},
                        {id: '140 0 1', action: 'Down', value: '#FFFFFF'}
                    ],
                    image: 'images/elevator-icon.png'

                },
                {
                    name: 'Flexlink',
                    resource: [
                        {id: '138 16 0', action: 'Start', value: '#FFFFFF'},
                        {id: '138 16 1', action: 'Stop', value: '#FFFFFF'}
                    ],
                    image: 'images/conveyor-icon2.png'
                },
                {
                    name: 'Robot 4',
                    resource: [
                        {id: '128 0 2', action: 'Home', value: '#FFFFFF'},
                        {id: '128 0 3', action: 'Dodge', value: '#FFFFFF'}
                    ],
                    image: 'images/Industry-Robot-icon.png'

                },
                {
                    name: 'Robot 5',
                    resource: [
                        {id: '132 0 2', action: 'Home', value: '#FFFFFF'},
                        {id: '132 0 3', action: 'Dodge', value: '#FFFFFF'}
                    ],
        image: 'images/Industry-Robot-icon.png'
                },
                {
                    name: 'Reset PLC',
                    resource: [
                        {id: '141 0 0', action: 'Set', value: '#FFFFFF'},
                        {id: '141 0 1', action: 'Mode', value: '#FFFFFF'}
                    ],
        image: 'images/plc-icon2.png'
                },
                {
                    name: 'Robot 2',
                    resource: [
                        {id: '126 0 5', action: 'Pick at position', value: '#FFFFFF'},
                        {id: '126 0 4', action: 'Place at position', value: '#FFFFFF'},
                        {id: '126 0 2', action: 'Place at h3', value: '#FFFFFF'},
                        {id: '126 0 6', action: 'Place at table', value: '#FFFFFF'}
                    ],
        image: 'images/Industry-Robot-icon.png'

                }
{'fraction_non_alphanumeric': 0.13527180783817952, 'fraction_numerical': 0.0316055625790139, 'mean_word_length': 1.1443415405466455, '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': '922673', 'n_tokens_mistral': 2852, 'n_tokens_neox': 2463, 'n_words': 672}