<commit_before>/*globals define, _, $*/
/*jshint browser: true, camelcase: false*/

define([
    'js/RegistryKeys',
    'js/Constants',
    './DocumentEditorDialog',
    'decorators/ModelDecorator/DiagramDesigner/ModelDecorator.DiagramDesignerWidget',
    'css!./CodeEditorDecorator.DiagramDesignerWidget.css'
  ], function (
    REGISTRY_KEYS,
    CONSTANTS,
    DocumentEditorDialog,
    ModelDecoratorDiagramDesignerWidget) {

    'use strict';

    var CodeEditorDecorator,
        DECORATOR_ID = 'CodeEditorDecorator',
        EQN_EDIT_BTN_BASE = '<i class="glyphicon glyphicon-edit text-meta"/>';

    CodeEditorDecorator = function (options) {
        var opts = _.extend({}, options);

        ModelDecoratorDiagramDesignerWidget.apply(this, [opts]);

        this._skinParts = {};
	this.buttonDict = {
	    'Interaction': {
		'Definition':'Definition'
	    },
	    'Component': {
		'Forwards':'Forwards',
		'Members':'Members',
		'Definitions':'Definitions',
		'Initialization':'Initialization',
		'Destruction':'Destruction',
	    },
	    'Port': {
		'Operation':'Operation'
	    }
	};

        this.logger.debug('CodeEditorDecorator ctor');
    };

    CodeEditorDecorator.prototype = Object.create(ModelDecoratorDiagramDesignerWidget.prototype);
    CodeEditorDecorator.prototype.constructor = CodeEditorDecorator;
    CodeEditorDecorator.prototype.DECORATORID = DECORATOR_ID;

    /*********************** OVERRIDE ModelDecoratorDiagramDesignerWidget MEMBERS **************************/

    CodeEditorDecorator.prototype.on_addTo = function () {<commit_msg>Enabling code editing decorator for abstract business logic<commit_after>/*globals define, _, $*/
/*jshint browser: true, camelcase: false*/

define([
    'js/RegistryKeys',
    'js/Constants',
    './DocumentEditorDialog',
    'decorators/ModelDecorator/DiagramDesigner/ModelDecorator.DiagramDesignerWidget',
    'css!./CodeEditorDecorator.DiagramDesignerWidget.css'
  ], function (
    REGISTRY_KEYS,
    CONSTANTS,
    DocumentEditorDialog,
    ModelDecoratorDiagramDesignerWidget) {

    'use strict';

    var CodeEditorDecorator,
        DECORATOR_ID = 'CodeEditorDecorator',
        EQN_EDIT_BTN_BASE = '<i class="glyphicon glyphicon-edit text-meta"/>';

    CodeEditorDecorator = function (options) {
        var opts = _.extend({}, options);

        ModelDecoratorDiagramDesignerWidget.apply(this, [opts]);

        this._skinParts = {};
	this.buttonDict = {
	    'Interaction': {
		'Definition':'Definition'
	    },
	    'Component': {
		'Forwards':'Forwards',
		'Members':'Members',
		'Definitions':'Definitions',
		'Initialization':'Initialization',
		'Destruction':'Destruction',
	    },
	    'Port': {
		'AbstractBusinessLogic': 'AbstractBusinessLogic',
		'Operation':'Operation'
	    }
	};

        this.logger.debug('CodeEditorDecorator ctor');
    };

    CodeEditorDecorator.prototype = Object.create(ModelDecoratorDiagramDesignerWidget.prototype);
    CodeEditorDecorator.prototype.constructor = CodeEditorDecorator;
    CodeEditorDecorator.prototype.DECORATORID = DECORATOR_ID;

    /*********************** OVERRIDE ModelDecoratorDiagramDesignerWidget MEMBERS **************************/

    CodeEditorDecorator.prototype.on_addTo = function () {
{'fraction_non_alphanumeric': 0.1506172839506173, 'fraction_numerical': 0.0, 'mean_word_length': 4.193910256410256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7326013', 'n_tokens_mistral': 1049, 'n_tokens_neox': 969, 'n_words': 135}