<commit_before>'use strict';

/**
 * @ngdoc directive
 * @name flowsimUiApp.directive:fginstructionset
 * @description
 * # fginstructionset
 */
angular.module('flowsimUiApp')
    .directive('fgInstructionSet', function() {
        return {
            restrict: 'E',
            templateUrl: 'views/simulation/fgpinstructionsview.html',
            replace: true,
            scope: {
                view: '='
            },
            controller: function($scope) {
                /**
                 * Parses Instruction and return name:(value1, value2)
                 * @param  {[Instruction Object]} val
                 * @return {[String]}     [name:(value1, value2)]
                 */
                $scope.instructionsTooltip = function(ins) {

                    var retVal = ins.name;
                    if (!_.isUndefined(ins.value1) && !_.isNull(ins.value1)) {
                        retVal += "( " + ins.value1;
                        if (!_.isUndefined(ins.value2) && !_.isNull(ins.value2)) {
                            retVal += " , " + ins.value2;
                        }
                        retVal += " )";
                    }

                    return retVal;
                }

            },
            link: function(scope, element, attrs) {

                scope.$watch('view', function() {

                    if (!scope.view) {
                        return;
                    }
                    scope.applyActionList = _.findWhere(scope.view.instructionSet, {
                        name: 'Apply'
                    }).set;
                    scope.writeActionSet = _.findWhere(scope.view.instructionSet, {
                        name: 'Write'
                    }).set;
                    scope.instrucionList = scope.view.instructionSet;
                    scope.instructions = function() {
                        var instructions = '';
                        scope.view.instructionSet.forEach(function(value , index , arr) {
                            instructions += value.name.substring(0, 1).toLowerCase();
                            if(index < arr.length -1 ){
                                instructions += " / ";
                            }
                        })
                        return instructions;
                    };
                    
<commit_msg>formating issues<commit_after>'use strict';

/**
 * @ngdoc directive
 * @name flowsimUiApp.directive:fginstructionset
 * @description
 * # fginstructionset
 */
angular.module('flowsimUiApp')
    .directive('fgInstructionSet', function() {
        return {
            restrict: 'E',
            templateUrl: 'views/simulation/fgpinstructionsview.html',
            replace: true,
            scope: {
                view: '='
            },
            controller: function($scope) {
                /**
                 * Parses Instruction and return name:(value1, value2)
                 * @param  {[Instruction Object]} val
                 * @return {[String]}     [name:(value1, value2)]
                 */
                $scope.instructionsTooltip = function(ins) {

                    var retVal = ins.name;
                    if (!_.isUndefined(ins.value1) && !_.isNull(ins.value1)) {
                        retVal += '( ' + ins.value1;
                        if (!_.isUndefined(ins.value2) && !_.isNull(ins.value2)) {
                            retVal += ' , ' + ins.value2;
                        }
                        retVal += ' )';
                    }

                    return retVal;
                };

            },
            link: function(scope) {

                scope.$watch('view', function() {

                    if (!scope.view) {
                        return;
                    }
                    scope.applyActionList = _.findWhere(scope.view.instructionSet, {
                        name: 'Apply'
                    }).set;
                    scope.writeActionSet = _.findWhere(scope.view.instructionSet, {
                        name: 'Write'
                    }).set;
                    scope.instrucionList = scope.view.instructionSet;
                    scope.instructions = function() {
                        var instructions = '';
                        scope.view.instructionSet.forEach(function(value , index , arr) {
                            instructions += value.name.substring(0, 1).toLowerCase();
                            if(index < arr.length -1 ){
                                instructions += ' / ';
                            }
                        });
                        return instructions;
                    };
                    

{'fraction_non_alphanumeric': 0.11085056491153272, 'fraction_numerical': 0.005542528245576636, 'mean_word_length': 1.012006861063465, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4259577', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1071, 'n_words': 181}